Re: [testsuite patch] [ppc64] +kfail: gdb_target_symbol does not support function descriptors

Jan Kratochvil
2016-07-06T08:11:32Z

On Wed, 06 Jul 2016 09:51:15 +0200, Yao Qi wrote:
> If we hack gdb.dwarf2/dw2-bad-mips-linkage-name.exp like this, "f" -> ".f",
> and "g" -> ".g",

OK, I didn't realize that the ".dotted" synthetic symbols can be used even in
as/ld, not just inside GDB.

> The right fix would be teaching proc gdb_target_symbol to add
> prefix "." to symbol if target is powerpc64 and abi is ELFv1, in which function
> descriptor is used.

Now the question is how to detect that. I used "powerpc64-*linux*" target
match in my patch but I guess that is not right. Maybe it could compile first
something and check if ".somesymbol" exists.

Thanks,
Jan