diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-01-13 21:47:35 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-01-13 21:47:35 +0000 |
commit | 9fc30b6b127f59de558a40c36f5dbc1b062c5887 (patch) | |
tree | 9272b3754f5b2b10f4d95d4853351c4a6a498137 /gdb | |
parent | 8f87102502242e23f901af040c8eb904de162f87 (diff) | |
download | gdb-9fc30b6b127f59de558a40c36f5dbc1b062c5887.zip gdb-9fc30b6b127f59de558a40c36f5dbc1b062c5887.tar.gz gdb-9fc30b6b127f59de558a40c36f5dbc1b062c5887.tar.bz2 |
* lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
(resume_callback): Remove dead code.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/lin-lwp.c | 40 |
2 files changed, 5 insertions, 40 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 21b2e86..590ed01 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-01-13 Daniel Jacobowitz <drow@mvista.com> + + * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove. + (resume_callback): Remove dead code. + 2003-01-13 Andrew Cagney <ac131313@redhat.com> * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with diff --git a/gdb/lin-lwp.c b/gdb/lin-lwp.c index aad8c19..9f9dd81 100644 --- a/gdb/lin-lwp.c +++ b/gdb/lin-lwp.c @@ -536,25 +536,6 @@ lin_lwp_detach (char *args, int from_tty) } -struct private_thread_info -{ - int lwpid; -}; - -/* Return non-zero if TP corresponds to the LWP specified by DATA - (which is assumed to be a pointer to a `struct lwp_info'. */ - -static int -find_lwp_callback (struct thread_info *tp, void *data) -{ - struct lwp_info *lp = data; - - if (tp->private->lwpid == GET_LWP (lp->ptid)) - return 1; - - return 0; -} - /* Resume LP. */ static int @@ -564,27 +545,6 @@ resume_callback (struct lwp_info *lp, void *data) { struct thread_info *tp; -#if 0 - /* FIXME: kettenis/2000-08-26: This should really be handled - properly by core GDB. */ - - tp = find_thread_pid (lp->ptid); - if (tp == NULL) - tp = iterate_over_threads (find_lwp_callback, lp); - gdb_assert (tp); - - /* If we were previously stepping the thread, and now continue - the thread we must invalidate the stepping range. However, - if there is a step_resume breakpoint for this thread, we must - preserve the stepping range to make it possible to continue - stepping once we hit it. */ - if (tp->step_range_end && tp->step_resume_breakpoint == NULL) - { - gdb_assert (lp->step); - tp->step_range_start = tp->step_range_end = 0; - } -#endif - child_resume (pid_to_ptid (GET_LWP (lp->ptid)), 0, TARGET_SIGNAL_0); if (debug_lin_lwp) fprintf_unfiltered (gdb_stdlog, |