diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-10-20 12:38:42 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-12-23 20:53:14 +0000 |
commit | 2c75ccb24cec32180e057aade6bd9141296860e0 (patch) | |
tree | c61eba8249f1c31268ecc38f59230c7d43f2ece5 /gdb/ChangeLog | |
parent | 016382f8a43a59eca49f68c7d8b8058f64eaf40f (diff) | |
download | fsf-binutils-gdb-2c75ccb24cec32180e057aade6bd9141296860e0.zip fsf-binutils-gdb-2c75ccb24cec32180e057aade6bd9141296860e0.tar.gz fsf-binutils-gdb-2c75ccb24cec32180e057aade6bd9141296860e0.tar.bz2 |
gdb: avoid accessing global C++ language implementation functions
The function c_printchar is called from two places; it provides the
implementation of language_defn::printchar and it is called from
dwarf2_compute_name.
It would be nice to rename c_printchar as language_defn::printchar and
so avoid the trampoline.
To achieve this, instead of calling c_printchar directly from the
DWARF code, I lookup the C++ language object and call the printchar
member function.
In a later commit I can then rename c_printchar.
There should be no user visible changes after this commit.
gdb/ChangeLog:
* dwarf2/read.c (dwarf2_compute_name): Call methods on C++
language object instead of calling global functions directly.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6788fc7..9acbae8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> + * dwarf2/read.c (dwarf2_compute_name): Call methods on C++ + language object instead of calling global functions directly. + +2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> + * valprint.c (print_char_chars): Delete definition. * valprint.h (print_char_chars): Delete declaration. |