diff options
author | Tom de Vries <tdevries@suse.de> | 2024-08-22 09:49:53 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-08-22 09:49:53 +0200 |
commit | 50f8a39878d6c8cf4dfcb1d3333aa2a20daada0c (patch) | |
tree | 8c550a230e5c2ec5271e51c2517faca595f59497 /gdb/python/py-inferior.c | |
parent | 365b32b9c7792cb5fb67c658ea28b1c3a7a8ef71 (diff) | |
download | gdb-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/python/py-inferior.c')
-rw-r--r-- | gdb/python/py-inferior.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index a1042ee..ccc3e88 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -631,7 +631,7 @@ infpy_write_memory (PyObject *self, PyObject *args, PyObject *kw) write_memory_with_notification (addr, buffer, length); } - catch (gdb_exception &ex) + catch (const gdb_exception &ex) { GDB_PY_HANDLE_EXCEPTION (ex); } @@ -705,7 +705,7 @@ infpy_search_memory (PyObject *self, PyObject *args, PyObject *kw) buffer, pattern_size, &found_addr); } - catch (gdb_exception &ex) + catch (const gdb_exception &ex) { GDB_PY_HANDLE_EXCEPTION (ex); } |