diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-07-02 00:03:29 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-07-02 00:03:29 +0000 |
commit | b48516f9cd83b31cf7c9a1cf72aae3f3ae986911 (patch) | |
tree | e581a68e40e6b4de665cfa71b89c16f6167600b9 /gdb | |
parent | 3adf154903ffac329c3ec83b06e34b0332d9e5cf (diff) | |
download | gdb-b48516f9cd83b31cf7c9a1cf72aae3f3ae986911.zip gdb-b48516f9cd83b31cf7c9a1cf72aae3f3ae986911.tar.gz gdb-b48516f9cd83b31cf7c9a1cf72aae3f3ae986911.tar.bz2 |
2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
* core-regset.c (fetch_core_registers): Work around gcc 3.4
alias warning bug.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/core-regset.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a8670d1..9e42a99 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-07-01 H.J. Lu <hongjiu.lu@intel.com> + + * core-regset.c (fetch_core_registers): Work around gcc 3.4 + alias warning bug. + 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com> * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer diff --git a/gdb/core-regset.c b/gdb/core-regset.c index bf5d026..7acd99f 100644 --- a/gdb/core-regset.c +++ b/gdb/core-regset.c @@ -66,6 +66,8 @@ fetch_core_registers (struct regcache *regcache, { gdb_gregset_t gregset; gdb_fpregset_t fpregset; + gdb_gregset_t *gregset_p = &gregset; + gdb_fpregset_t *fpregset_p = &fpregset; switch (which) { @@ -75,7 +77,7 @@ fetch_core_registers (struct regcache *regcache, else { memcpy (&gregset, core_reg_sect, sizeof (gregset)); - supply_gregset (regcache, (const gdb_gregset_t *) &gregset); + supply_gregset (regcache, (const gdb_gregset_t *) gregset_p); } break; @@ -86,7 +88,7 @@ fetch_core_registers (struct regcache *regcache, { memcpy (&fpregset, core_reg_sect, sizeof (fpregset)); if (gdbarch_fp0_regnum (current_gdbarch) >= 0) - supply_fpregset (regcache, (const gdb_fpregset_t *) &fpregset); + supply_fpregset (regcache, (const gdb_fpregset_t *) fpregset_p); } break; |