public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Thread-specific breakpoints
@ 2004-08-16  7:18 Fabian Cenedese
  2004-08-16 13:26 ` Daniel Jacobowitz
  0 siblings, 1 reply; 10+ messages in thread
From: Fabian Cenedese @ 2004-08-16  7:18 UTC (permalink / raw)
  To: gdb

Hi

Is there support for thread-specific breakpoints in gdb? I couldn't see it
in the interface/commands. If not, are there plans to add it to gdb?

I know that other people have already tried to do so, e.g. SmartGDB
http://hegel.ittc.ukans.edu/projects/smartgdb/brief.html

But this a workaround with the help of tcl and only supports some
thread libs. As I need support over a stub for a proprietary system
(not Linux) this won't work.

Thanks

bye  Fabi


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Thread-specific breakpoints
@ 2004-08-18 11:57 Fabian Cenedese
  2004-08-26 22:50 ` Paul Breed
  0 siblings, 1 reply; 10+ messages in thread
From: Fabian Cenedese @ 2004-08-18 11:57 UTC (permalink / raw)
  To: gdb

Hmpf, sorry for the private mail. Now also to the list.

>> Yes, that's along the lines I was thinking. And after intense looking I even
>> found it in the manual. I missed it the first time as the break command
>> is explained in 5.1.1 whereas break <location> thread <number> by itself
>> is in 5.4.
>> 
>> After looking at the communication with the stub it seems that the Z0
>> packet only informs the stub about a breakpoint but not about the thread.
>> So every thread will stop here and gdb needs to tell them to continue
>> it it's not the wanted one. That could generate quite a lot of communication
>> (important if it's a serial connection) and also changes the timing quite
>> a lot. If the breakpoint handling was in the stub the stop'n'go could be
>> made much faster without the interaction of gdb. I guess if there is no
>> other possibility I could use the "monitor" command to inform the stub
>> about the thread of the breakpoint. But then again this is difficult as the
>> breakpoints are only set once a "step" or "continue" is sent...
>> 
>> Thanks for the help anyway
>
>Yes, there's no way to set remote-assisted thread-specific breakpoints
>in the remote protocol.  This might be a good thing to add.

What about reading them back? Our embedded system is "intelligent"
(yeah, I know) and has its own breakpoint handling for various reasons
(performance, usability, security if the debugger dies...). So if we attach
to a running target we first read the available breakpoints from the system.
I think this is not only missing in the protocol but in gdb in general.

Thanks

bye  Fabi


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-08-27  7:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-16  7:18 Thread-specific breakpoints Fabian Cenedese
2004-08-16 13:26 ` Daniel Jacobowitz
2004-08-16 14:20   ` Fabian Cenedese
2004-08-16 14:24     ` Daniel Jacobowitz
2004-08-16 19:30     ` Eli Zaretskii
2004-08-17  8:07       ` Fabian Cenedese
2004-08-18  3:57         ` Eli Zaretskii
2004-08-18 11:57 Fabian Cenedese
2004-08-26 22:50 ` Paul Breed
2004-08-27  7:37   ` Fabian Cenedese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).