This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH PR gdb/22736] [aarch64] gdb crashes on a conditional breakpoint with cast return type
- From: Alan Hayward <Alan dot Hayward at arm dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>
- Cc: Joel Brobecker <brobecker at adacore dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, nd <nd at arm dot com>
- Date: Fri, 2 Mar 2018 14:05:02 +0000
- Subject: Re: [PATCH PR gdb/22736] [aarch64] gdb crashes on a conditional breakpoint with cast return type
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alan dot Hayward at arm dot com;
- Nodisclaimer: True
- References: <F0AF0417-7A6F-48C6-B6E5-6999F9FEE3A7@arm.com> <20180302033204.v2wvjmquwy3dswyk@adacore.com> <BE1E90D3-583A-4635-AE80-6B7F53BE31FB@arm.com> <CAH=s-PP-Xy7TrP-0zKCuA2X4A8Xgx_gHNvYewm41LPs7ZZJniA@mail.gmail.com>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
> 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.