aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.c
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/exec.c
parentfb6262e8534e0148a4a424e9e5138159af19faf1 (diff)
downloadbinutils-785e5700ce4bda469e323d1dc7eeae9d86980c79.zip
binutils-785e5700ce4bda469e323d1dc7eeae9d86980c79.tar.gz
binutils-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/exec.c')
-rw-r--r--gdb/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/exec.c b/gdb/exec.c
index 35bf7bd..a28336b 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -201,7 +201,7 @@ try_open_exec_file (const char *exec_file_host, struct inferior *inf,
}
catch (const gdb_exception_error &err)
{
- if (!exception_print_same (prev_err, err))
+ if (prev_err != err)
warning ("%s", err.what ());
}
}