emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New function for gdb-ui.el?


From: Eli Zaretskii
Subject: Re: New function for gdb-ui.el?
Date: Wed, 26 Oct 2005 08:49:07 +0200

> From: Nick Roberts <address@hidden>
> Date: Wed, 26 Oct 2005 12:00:51 +1300
> Cc: address@hidden, address@hidden
> 
>  > Actually, now I am not sure what I said is true.  Maybe `until' just
>  > sets a temporary breakpoint and continues.  If so, it would actually
>  > "work" even if you specify a line in a different function.
> 
> The manual says:
> 
> GDB> Continue running your program until either the specified location
> GDB> is reached, or the current stack frame returns.
> 
> (actually, it should say *selected* stack frame returns)

I don't think ``selected'' is more accurate or more clear in this
context than ``current''.

The latest version of the manual has this clarification:

  The specified location is actually reached only if it is in the
  current frame.

>  >      > But there is an exception: when a function in one file is inlined in
>  >      > another.  In that case, shouldn't this command work?
>  > 
>  >     If I try it, it doesn't seem to work.  Even if it, I'm not sure how we
>  >     would make use of it.
>  > 
>  > If it doesn't work, maybe that is a flaw in GDB.  It OUGHT to be
>  > possible to proceed to a specific line in the code another function
>  > that was inlined into this function.
>  > 
>  > Would you like to raise that is with bug-gdb and cc me?
> 
> The problem is that the documentation just talks about being able to skip over
> recursive functions and doesn't mention inline functions.  So I'm not sure
> that they would see it as a bug.

I'd suggest to craft a simple test case with inlined function and ask
the question on the GDB mailing list.  I'd expect `until' to stop in
an inlined function; the fact that the manual doesn't say anything
about this might just be a documentation bug.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]