diff options
author | Tom Tromey <tromey@adacore.com> | 2023-02-16 10:46:04 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-06-12 11:51:52 -0600 |
commit | 898db0f75d07c0c40682fce080d7f631179bd85a (patch) | |
tree | 4924d55aa4befd2021852454ebf8870bac9afe87 /gdb/mi | |
parent | dc3f8fa94a1c818710d05a2682e9fd998055bba5 (diff) | |
download | gdb-898db0f75d07c0c40682fce080d7f631179bd85a.zip gdb-898db0f75d07c0c40682fce080d7f631179bd85a.tar.gz gdb-898db0f75d07c0c40682fce080d7f631179bd85a.tar.bz2 |
Transfer ownership of exception string to ada_catchpoint
This changes the ada_catchpoint to require an rvalue ref, so that
ownership of the exception string can be transferred to the catchpoint
object.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-cmd-catch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mi/mi-cmd-catch.c b/gdb/mi/mi-cmd-catch.c index fdfbe2e..9669d86 100644 --- a/gdb/mi/mi-cmd-catch.c +++ b/gdb/mi/mi-cmd-catch.c @@ -153,7 +153,7 @@ mi_cmd_catch_exception (const char *cmd, const char *const *argv, int argc) scoped_restore restore_breakpoint_reporting = setup_breakpoint_reporting (); create_ada_exception_catchpoint (gdbarch, ex_kind, - exception_name, + std::move (exception_name), condition, temp, enabled, 0); } @@ -217,7 +217,7 @@ mi_cmd_catch_handlers (const char *cmd, const char *const *argv, int argc) scoped_restore restore_breakpoint_reporting = setup_breakpoint_reporting (); create_ada_exception_catchpoint (gdbarch, ada_catch_handlers, - exception_name, + std::move (exception_name), condition, temp, enabled, 0); } |