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/inf-ptrace.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/inf-ptrace.c')
-rw-r--r-- | gdb/inf-ptrace.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c index b792af0..4a8e732 100644 --- a/gdb/inf-ptrace.c +++ b/gdb/inf-ptrace.c @@ -94,20 +94,6 @@ inf_ptrace_target::remove_fork_catchpoint (int pid) #endif /* PT_GET_PROCESS_STATE */ -/* Default method for "inf_ptrace_me_fail_reason", which returns an - empty string. */ - -static std::string -default_inf_ptrace_me_fail_reason (int err) -{ - return {}; -} - -/* See inf-ptrace.h. */ - -std::string (*inf_ptrace_me_fail_reason) (int err) - = default_inf_ptrace_me_fail_reason; - /* Prepare to be traced. */ static void @@ -115,8 +101,7 @@ inf_ptrace_me (void) { /* "Trace me, Dr. Memory!" */ if (ptrace (PT_TRACE_ME, 0, (PTRACE_TYPE_ARG3) 0, 0) < 0) - trace_start_error_with_name ("ptrace", - inf_ptrace_me_fail_reason (errno).c_str ()); + trace_start_error_with_name ("ptrace"); } /* Start a new inferior Unix child process. EXEC_FILE is the file to |