This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Big-endian targets: Fix implptrpiece.exp
- From: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>
- Cc: "gdb-patches\@sourceware.org" <gdb-patches at sourceware dot org>
- Date: Tue, 14 Feb 2017 18:32:53 +0100
- Subject: Re: [PATCH] Big-endian targets: Fix implptrpiece.exp
- Authentication-results: sourceware.org; auth=none
- References: <m3wpdrus83.fsf@oc1027705133.ibm.com> <CAH=s-PON2KZnCBgC6XeuJxegqsdbLs8b=CeCbdmPzvO=kbs-0w@mail.gmail.com> <m38tp8n5ol.fsf@oc1027705133.ibm.com> <CAH=s-PMMJ9oJkKeopdp7NRn2mz1M+vNRBJi53itBpS=PSt89jw@mail.gmail.com>
On Tue, Feb 14 2017, Yao Qi wrote:
> On Tue, Feb 14, 2017 at 3:38 PM, Andreas Arnez <arnez@linux.vnet.ibm.com> wrote:
[...]
>> Sure. See updated patch below. Is this OK then?
>
> Yes, patch is OK.
Thanks, pushed.
>> [Side note: While developing the patch I also found that a slightly
>> different typecast expression -- with the dimension removed from the
>> array typecast -- causes a GDB internal error:
>>
>> (gdb) p ((char*)(short[]){1})[1]
>> /home/arnez/src/binutils-gdb/gdb/gdbtypes.c:4722: internal-error:
>> type* copy_type(const type*): Assertion `TYPE_OBJFILE_OWNED (type)'
>> failed.
>>
>> I see this bug on s390x and amd64, but haven't spent much time
>> investigating it yet.]
>
> Reproduced. Could you file a bug for it?
Sure: https://sourceware.org/bugzilla/show_bug.cgi?id=21162
--
Andreas