aboutsummaryrefslogtreecommitdiff
path: root/gdb/unittests/scoped_mmap-selftests.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/unittests/scoped_mmap-selftests.c
parent365b32b9c7792cb5fb67c658ea28b1c3a7a8ef71 (diff)
downloadgdb-50f8a39878d6c8cf4dfcb1d3333aa2a20daada0c.zip
gdb-50f8a39878d6c8cf4dfcb1d3333aa2a20daada0c.tar.gz
gdb-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/unittests/scoped_mmap-selftests.c')
-rw-r--r--gdb/unittests/scoped_mmap-selftests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/unittests/scoped_mmap-selftests.c b/gdb/unittests/scoped_mmap-selftests.c
index 7b3a6f5..09a94ed 100644
--- a/gdb/unittests/scoped_mmap-selftests.c
+++ b/gdb/unittests/scoped_mmap-selftests.c
@@ -114,7 +114,7 @@ test_invalid_filename ()
try {
::scoped_mmap m = ::mmap_file ("/this/file/should/not/exist");
- } catch (gdb_exception &e) {
+ } catch (const gdb_exception &e) {
threw = true;
}