[PATCH v2] gdb/python: print name of unwinder that claimed frame in debug message
Simon Marchi
simon.marchi@polymtl.ca
Tue Jun 22 18:47:53 GMT 2021
On 2021-05-10 1:23 p.m., Simon Marchi wrote:
> New in v2:
>
> - use python_string_to_host_string to get C string from Python string.
>
> If we have multiple registered unwinders, this will helps identify which
> unwinder was chosen and make it easier to track down potential problems.
> Unwinders have a mandatory name argument, which we can use in the
> message.
>
> First, make gdb._execute_unwinders return a tuple containing the name,
> in addition to the UnwindInfo. Then, make pyuw_sniffer include the name
> in the debug message.
>
> I moved the debug message earlier. I think it's good to print it as
> early as possible, so that we see it in case an assert is hit in the
> loop below, for example.
I pushed this.
Simon
More information about the Gdb-patches
mailing list