[PATCH 7/9] gdb/objc: fix bug in objc_language::opcode_print_table
Andrew Burgess
andrew.burgess@embecosm.com
Fri Nov 20 11:55:02 GMT 2020
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.
---
gdb/ChangeLog | 5 +++++
gdb/objc-lang.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c
index 4cd853249aa..4e58c62e4fd 100644
--- a/gdb/objc-lang.c
+++ b/gdb/objc-lang.c
@@ -424,7 +424,7 @@ class objc_language : public language_defn
/* 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. */
--
2.25.4
More information about the Gdb-patches
mailing list