* proc-service.c (ps_lgetregs): Search all_processes instead of
authorDaniel Jacobowitz <drow@false.org>
Wed, 4 May 2005 19:10:32 +0000 (19:10 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 4 May 2005 19:10:32 +0000 (19:10 +0000)
all_threads.

gdb/gdbserver/ChangeLog
gdb/gdbserver/proc-service.c

index fba07c706eef9e8ef55deeb20ead5f05fbda9a02..abb182adcfb8ebf075c6370a94a41c259b621a99 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 5b83dec7465bfc3a7bbc388b65b69054b70e6f30..a8c29ab6f1379965b2563218dfd550c88ee5e2cb 100644 (file)
@@ -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;
 
This page took 0.031101 seconds and 4 git commands to generate.