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 PR gdb/22736] [aarch64] gdb crashes on a conditional breakpoint with cast return type


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 (齐尧)


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