Re: [PATCH] Fix possible alignment issue with dw2-dir-file-name test case

Pedro Alves
2014-01-16T14:37:41Z

On 01/15/2014 09:33 PM, Edjunior Barbosa Machado wrote:
>

>> testsuite/
>> 2014-01-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
>> Pedro Alves <palves@redhat.com>
>>
>> * gdb.dwarf2/dw2-dir-file-name.c (FUNC): Remove "*_start" symbol.
>> Make "name" extern.
>> * gdb.dwarf2/dw2-dir-file-name.exp (out_cu, out_line): Replace
>> references to ${name}_start by references to ${name}.
>
> For some reason, the testcase is no longer successful on ppc64 (although it
> still passes on ppc32): it hits the breakpoints, but no longer shows the
> filename in none of the tests.
>
> From gdb.log:
> ...
> (gdb) break compdir_missing__ldir_missing__file_basename
> Breakpoint 2 at 0x100006c4
> (gdb) continue
> Continuing.
>
> Breakpoint 2, 0x00000000100006c4 in .compdir_missing.ldir_missing.file_basename ()

Bah, looks like the function's low_pc ends up pointing to the function
descriptor (because that's what the "name" symbol resolves to in the
debug info in the .S file)? Looks like we'll need some other solution.

> (gdb) FAIL: gdb.dwarf2/dw2-dir-file-name.exp: compdir_missing__ldir_missing__file_basename: continue to breakpoint: compdir_missing__ldir_missing__file_basename
> ...

--
Pedro Alves