diff options
author | Sergio Durigan Junior <sergiodj@redhat.com> | 2019-09-26 14:24:30 -0400 |
---|---|---|
committer | Sergio Durigan Junior <sergiodj@redhat.com> | 2019-09-26 14:24:30 -0400 |
commit | 50fa3001ce25e221ca2e54564b5589d29c4bed19 (patch) | |
tree | 4f99db1e48244cf2e3d86b867a90314dcf6d7777 /gdb/gdbserver/thread-db.c | |
parent | 381beca6146ac68b57edf47d28cdb335fbd11635 (diff) | |
download | gdb-50fa3001ce25e221ca2e54564b5589d29c4bed19.zip gdb-50fa3001ce25e221ca2e54564b5589d29c4bed19.tar.gz gdb-50fa3001ce25e221ca2e54564b5589d29c4bed19.tar.bz2 |
Revert "Improve ptrace-error detection on Linux targets"
This reverts commit 381beca6146ac68b57edf47d28cdb335fbd11635.
The patch hasn't been fully reviewed yet, and Pedro would like to see
more fixes.
Diffstat (limited to 'gdb/gdbserver/thread-db.c')
-rw-r--r-- | gdb/gdbserver/thread-db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/thread-db.c b/gdb/gdbserver/thread-db.c index e3acf83..c6b43a0 100644 --- a/gdb/gdbserver/thread-db.c +++ b/gdb/gdbserver/thread-db.c @@ -224,7 +224,7 @@ attach_thread (const td_thrhandle_t *th_p, td_thrinfo_t *ti_p) err = linux_attach_lwp (ptid); if (err != 0) { - std::string reason = linux_ptrace_attach_fail_reason_lwp (ptid, err); + std::string reason = linux_ptrace_attach_fail_reason_string (ptid, err); warning ("Could not attach to thread %ld (LWP %d): %s", (unsigned long) ti_p->ti_tid, ti_p->ti_lid, reason.c_str ()); |