aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-08-22 09:49:53 +0200
committerTom de Vries <tdevries@suse.de>2024-08-22 09:49:53 +0200
commit50f8a39878d6c8cf4dfcb1d3333aa2a20daada0c (patch)
tree8c550a230e5c2ec5271e51c2517faca595f59497 /gdb/exec.c
parent365b32b9c7792cb5fb67c658ea28b1c3a7a8ef71 (diff)
downloadbinutils-50f8a39878d6c8cf4dfcb1d3333aa2a20daada0c.zip
binutils-50f8a39878d6c8cf4dfcb1d3333aa2a20daada0c.tar.gz
binutils-50f8a39878d6c8cf4dfcb1d3333aa2a20daada0c.tar.bz2
[gdb] Add const to catch gdb_exception
I did a review of lines containing "catch (gdb_exception" and found a few where we can add const. Tested on x86_64-linux. Approved-By: Tom Tromey <tom@tromey.com>
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 63eee42..683b0a1 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -294,7 +294,7 @@ validate_exec_file (int from_tty)
symbol_file_add_main (exec_file_target.c_str (), add_flags);
exec_file_attach (exec_file_target.c_str (), from_tty);
}
- catch (gdb_exception_error &err)
+ catch (const gdb_exception_error &err)
{
warning (_("loading %ps %s"),
styled_string (file_name_style.style (),