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 remove stale comment and explain ...



details:   https://anonhg.NetBSD.org/src/rev/e705a808dc2c
branches:  trunk
changeset: 793302:e705a808dc2c
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 02 23:17:54 2014 +0000

description:
remove stale comment and explain what we are doing. thanks dsl

diffstat:

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

diffs (25 lines):

diff -r 4da0e2b8d5e2 -r e705a808dc2c external/gpl3/gdb/dist/gdb/inf-ptrace.c
--- a/external/gpl3/gdb/dist/gdb/inf-ptrace.c   Sun Feb 02 22:41:20 2014 +0000
+++ b/external/gpl3/gdb/dist/gdb/inf-ptrace.c   Sun Feb 02 23:17:54 2014 +0000
@@ -365,6 +365,10 @@
          worry about that here.  */
       request = PT_STEP;
 #ifdef __NetBSD__
+      /*
+       * On NetBSD the data field of PT_STEP contains the thread
+       * be stepped and all other threads are continued if > 0
+       */
       sig = ptid_get_lwp(ptid);
 #else
       sig = 0;
@@ -376,10 +380,6 @@
      where it was.  If GDB wanted it to start some other way, we have
      already written a new program counter value to the child.  */
   errno = 0;
-  /*
-    XXX __NetBSD__: We used to pass this as the signal
-    sig = ptid_get_lwp(ptid);
-   */
   ptrace (request, pid, (PTRACE_TYPE_ARG3)1, sig);
   if (errno != 0)
     perror_with_name (("ptrace"));



Home | Main Index | Thread Index | Old Index