diff options
-rw-r--r-- | gdb/breakpoint.c | 2 | ||||
-rw-r--r-- | gdb/top.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index d807ae3..f9b20a7 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -7581,7 +7581,7 @@ bp_location::to_string () const string_file stb; ui_out_redirect_pop redir (current_uiout, &stb); print_breakpoint_location (this->owner, this); - return stb.string (); + return stb.release (); } /* Decrement reference count. If the reference count reaches 0, @@ -647,12 +647,12 @@ execute_fn_to_string (std::string &res, std::function<void(void)> fn, catch (...) { /* Finally. */ - res = std::move (str_file.string ()); + res = str_file.release (); throw; } /* And finally. */ - res = std::move (str_file.string ()); + res = str_file.release (); } /* See gdbcmd.h. */ |