2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
authorDaniel Jacobowitz <drow@false.org>
Wed, 24 Oct 2007 13:57:58 +0000 (13:57 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 24 Oct 2007 13:57:58 +0000 (13:57 +0000)
PR gdb/2341
* sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
alias warning bug.

gdb/ChangeLog
gdb/sol-thread.c

index abcc44e56a8ea788ab399867cc515dc055bcd006..f06e63242128a2eb0b8a1084961fd5a3c86ed5db 100644 (file)
@@ -1,3 +1,9 @@
+2007-10-24  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       PR gdb/2341
+       * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
+       alias warning bug.
+
 2007-10-24  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
 
        * symtab.c (find_line_symtab): scan through psymtabs
index bd4f1b2a068ec1982ce29b45afe5649c91103e56..bf406969ed8f37bbba3828e1edf9b1087e799e92 100644 (file)
@@ -484,6 +484,9 @@ sol_thread_fetch_registers (struct regcache *regcache, int regnum)
   td_err_e val;
   prgregset_t gregset;
   prfpregset_t fpregset;
+  gdb_gregset_t *gregset_p = &gregset;
+  gdb_fpregset_t *fpregset_p = &fpregset;
+
 #if 0
   int xregsize;
   caddr_t xregset;
@@ -530,8 +533,8 @@ sol_thread_fetch_registers (struct regcache *regcache, int regnum)
      calling the td routines because the td routines call ps_lget*
      which affect the values stored in the registers array.  */
 
-  supply_gregset (regcache, (const gdb_gregset_t *) &gregset);
-  supply_fpregset (regcache, (const gdb_fpregset_t *) &fpregset);
+  supply_gregset (regcache, (const gdb_gregset_t *) gregset_p);
+  supply_fpregset (regcache, (const gdb_fpregset_t *) fpregset_p);
 
 #if 0
   /* FIXME: libthread_db doesn't seem to handle this right.  */
This page took 0.03711 seconds and 4 git commands to generate.