aboutsummaryrefslogtreecommitdiff
path: root/gdb/objc-lang.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2020-10-30 14:35:47 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2020-12-23 20:53:14 +0000
commited5797ee2c17bae5d15204cbfa9a3918c7e4c1a9 (patch)
treecdd3ce55a62f1f5dc7969790b591269799bf0584 /gdb/objc-lang.c
parent46157d77c324ab6adf52ddf994a6ccb3328b3edb (diff)
downloadgdb-ed5797ee2c17bae5d15204cbfa9a3918c7e4c1a9.zip
gdb-ed5797ee2c17bae5d15204cbfa9a3918c7e4c1a9.tar.gz
gdb-ed5797ee2c17bae5d15204cbfa9a3918c7e4c1a9.tar.bz2
gdb/objc: fix bug in objc_language::opcode_print_table
In this commit: commit b7c6e27dbbbbe678b2e2f0bf617605e055e1b378 Date: Tue Aug 4 17:07:59 2020 +0100 gdb: Convert language_data::la_op_print_tab to a method A bug was introduced, the objc language now returns the wrong op_print table. Fixed in this commit. gdb/ChangeLog: * objc-lang.c (objc_language::opcode_print_table): Return objc_op_print_tab.
Diffstat (limited to 'gdb/objc-lang.c')
-rw-r--r--gdb/objc-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c
index 10220c8..8d68af7 100644
--- a/gdb/objc-lang.c
+++ b/gdb/objc-lang.c
@@ -424,7 +424,7 @@ public:
/* See language.h. */
const struct op_print *opcode_print_table () const override
- { return c_op_print_tab; }
+ { return objc_op_print_tab; }
};
/* Single instance of the class representing the Objective-C language. */