Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Breakpoint commands
@ 2009-10-24 15:03 Eli Zaretskii
  2009-10-24 16:30 ` Pedro Alves
  2009-10-24 18:29 ` Andreas Schwab
  0 siblings, 2 replies; 9+ messages in thread
From: Eli Zaretskii @ 2009-10-24 15:03 UTC (permalink / raw)
  To: gdb

Some commands seem to be not working inside breakpoint commands, in
the sense that breakpoint commands after them are not executed.

Two examples that I tried were `finish' and `until'.  What I wanted
was to stop at function entry, print some variable, then let the
function run to completion, and print some other (global) variable
that gets modified by this function.  The breakpoint commands
therefore were something like

  break FOO
  commands
  >print BAR
  >finish
  >print BAZ
  >end

and similarly with `until' instead of `finish'; I used the last line
of the function's body for its argument.

What I see is that the second `print' is never executed.  Sounds like
a bug to me.  Or did I miss something?


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

end of thread, other threads:[~2009-10-26 19:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-24 15:03 Breakpoint commands Eli Zaretskii
2009-10-24 16:30 ` Pedro Alves
2009-10-24 16:48   ` Eli Zaretskii
2009-10-24 23:05     ` Paul Pluzhnikov
2009-10-25  0:30       ` Michael Snyder
2009-10-26 11:30       ` Joel Brobecker
2009-10-26 13:15         ` Vladimir Prus
2009-10-26 23:42           ` Paul Pluzhnikov
2009-10-24 18:29 ` Andreas Schwab

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