aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-lang.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2021-03-15 17:50:28 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2021-03-22 10:07:37 +0000
commit46fec6428ef7504be486ebd57e2509bde4382918 (patch)
tree1b5854ccb1d9b0b1ec03a0ad8c844d233b1e8e58 /gdb/rust-lang.c
parent08dedd6631efefbcba63c4dbf60ef97fb615e022 (diff)
downloadbinutils-46fec6428ef7504be486ebd57e2509bde4382918.zip
binutils-46fec6428ef7504be486ebd57e2509bde4382918.tar.gz
binutils-46fec6428ef7504be486ebd57e2509bde4382918.tar.bz2
gdb/objc: make objc_demangle a member function of objc_language
Makes the objc_demangle helper function a member function of objc_language (by renaming it to be the demangle_symbol member function). I also fixed some of the obvious coding standard violations in obj_demangle, so the '&&' operators are now at the start of the line, not the end. Comparison to nullptr are now made explicit, as are comparisons to the null character. There should be no user visible changes after this commit. gdb/ChangeLog: * objc-lang.c (objc_demangle): Renamed to objc_language::demangle_symbol, and moved later in the file. (objc_language::sniff_from_mangled_name): Call demangle_symbol member function. (objc_language::demangle_symbol): Defined outside of class declaration. The definition is the old objc_demangle with NULL changed to nullptr, and if conditions relating to nullptr pointers or null character checks made explicit. * objc-lang.h (objc_demangle): Delete declaration.
Diffstat (limited to 'gdb/rust-lang.c')
0 files changed, 0 insertions, 0 deletions