This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] testsuite: Fix gdb.dwarf2/dw2-case-insensitive.exp testcase for ppc64


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]