public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Feature request: support a "resume previous execution" with a breakpoint commands section
@ 2012-07-25  0:31 Tristan Wibberley
  2012-07-25 14:13 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Tristan Wibberley @ 2012-07-25  0:31 UTC (permalink / raw)
  To: gdb

Please add a command that is valid within a breakpoint commands
section which simply resumes whatever you were doing (finish, next,
step, continue, until <location>, etc, as if you did not have the
extra breakpoint running some commands automatically).


Background:

It is possible to make gdb to take some action when a breakpoint is hit:

break <location>
commands
  silent
  some-actions
  continue
end


The problem with this that the request will solve:

If you are using "next" to manually step through some code which will
also cause gdb to take those actions then your "next" command
magically turns into a full "continue". This happens also when the
code that will cause the actions to be taken is deeply nested and you
are expecting to step over it.


Please let me know if this request isn't described well.

Regards,
--
Tristan

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

* Re: Feature request: support a "resume previous execution" with a breakpoint commands section
  2012-07-25  0:31 Feature request: support a "resume previous execution" with a breakpoint commands section Tristan Wibberley
@ 2012-07-25 14:13 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2012-07-25 14:13 UTC (permalink / raw)
  To: Tristan Wibberley; +Cc: gdb

>>>>> "Tristan" == Tristan Wibberley <tristan.wibberley@gmail.com> writes:

Tristan> Please add a command that is valid within a breakpoint commands
Tristan> section which simply resumes whatever you were doing (finish, next,
Tristan> step, continue, until <location>, etc, as if you did not have the
Tristan> extra breakpoint running some commands automatically).

FWIW, you can do this with Python.
It isn't easy to access from the CLI though.

Tom

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

end of thread, other threads:[~2012-07-25 14:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-25  0:31 Feature request: support a "resume previous execution" with a breakpoint commands section Tristan Wibberley
2012-07-25 14:13 ` Tom Tromey

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).