[Lldb-commits] [PATCH] Avoid querying thread stop info if the thread hasn't been running

Jim Ingham jingham at apple.com
Thu Jun 18 15:11:25 PDT 2015


I thought about this for much the same reason just a little while ago.  Turns out OS X, it is possible for us to stop a process, and fetch all the exceptions, but have some thread exception that wasn't quite ready to be delivered to that thread.  The next time you let the task run, that exception will get delivered to the thread even though it is suspended.  So it isn't safe to assume that just because WE suspended a thread, it won't have an interesting stop reason, and we had to think of another way to get around this.

Our alternate was to add a "get all thread stop reasons" packet to our extended remote protocol so once you get the stop reply packet you can turn around and get all the remaining stop reasons in one blow.

That seems to me a safer way of getting pretty much the same acceleration.

Jim


http://reviews.llvm.org/D10550

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the lldb-commits mailing list