This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix possible alignment issue with dw2-dir-file-name test case
- From: Pedro Alves <palves at redhat dot com>
- To: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>
- Cc: Edjunior Barbosa Machado <emachado at linux dot vnet dot ibm dot com>, Jan Kratochvil <jan dot kratochvil at redhat dot com>, gdb-patches at sourceware dot org, Ulrich Weigand <uweigand at de dot ibm dot com>, Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>, Omair Javaid <omair dot javaid at linaro dot org>
- Date: Wed, 22 Jan 2014 13:15:04 +0000
- Subject: Re: [PATCH] Fix possible alignment issue with dw2-dir-file-name test case
- Authentication-results: sourceware.org; auth=none
- References: <87a9f65p73 dot fsf at br87z6lw dot de dot ibm dot com> <52CFD97A dot 4040009 at redhat dot com> <87mwj352p5 dot fsf at br87z6lw dot de dot ibm dot com> <20140110145327 dot GA23695 at host2 dot jankratochvil dot net> <52D014B7 dot 6040305 at redhat dot com> <52D6FEA9 dot 6010605 at linux dot vnet dot ibm dot com> <52D7EEA9 dot 4030006 at redhat dot com> <874n5232yj dot fsf at br87z6lw dot de dot ibm dot com> <52D971DA dot 90807 at redhat dot com> <52D97460 dot 1040206 at gmail dot com> <87zjmq1lmv dot fsf at br87z6lw dot de dot ibm dot com>
On 01/20/2014 07:47 PM, Andreas Arnez wrote:
> * On s390x, the test case fails like this:
>
> Breakpoint 1, 0x00000000800005d2 in func (param=<error reading
> variable: Cannot access memory at address 0x0>)
> (gdb) p/x param
> Cannot access memory at address 0x0
>
> Note that the debug info looks correct, and all addresses fit into
> four bytes. Still, the failure disappears when changing the DWARF
> pointer size to 8. Thus it seems that the address size mismatch
> causes confusion somewhere in GDB on big-endian systems.
Hmm, yeah. A little odd that dw2-dir-file-name also uses .byte 4
and doesn't have this issue.
> * On PPC64, 'func' and 'main' are function descriptors and don't point
> to the actual code. Thus the usage of these symbols in
> dw2-ifort-parameter-debug.S is broken (similar to what has been
> discussed in the thread, I think).
Thanks. I believe this alone would fix Thumb. I think this bit should
go in as is (maybe with a comment), and independently of whatever
is the fix for the 64-bit issue.
--
Pedro Alves