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

Alan Hayward
2018-03-02T14:05:08Z

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 810 bytes --]

> On 2 Mar 2018, at 12:21, Yao Qi <qiyaoltc@gmail.com> wrote:
>
> 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.
>

Agreed. I’ll raise a new bug, and have a look into it too whilst I’m in the area.

Alan.\x16º&Öéj×!zÊÞ¶êç×Ž{ßYb²Ö«r\x18\x1dn–­r\x17¬