Replace exception_print_same with operator!=
authorTom Tromey <tom@tromey.com>
Sun, 27 Jun 2021 17:06:04 +0000 (11:06 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 30 Jul 2021 14:42:39 +0000 (08:42 -0600)
commit785e5700ce4bda469e323d1dc7eeae9d86980c79
treea16c1cce4eec5f386703f3587a2c26a020c5a494
parentfb6262e8534e0148a4a424e9e5138159af19faf1
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.
gdb/exceptions.c
gdb/exceptions.h
gdb/exec.c
gdbsupport/common-exceptions.h