Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/gdb it might not be a breakpoint, so ...



details:   https://anonhg.NetBSD.org/src/rev/b9cf507222e7
branches:  trunk
changeset: 348585:b9cf507222e7
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 27 14:30:55 2016 +0000

description:
it might not be a breakpoint, so make the message what it actually is.

diffstat:

 external/gpl3/gdb/dist/gdb/inf-ptrace.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r edd7d593a2b1 -r b9cf507222e7 external/gpl3/gdb/dist/gdb/inf-ptrace.c
--- a/external/gpl3/gdb/dist/gdb/inf-ptrace.c   Thu Oct 27 11:48:24 2016 +0000
+++ b/external/gpl3/gdb/dist/gdb/inf-ptrace.c   Thu Oct 27 14:30:55 2016 +0000
@@ -500,9 +500,10 @@
           to indicate failure.  */
        if (errno == EACCES)
          {
-           fprintf_unfiltered (gdb_stderr, "Cannot set breakpoint at %p (%s). "
+           fprintf_unfiltered (gdb_stderr, "Cannot %s process at %p (%s). "
                                "Is PaX MPROTECT active? See security(7), "
-                               "sysctl(7), paxctl(8)\n", piod.piod_offs,
+                               "sysctl(7), paxctl(8)\n", writebuf ? "write to" :
+                               "read from", piod.piod_offs,
                                strerror(errno));
            return TARGET_XFER_E_IO;    /* Some other error perhaps? */
          }



Home | Main Index | Thread Index | Old Index