[PATCH] -stack-info-depth should always return a count.
Eli Zaretskii
eliz@gnu.org
Thu Mar 27 17:09:00 GMT 2014
> Date: Thu, 27 Mar 2014 13:20:25 +0000
> From: Andrew Burgess <aburgess@broadcom.com>
>
> +* MI changes
> +
> + ** The -stack-info-depth command will now always return a depth even if
> + stack corruption is encountered. A new reason string is also returned
> + that explains why gdb is reporting this depth.
^^^
"GDB", in caps.
> +Return the depth of the stack. If the integer argument
> +@var{max-depth} is specified, do not count beyond @var{max-depth}
> +frames. The reason why gdb returns the answer it does is also given.
^^^
@value{GDBN}
> +Possible reasons are @var{All frames}, @var{Reached frame limit}, or
> +an error message.
@var is incorrect here, please use @samp instead.
> +An example where there are 3 valid stack frames, after which the stack
> +pointer is corrupted and gdb is unable to unwind the stack further:
^^^
@value{GDBN}
The documentation parts are OK with those changes.
Thanks.
More information about the Gdb-patches
mailing list