Fix return type typo in obsd-nat.c that breaks build on OpenBSD

Message ID 20190726184815.10210-1-callab5@rpi.edu
State New, archived
Headers

Commit Message

Brian Callahan July 26, 2019, 6:48 p.m. UTC
  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  <bcallah@openbsd.org>

        PR gdb/24839:
        * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
        type.
---
 gdb/ChangeLog  | 7 +++++++
 gdb/obsd-nat.c | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
  

Comments

Tom Tromey July 26, 2019, 9:04 p.m. UTC | #1
>>>>> "Brian" == Brian Callahan <callab5@rpi.edu> writes:

Brian> To recap the bug report:
Brian> Commit a068643 introduced a small typo that breaks the gdb build on OpenBSD.
Brian> Line 38 of obsd-nat.c needs to be changed from std::sring to std::string.

Brian> gdb/ChangeLog
Brian> 	2019-07-26  Brian Callahan  <bcallah@openbsd.org>

Brian>         PR gdb/24839:
Brian>         * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
Brian>         type.

Thank you for the patch.  I will push it momentarily.

Tom
  

Patch

diff --git a/gdb/obsd-nat.c b/gdb/obsd-nat.c
index 88c01df2a1..0351f69a8d 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)