From d592fa2f7f5a88b52b22c29bb5dd0ce9c49d998d Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 17 Jun 2005 04:01:05 +0000 Subject: * linux-low.c (linux_wait, linux_send_signal): Don't test an unsigned long variable for > 0 if it could be MAX_ULONG. * server.c (myresume): Likewise. * target.c (set_desired_inferior): Likewise. --- gdb/gdbserver/target.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/gdbserver/target.c') diff --git a/gdb/gdbserver/target.c b/gdb/gdbserver/target.c index 0de69e80249..b9222e2a3b5 100644 --- a/gdb/gdbserver/target.c +++ b/gdb/gdbserver/target.c @@ -42,7 +42,8 @@ set_desired_inferior (int use_general) /* If we are continuing any (all) thread(s), use step_thread to decide which thread to step and/or send the specified signal to. */ - if (step_thread > 0 && (cont_thread == 0 || cont_thread == -1)) + if ((step_thread != 0 && step_thread != -1) + && (cont_thread == 0 || cont_thread == -1)) found = (struct thread_info *) find_inferior_id (&all_threads, step_thread); -- cgit v1.2.1