diff options
author | Doug Evans <dje@google.com> | 2014-02-19 16:22:51 -0800 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-02-19 16:22:51 -0800 |
commit | b3312d801920bf1705263f533cdf16330bddedbe (patch) | |
tree | ef8c5769f384ce80a5b0de21801fbd288897f80a | |
parent | ecc6f45c3bd5c1504dbbff1f833244b3932ea2ba (diff) | |
download | fsf-binutils-gdb-b3312d801920bf1705263f533cdf16330bddedbe.zip fsf-binutils-gdb-b3312d801920bf1705263f533cdf16330bddedbe.tar.gz fsf-binutils-gdb-b3312d801920bf1705263f533cdf16330bddedbe.tar.bz2 |
* linux-low.c (add_lwp): Change result to struct lwp_info *.
All callers updated.
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 4d16ed1..1671772 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 2014-02-19 Doug Evans <dje@google.com> + * linux-low.c (add_lwp): Change result to struct lwp_info *. + All callers updated. + +2014-02-19 Doug Evans <dje@google.com> + * inferiors.c (add_thread): Fix whitespace. 2014-02-19 Doug Evans <dje@google.com> diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 2a83022..910d96d 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -226,7 +226,7 @@ static void linux_resume (struct thread_resume *resume_info, size_t n); static void stop_all_lwps (int suspend, struct lwp_info *except); static void unstop_all_lwps (int unsuspend, struct lwp_info *except); static int linux_wait_for_event (ptid_t ptid, int *wstat, int options); -static void *add_lwp (ptid_t ptid); +static struct lwp_info *add_lwp (ptid_t ptid); static int linux_stopped_by_watchpoint (void); static void mark_lwp_dead (struct lwp_info *lwp, int wstat); static void proceed_all_lwps (void); @@ -408,7 +408,7 @@ handle_extended_wait (struct lwp_info *event_child, int wstat) } ptid = ptid_build (pid_of (event_child), new_pid, 0); - new_lwp = (struct lwp_info *) add_lwp (ptid); + new_lwp = add_lwp (ptid); add_thread (ptid, new_lwp); /* Either we're going to immediately resume the new thread @@ -525,7 +525,7 @@ get_stop_pc (struct lwp_info *lwp) return stop_pc; } -static void * +static struct lwp_info * add_lwp (ptid_t ptid) { struct lwp_info *lwp; @@ -682,7 +682,7 @@ linux_attach_lwp_1 (unsigned long lwpid, int initial) ptid = ptid_build (pid, lwpid, 0); } - new_lwp = (struct lwp_info *) add_lwp (ptid); + new_lwp = add_lwp (ptid); add_thread (ptid, new_lwp); /* We need to wait for SIGSTOP before being able to make the next |