From 50f8a39878d6c8cf4dfcb1d3333aa2a20daada0c Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 22 Aug 2024 09:49:53 +0200 Subject: [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 --- gdb/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/exec.c') 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 (), -- cgit v1.1