Thread Specific Breakpoints in Remote Targets

Tom Tromey tromey@redhat.com
Wed Oct 5 17:23:00 GMT 2011


>>>>> "Josh" == Josh Watt <jpewdev@gmail.com> writes:

[ thread-specific breakpoints on the target ]

Josh> Unless I'm missing something, I don't believe this would be too
Josh> difficult to implement. Most of the code would live in remote.c and
Josh> would require a new packet for handling thread breakpoints.

I didn't see a response to this.

Josh> Would something like this be OK, or did you have something else in mind?
Josh> vThreadBreak;addr;kind;thread-id

Josh> The only other question I currently have is how should the thread id
Josh> be communicated to remote.c? Should the global inferior_ptid be used,
Josh> or would we add another member to the struct bp_target_info that
Josh> contains the thread ID?

I don't know the details of the remote protocol, but yes, something like
this would be good to have.  On the gdb side, I would say adding a field
to bp_target_info would be much better than a global.

Tom



More information about the Gdb mailing list