This is the mail archive of the gdb-patches@sourceware.org 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: [PATCH] Allow nested function displays


>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:

Tom> In Ada, it's possible to have nested functions.  However,
Tom> block.c:contained_in does not recognize this.  Normally, this is no
Tom> problem, but if gdb is stopped inside a nested function, then you can
Tom> end up in the unexpected situation that "print" of an expression will
Tom> work, whereas "display" of the same expression will not -- because
Tom> contained_in returns 0.

Tom> This patch simply removes the BLOCK_FUNCTION check from contained_in.
Tom> The rationale here is that in languages without nested functions, this
Tom> will not cause any issues.

I'm going to check this in now.

Tom


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