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  <bcallah@openbsd.org>

	PR gdb/24839:
	* gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
	type.
This commit is contained in:
Brian Callahan 2019-07-26 14:48:15 -04:00 committed by Tom Tromey
parent 1512d3b7b9
commit 89b085acaf
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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.
2019-07-25 Christian Biesinger <cbiesinger@google.com>
* python/py-objfile.c (add_separate_debug_file): Fix comment about

View File

@ -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)