diff options
author | Daniel Jacobowitz <drow@false.org> | 2005-05-04 19:10:32 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2005-05-04 19:10:32 +0000 |
commit | 8643e2ad0682b958759bbf1bc445496eb45fd1fd (patch) | |
tree | 20af2bc716b2738b25a69ceb35071ab2b3568a86 /gdb/gdbserver | |
parent | fc620387c9d058c45ef09630b887f51b912ee75f (diff) | |
download | gdb-8643e2ad0682b958759bbf1bc445496eb45fd1fd.zip gdb-8643e2ad0682b958759bbf1bc445496eb45fd1fd.tar.gz gdb-8643e2ad0682b958759bbf1bc445496eb45fd1fd.tar.bz2 |
* proc-service.c (ps_lgetregs): Search all_processes instead of
all_threads.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/proc-service.c | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index fba07c7..abb182a 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> + * proc-service.c (ps_lgetregs): Search all_processes instead of + all_threads. + +2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> + * server.c (start_inferior): Change return type to int. (attach_inferior): Change sigptr to int *. (handle_v_cont, handle_v_requests): Change signal to int *. diff --git a/gdb/gdbserver/proc-service.c b/gdb/gdbserver/proc-service.c index 5b83dec..a8c29ab 100644 --- a/gdb/gdbserver/proc-service.c +++ b/gdb/gdbserver/proc-service.c @@ -1,5 +1,5 @@ /* libthread_db helper functions for the remote server for GDB. - Copyright 2002, 2004 + Copyright 2002, 2004, 2005 Free Software Foundation, Inc. Contributed by MontaVista Software. @@ -113,13 +113,15 @@ ps_err_e ps_lgetregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, prgregset_t gregset) { #ifdef HAVE_REGSETS + struct process_info *process; struct thread_info *reg_inferior, *save_inferior; - reg_inferior = (struct thread_info *) find_inferior_id (&all_threads, - lwpid); - if (reg_inferior == NULL) + process = (struct process_info *) find_inferior_id (&all_processes, + lwpid); + if (process == NULL) return PS_ERR; + reg_inferior = get_process_thread (process); save_inferior = current_inferior; current_inferior = reg_inferior; |