2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
* i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias warning bug.
This commit is contained in:
parent
7be360d1f5
commit
2e024c20eb
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
|
||||
warning bug.
|
||||
|
||||
2007-07-13 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* mep-tdep.c (mep_analyze_prologue): Update comment for BRA
|
||||
|
|
|
@ -246,6 +246,7 @@ static void
|
|||
fetch_regs (struct regcache *regcache, int tid)
|
||||
{
|
||||
elf_gregset_t regs;
|
||||
elf_gregset_t *regs_p = ®s;
|
||||
|
||||
if (ptrace (PTRACE_GETREGS, tid, 0, (int) ®s) < 0)
|
||||
{
|
||||
|
@ -260,7 +261,7 @@ fetch_regs (struct regcache *regcache, int tid)
|
|||
perror_with_name (_("Couldn't get registers"));
|
||||
}
|
||||
|
||||
supply_gregset (regcache, (const elf_gregset_t *) ®s);
|
||||
supply_gregset (regcache, (const elf_gregset_t *) regs_p);
|
||||
}
|
||||
|
||||
/* Store all valid general-purpose registers in GDB's register array
|
||||
|
|
Loading…
Add table
Reference in a new issue