This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: breakpoint commands and finish


On Thu, Apr 17, 2003 at 02:18:07PM -0700, Doug Evans wrote:
> Daniel Jacobowitz writes:
>  > The macro facility isn't, but a command could be added to do this
>  > without much trouble.
> 
> For my own education, what's missing?

A way to get at the return address in a convenience variable.

>  > I would rather us discuss the semantics of
>  > commands lists containing commands which resume the inferior.  There
>  > must be a more user-useful way to approach it than we do now.
> 
> What if you allowed multiple "resume" commands in the "top level"
> breakpoint only, and allowed "nested" breakpoints only if they
> either stopped execution (in which case execution stops) or if
> the only "resume" they did was a tail-call-like continue.
> If a nested breakpoint's command list does a resumption with a
> non-tail-continue, execution stops.

That might do it.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]