Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* commands on tbreak breakpoints, should they work?
@ 2004-03-29 15:10 Doug Evans
  2004-03-29 16:27 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Evans @ 2004-03-29 15:10 UTC (permalink / raw)
  To: gdb

gdb = 5.2.1

I'm unable to add commands to tbreak breakpoints because gdb first
deletes the breakpoint and then it looks for any breakpoints
with commands to run.

The docs say
"You can give any breakpoint (or watchpoint or catchpoint) a series of
commands to execute when your program stops due to that breakpoint."

Is this a gdb bug or doc bug?

---
bash$ gcc -g hello.c
bash$ gdb-5.2.1 ./a.out
(gdb) tbreak main
(gdb) commands
echo foo\n
end
(gdb) run


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

end of thread, other threads:[~2004-03-26 17:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-29 15:10 commands on tbreak breakpoints, should they work? Doug Evans
2004-03-29 16:27 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox