aboutsummaryrefslogtreecommitdiff
path: root/gdb/objc-lang.h
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/objc-lang.h
parent08dedd6631efefbcba63c4dbf60ef97fb615e022 (diff)
downloadgdb-46fec6428ef7504be486ebd57e2509bde4382918.zip
gdb-46fec6428ef7504be486ebd57e2509bde4382918.tar.gz
gdb-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/objc-lang.h')
-rw-r--r--gdb/objc-lang.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/objc-lang.h b/gdb/objc-lang.h
index f58335e..9d3e26d 100644
--- a/gdb/objc-lang.h
+++ b/gdb/objc-lang.h
@@ -31,8 +31,6 @@ extern CORE_ADDR lookup_objc_class (struct gdbarch *gdbarch,
extern CORE_ADDR lookup_child_selector (struct gdbarch *gdbarch,
const char *methodname);
-extern char *objc_demangle (const char *mangled, int options);
-
extern int find_objc_msgcall (CORE_ADDR pc, CORE_ADDR *new_pc);
extern const char *find_imps (const char *method,