aboutsummaryrefslogtreecommitdiff
path: root/gdb/exceptions.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-06-27 11:06:04 -0600
committerTom Tromey <tom@tromey.com>2021-07-30 08:42:39 -0600
commit785e5700ce4bda469e323d1dc7eeae9d86980c79 (patch)
treea16c1cce4eec5f386703f3587a2c26a020c5a494 /gdb/exceptions.h
parentfb6262e8534e0148a4a424e9e5138159af19faf1 (diff)
downloadgdb-785e5700ce4bda469e323d1dc7eeae9d86980c79.zip
gdb-785e5700ce4bda469e323d1dc7eeae9d86980c79.tar.gz
gdb-785e5700ce4bda469e323d1dc7eeae9d86980c79.tar.bz2
Replace exception_print_same with operator!=
I noticed that exception_print_same is only used in a single spot, and it seemed to be better as an operator!= method attached to gdb_exception. Regression tested on x86-64 Fedora 34.
Diffstat (limited to 'gdb/exceptions.h')
-rw-r--r--gdb/exceptions.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/exceptions.h b/gdb/exceptions.h
index b0416d4..8bd2dcc 100644
--- a/gdb/exceptions.h
+++ b/gdb/exceptions.h
@@ -31,7 +31,4 @@ extern void exception_fprintf (struct ui_file *file,
const char *prefix,
...) ATTRIBUTE_PRINTF (3, 4);
-/* Compare two exception objects for print equality. */
-extern int exception_print_same (const struct gdb_exception &e1,
- const struct gdb_exception &e2);
#endif