This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix for gdb.server/non-existing-program.exp test case


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1d8cb77dff14d44b1e3b670442438da496f99c6e

commit 1d8cb77dff14d44b1e3b670442438da496f99c6e
Author: Carl E. Love <carll@oc4738070240.ibm.com>
Date:   Tue Sep 13 09:58:18 2016 -0700

    Fix for gdb.server/non-existing-program.exp test case
    
    The last commit was supposed to have the reference to ptrace () removed.
    The patch didn't get updated correctly before the commit.  This commit
    fixes the comment as requested
    
    gdbserver/ChangeLog
    
    	2016-09-06  Carl Love  <cel@us.ibm.com>
    
    	* server.c (start_inferior):  Fixed comment, requested comment change
    	didn't get updated correctly.  Removed reference to ptrace () call as
     	it is only true on Linux systems.

Diff:
---
 gdb/gdbserver/ChangeLog | 6 ++++++
 gdb/gdbserver/server.c  | 3 +--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 4b9bc7e..af8420f 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,11 @@
 2016-09-06  Carl Love  <cel@us.ibm.com>
 
+	* server.c (start_inferior):  Fixed comment, requested comment change
+	didn't get updated correctly.  Removed reference to ptrace () call as
+	it is only true on Linux systems.
+
+2016-09-06  Carl Love  <cel@us.ibm.com>
+
 	* server.c (start_inferior):  Do not call
 	function target_post_create_inferior () if the
 	inferior process has already exited.
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 96e3a18..3ec585c 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -285,8 +285,7 @@ start_inferior (char **argv)
      (assuming success).  */
   last_ptid = mywait (pid_to_ptid (signal_pid), &last_status, 0, 0);
 
-  /* The last_status.kind was set by the call to ptrace(PTRACE_TRACEME, ...).
-     At this point, the target process, if it exits, is stopped.  Do not call
+  /* At this point, the target process, if it exits, is stopped.  Do not call
      the function target_post_create_inferior if the process has already
      exited, as the target implementation of the routine may rely on the
      process being live. */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]