This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] testsuite: Fix gdb.dwarf2/dw2-case-insensitive.exp testcase for ppc64
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: emachado at linux dot vnet dot ibm dot com (Edjunior Barbosa Machado)
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 28 Jan 2014 17:01:47 +0100 (CET)
- Subject: Re: [PATCH] testsuite: Fix gdb.dwarf2/dw2-case-insensitive.exp testcase for ppc64
- Authentication-results: sourceware.org; auth=none
Edjunior Barbosa Machado wrote:
> gdb.dwarf2/dw2-case-insensitive.exp has currently 1 test failing on ppc64:
>
> p fuNC_symtab^M
> $2 = {<text variable, no debug info>} 0x10000694 <FUNC_lang_end>^M
> (gdb) FAIL: gdb.dwarf2/dw2-case-insensitive.exp: p fuNC_symtab
So I guess this happens because FUNC_lang_end ends up at the same address
as FUNC_symtab?
> This patch moves the label FUNC_lang_end to the end of the function scope, so
> ppc64 can understand the following function (fuNC_symtab) correctly.
I'm not sure if this is the correct fix ... the DWARF end label really should
come after all the code in the function.
If the problem is indeed that FUNC_lang_end is at the same location as
FUNC_symtab, maybe a better fix would be to add some padding in between
(e.g. a ".byte 0" after the FUNC_lang_end label)?
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com