[PATCH PR gdb/22736] [aarch64] gdb crashes on a conditional breakpoint with cast return type

Yao Qi qiyaoltc@gmail.com
Fri Mar 2 12:21:00 GMT 2018


On Fri, Mar 2, 2018 at 12:09 PM, Alan Hayward <Alan.Hayward@arm.com> wrote:
>> Any idea on why TYPE_TARGET_TYPE (func_type) is NULL? (because
>> there is no strcmp debug info?)
>>
>
> The cast to (int) is causing this - remove the cast and it finds the type.
> I’m assuming that’s causing it to drop the debug info.

It sounds like a bug to me.  If this bug "TYPE_TARGET_TYPE (func_type) becomes
NULL caused by cast" is fixed, the GDB segfault will go away accordingly.

To be clear, your patch here is fine to me.  My suggestion is that we'd better
dig it deeper.

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list