diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4aeb0ba841f..41b1ad4ceda 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2018-09-08 Jerome Guitton + + * ada-lang.c (ada_decode): strip dot prefix in symbol name. + 2018-09-08 Joel Brobecker * ada-lang.c (ada_exception_sal): Replace gdb_assert calls diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index c5cddd044ca..16c7c51ffa0 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -1164,6 +1164,11 @@ ada_decode (const char *encoded) static char *decoding_buffer = NULL; static size_t decoding_buffer_size = 0; + /* With function descriptors on PPC64, the value of a symbol named + ".FN", if it exists, is the entry point of the function "FN". */ + if (encoded[0] == '.') + encoded += 1; + /* The name of the Ada main procedure starts with "_ada_". This prefix is not part of the decoded name, so skip this part if we see this prefix. */