[PATCH] Allow nested function displays
Tom Tromey
tromey@adacore.com
Tue Jul 30 18:28:00 GMT 2019
>>>>> "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
More information about the Gdb-patches
mailing list