forked from Imagelibrary/binutils-gdb
[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>
This commit is contained in:
@@ -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 (),
|
||||
|
||||
Reference in New Issue
Block a user