diff options
Diffstat (limited to 'gdb/obsd-nat.c')
-rw-r--r-- | gdb/obsd-nat.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gdb/obsd-nat.c b/gdb/obsd-nat.c index 2c8b2d4..0a99bd0 100644 --- a/gdb/obsd-nat.c +++ b/gdb/obsd-nat.c @@ -35,16 +35,11 @@ #ifdef PT_GET_THREAD_FIRST -const char * +std::sring obsd_nat_target::pid_to_str (ptid_t ptid) { if (ptid.lwp () != 0) - { - static char buf[64]; - - xsnprintf (buf, sizeof buf, "thread %ld", ptid.lwp ()); - return buf; - } + return string_printf ("thread %ld", ptid.lwp ()); return normal_pid_to_str (ptid); } |