]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ada-lang.c
Handle PPC64 function descriptor in Ada decoding
authorJerome Guitton <guitton@adacore.com>
Sat, 8 Sep 2018 21:47:11 +0000 (16:47 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Sat, 8 Sep 2018 21:47:11 +0000 (17:47 -0400)
commit0d81f350ec01630ef7cd9ae4385a1dc504c54d73
tree07f8f7bbae941baebf95ec3c0924a28366d36ea3
parent57aff202b4b17a05d73e71680a26fe12a817f110
Handle PPC64 function descriptor in Ada decoding

On PPC64, the entry point of the function "FN" is ".FN" when a function
descriptor is used. One of the consequences of this is that GDB then
presents the name of the function to the user (eg: in backtraces) with
the leading dot, which is a low-level internal detail that the user
should not be seeing.  The Ada decoding should strip it.

gdb/ChangeLog:

* ada-lang.c (ada_decode): strip dot prefix in symbol name.

No testcase added, as a number of existing testcases should already
demonstrate that problem.
gdb/ChangeLog
gdb/ada-lang.c