aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-10-24 13:57:58 +0000
committerDaniel Jacobowitz <drow@false.org>2007-10-24 13:57:58 +0000
commite71c308dd3f25fef1c86b397bb330e6629098daf (patch)
treec466e7b3f07a81cc04962d2a307296e53b317140 /gdb
parentda5898cee8b3506b9a6ad31e111bd43b095946a8 (diff)
downloadgdb-e71c308dd3f25fef1c86b397bb330e6629098daf.zip
gdb-e71c308dd3f25fef1c86b397bb330e6629098daf.tar.gz
gdb-e71c308dd3f25fef1c86b397bb330e6629098daf.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/sol-thread.c7
2 files changed, 11 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index abcc44e..f06e632 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index bd4f1b2..bf40696 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -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. */