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/remote.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/remote.c')
-rw-r--r-- | gdb/remote.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index efc5084..21160e1 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -5825,20 +5825,8 @@ extended_remote_target::attach (const char *args, int from_tty) case PACKET_UNKNOWN: error (_("This target does not support attaching to a process")); default: - { - std::string errmsg = rs->buf.data (); - - if (!errmsg.empty ()) - { - /* Get rid of the "E." prefix. */ - errmsg.erase (0, 2); - } - - error (_("Attaching to %s failed%s%s"), - target_pid_to_str (ptid_t (pid)).c_str (), - !errmsg.empty () ? "\n" : "", - errmsg.c_str ()); - } + error (_("Attaching to %s failed"), + target_pid_to_str (ptid_t (pid)).c_str ()); } set_current_inferior (remote_add_inferior (false, pid, 1, 0)); |