From 89b085acaf8d449d6c9c0b0490c6a0c9a745db5d Mon Sep 17 00:00:00 2001 From: Brian Callahan Date: Fri, 26 Jul 2019 14:48:15 -0400 Subject: [PATCH] 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. --- gdb/ChangeLog | 6 ++++++ gdb/obsd-nat.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a1d39b9014..7a01b8f3cc 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 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)