diff options
author | Brian Callahan <callab5@rpi.edu> | 2019-07-26 14:48:15 -0400 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-07-26 15:04:41 -0600 |
commit | 89b085acaf8d449d6c9c0b0490c6a0c9a745db5d (patch) | |
tree | 8a0c99e80c794c2fd5a9bad0de70db3038c50b2c | |
parent | 1512d3b7b9de3a1943623f2e1f373459d5d80a98 (diff) | |
download | gdb-89b085acaf8d449d6c9c0b0490c6a0c9a745db5d.zip gdb-89b085acaf8d449d6c9c0b0490c6a0c9a745db5d.tar.gz gdb-89b085acaf8d449d6c9c0b0490c6a0c9a745db5d.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/obsd-nat.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a1d39b9..7a01b8f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/obsd-nat.c b/gdb/obsd-nat.c index 88c01df..0351f69 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) |