aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/lynx-low.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2013-05-17 06:53:53 +0000
committerJoel Brobecker <brobecker@gnat.com>2013-05-17 06:53:53 +0000
commit58794e1a64f9bbef790a957791333b2a9d0e7d74 (patch)
tree792e5bee0701cca454d78674d4623eee41e8a0f1 /gdb/gdbserver/lynx-low.c
parentd631c5a779346edc7c826f4cf2d3cc40dd228d4e (diff)
downloadgdb-58794e1a64f9bbef790a957791333b2a9d0e7d74.zip
gdb-58794e1a64f9bbef790a957791333b2a9d0e7d74.tar.gz
gdb-58794e1a64f9bbef790a957791333b2a9d0e7d74.tar.bz2
[gdbserver/lynx178]: Fix null_ptid -vs- minus_one_ptid confusion in comment
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid confusion in comment.
Diffstat (limited to 'gdb/gdbserver/lynx-low.c')
-rw-r--r--gdb/gdbserver/lynx-low.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c
index b4cb5d2..3dbffa5 100644
--- a/gdb/gdbserver/lynx-low.c
+++ b/gdb/gdbserver/lynx-low.c
@@ -284,7 +284,7 @@ lynx_resume (struct thread_resume *resume_info, size_t n)
? PTRACE_SINGLESTEP : PTRACE_CONT);
const int signal = resume_info[0].sig;
- /* If given a null_ptid, then try using the current_process'
+ /* If given a minus_one_ptid, then try using the current_process'
private->last_wait_event_ptid. On most LynxOS versions,
using any of the process' thread works well enough, but
LynxOS 178 is a little more sensitive, and triggers some
@@ -293,10 +293,10 @@ lynx_resume (struct thread_resume *resume_info, size_t n)
if (ptid_equal (ptid, minus_one_ptid))
ptid = current_process()->private->last_wait_event_ptid;
- /* The ptid might still be NULL; this can happen between the moment
- we create the inferior or attach to a process, and the moment
- we resume its execution for the first time. It is fine to
- use the current_inferior's ptid in those cases. */
+ /* The ptid might still be minus_one_ptid; this can happen between
+ the moment we create the inferior or attach to a process, and
+ the moment we resume its execution for the first time. It is
+ fine to use the current_inferior's ptid in those cases. */
if (ptid_equal (ptid, minus_one_ptid))
ptid = thread_to_gdb_id (current_inferior);