mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 16:57:52 +00:00
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.
This commit is contained in:
@@ -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 ());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user