Fix return type typo in obsd-nat.c that breaks build on OpenBSD
authorBrian Callahan <callab5@rpi.edu>
Fri, 26 Jul 2019 18:48:15 +0000 (14:48 -0400)
committerTom Tromey <tromey@adacore.com>
Fri, 26 Jul 2019 21:04:41 +0000 (15:04 -0600)
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
gdb/obsd-nat.c

index a1d39b90146dca32fa1910ae5762ee8d10235304..7a01b8f3cc680a71ff94817151f129be2ddf5aca 100644 (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
index 88c01df2a1ec4933034f9c9da9a5450bacbcb3d1..0351f69a8dae3b7db7445e9822f87236797fea12 100644 (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)