From: Brian Callahan Date: Fri, 26 Jul 2019 18:48:15 +0000 (-0400) Subject: Fix return type typo in obsd-nat.c that breaks build on OpenBSD X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89b085acaf8d449d6c9c0b0490c6a0c9a745db5d;p=binutils-gdb.git Fix return type typo in obsd-nat.c that breaks build on OpenBSD To recap the bug report: Commit a068643 introduced a small typo that breaks the gdb build on OpenBSD. Line 38 of obsd-nat.c needs to be changed from std::sring to std::string. gdb/ChangeLog 2019-07-26 Brian Callahan PR gdb/24839: * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return type. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a1d39b90146..7a01b8f3cc6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2019-07-26 Brian Callahan + + PR gdb/24839: + * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return + type. + 2019-07-25 Christian Biesinger * python/py-objfile.c (add_separate_debug_file): Fix comment about diff --git a/gdb/obsd-nat.c b/gdb/obsd-nat.c index 88c01df2a1e..0351f69a8da 100644 --- a/gdb/obsd-nat.c +++ b/gdb/obsd-nat.c @@ -35,7 +35,7 @@ #ifdef PT_GET_THREAD_FIRST -std::sring +std::string obsd_nat_target::pid_to_str (ptid_t ptid) { if (ptid.lwp () != 0)