diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2019-04-04 11:20:09 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2019-04-04 11:20:12 +0200 |
commit | e9f8e3f109d57c119eaaa1e56378926f7f20863f (patch) | |
tree | d0655052911d38ff5f82708f9f86514352739cc2 | |
parent | e691a46f7db8db7c126f06551e3cec47f875f512 (diff) | |
download | gdb-e9f8e3f109d57c119eaaa1e56378926f7f20863f.zip gdb-e9f8e3f109d57c119eaaa1e56378926f7f20863f.tar.gz gdb-e9f8e3f109d57c119eaaa1e56378926f7f20863f.tar.bz2 |
[GDB, Hurd] Fix build; 'target_waitstatus_to_string' call
Recent commit c29705b71a8ec966478c0dc4712194a95291c6de removed an incomplete
local implementation in favor of 'target_waitstatus_to_string' (thanks!), but
introduced a small typing error:
In file included from [...]/gdb/gnu-nat.c:24:0:
[...]/gdb/gnu-nat.c: In member function 'virtual ptid_t gnu_nat_target::wait(ptid_t, target_waitstatus*, int)':
[...]/gdb/gnu-nat.c:1652:43: error: cannot convert 'target_waitstatus**' to 'const target_waitstatus*' for argument '1' to 'std::__cxx11::string target_waitstatus_to_string(const target_waitstatus*)'
target_waitstatus_to_string (&status).c_str ());
^
[...]/gdb/gnu-nat.h:119:32: note: in definition of macro 'debug'
__FILE__ , __LINE__ , ##args); } while (0)
^~~~
[...]/gdb/gnu-nat.c:1650:3: note: in expansion of macro 'inf_debug'
inf_debug (inf, "returning ptid = %s, %s",
^~~~~~~~~
gdb/
* gnu-nat.c (gnu_nat_target::wait): Fix
target_waitstatus_to_string call.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gnu-nat.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aee0d96..4a49d32 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-04-04 Thomas Schwinge <thomas@codesourcery.com> + + * gnu-nat.c (gnu_nat_target::wait): Fix + target_waitstatus_to_string call. + 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com> * eval.c (evaluate_subexp_standard): Handle internal functions diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 654a652..5eeac92 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -1649,7 +1649,7 @@ rewait: inf_debug (inf, "returning ptid = %s, %s", target_pid_to_str (ptid).c_str (), - target_waitstatus_to_string (&status).c_str ()); + target_waitstatus_to_string (status).c_str ()); return ptid; } |