Return std::string from memory_error_message
authorTom Tromey <tom@tromey.com>
Sat, 5 Aug 2017 22:23:18 +0000 (16:23 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 3 Sep 2017 19:03:02 +0000 (13:03 -0600)
commit1ccbe9985f607b291bb6fc920beda60225f1bf83
tree660da8f15daa3e60fd6a969ee515a762fddc4373
parent0e30d991804de9dfd368653d6a88bf3766a27ffc
Return std::string from memory_error_message

This changes memory_error_message to return a std::string and fixes up
the callers.  This removes some cleanups.

ChangeLog
2017-09-03  Tom Tromey  <tom@tromey.com>

* valprint.c (val_print_string): Update.
* gdbcore.h (memory_error_message): Return std::string.
* corefile.c (memory_error_message): Return std::string.
(memory_error): Update.
* breakpoint.c (insert_bp_location): Update.
gdb/ChangeLog
gdb/breakpoint.c
gdb/corefile.c
gdb/gdbcore.h
gdb/valprint.c