Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Breakpoint commands in MI mode and "backtrace"
@ 2017-10-08 10:08 Eli Zaretskii
       [not found] ` <8a3d7153-7486-032f-aabc-6c3453f96459@simark.ca>
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2017-10-08 10:08 UTC (permalink / raw)
  To: gdb

There seems to be a problem with execution of "bt" as part of
breakpoint commands in MI mode: the output of "bt" is not shown.

What I did was invoke GDB as "gdb -i=mi PROGRAM", then set a
breakpoint or a watchpoint in that program, and defined the following
as its breakpoint commands:

  bt
  end

When the breakpoint triggers, I don't see the backtrace.

I tried other commands, like "up" and "print SOME-VARIABLE", and they
do seem to be executed and the output shown.  So why doesn't that
happen with "backtrace"?  Is it a bug or am I missing something?

(FWIW, I also tried using -break-commands, with a similar result: the
backtrace is not shown when the breakpoint triggers.)

This problem prevents "bt" from being useful in breakpoint commands
when running with the Emacs GDB front-end, which uses MI.

Thanks in advance for any pointers.


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

end of thread, other threads:[~2017-10-21 16:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-08 10:08 Breakpoint commands in MI mode and "backtrace" Eli Zaretskii
     [not found] ` <8a3d7153-7486-032f-aabc-6c3453f96459@simark.ca>
2017-10-08 18:27   ` Eli Zaretskii
2017-10-08 19:24     ` Simon Marchi
2017-10-08 20:03       ` Eli Zaretskii
2017-10-09  4:16         ` Simon Marchi
2017-10-09  7:27           ` Eli Zaretskii
2017-10-09  7:52             ` Eli Zaretskii
2017-10-09 12:02               ` Simon Marchi
2017-10-09 12:59                 ` Eli Zaretskii
2017-10-21  8:26                 ` Eli Zaretskii
2017-10-21 14:13                   ` Simon Marchi
2017-10-21 16:27                     ` Eli Zaretskii

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