diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2014-05-05 12:58:11 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2014-05-21 17:49:16 +0200 |
commit | ecc37a5acc8ff504d62487149f61955343d35fcf (patch) | |
tree | 49b786b54bd3862532051e8b77f581d34e4a5809 /gdb/i386-nto-tdep.c | |
parent | b7611c43bf5dcdc84b4432fccef22247af11449e (diff) | |
download | gdb-ecc37a5acc8ff504d62487149f61955343d35fcf.zip gdb-ecc37a5acc8ff504d62487149f61955343d35fcf.tar.gz gdb-ecc37a5acc8ff504d62487149f61955343d35fcf.tar.bz2 |
X86: Replace regset_alloc() invocations by static regset structures.
After removal of the regset_alloc invocations, the appropriate tdep
fields become obsolete and are thus removed.
Diffstat (limited to 'gdb/i386-nto-tdep.c')
-rw-r--r-- | gdb/i386-nto-tdep.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/i386-nto-tdep.c b/gdb/i386-nto-tdep.c index 8d8ba10..d005914 100644 --- a/gdb/i386-nto-tdep.c +++ b/gdb/i386-nto-tdep.c @@ -82,13 +82,9 @@ i386nto_supply_gregset (struct regcache *regcache, char *gpregs) struct gdbarch *gdbarch = get_regcache_arch (regcache); struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - if(tdep->gregset == NULL) - tdep->gregset = regset_alloc (gdbarch, i386_supply_gregset, - i386_collect_gregset); - gdb_assert (tdep->gregset_reg_offset == i386nto_gregset_reg_offset); - tdep->gregset->supply_regset (tdep->gregset, regcache, -1, - gpregs, NUM_GPREGS * 4); + i386_gregset.supply_regset (&i386_gregset, regcache, -1, + gpregs, NUM_GPREGS * 4); } static void |