]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Change target_read_string API
authorTom Tromey <tromey@adacore.com>
Mon, 15 Jun 2020 12:28:09 +0000 (06:28 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 15 Jun 2020 12:28:10 +0000 (06:28 -0600)
commit669203174311c5be76744a879563c697cd479853
tree77b21ddbec4501e2cf04dafd9987a347d66e8cc2
parenta5d871ddaf2aa8462922ed25b0c0dc7f02128cb9
Change target_read_string API

This simplifies the target_read_string API a bit.

Note that some code was using safe_strerror on the error codes
returned by target_read_string.  It seems to me that this is incorrect
(if it was ever correct, it must have been quite a long time ago).

gdb/ChangeLog
2020-06-15  Tom Tromey  <tromey@adacore.com>

* windows-nat.c (windows_nat::handle_output_debug_string):
Update.
(windows_nat::handle_ms_vc_exception): Update.
* target.h (target_read_string): Change API.
* target.c (target_read_string): Change API.
* solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
Update.
* solib-frv.c (frv_current_sos): Update.
* solib-dsbt.c (dsbt_current_sos): Update.
* solib-darwin.c (darwin_current_sos): Update.
* linux-thread-db.c (inferior_has_bug): Update.
* expprint.c (print_subexp_standard): Update.
* ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
(ada_exception_message_1): Update.
gdb/ChangeLog
gdb/ada-lang.c
gdb/expprint.c
gdb/linux-thread-db.c
gdb/solib-darwin.c
gdb/solib-dsbt.c
gdb/solib-frv.c
gdb/solib-svr4.c
gdb/target.c
gdb/target.h
gdb/windows-nat.c