aboutsummaryrefslogtreecommitdiff
path: root/gdb/amd64-tdep.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-04-11 20:20:31 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-04-11 20:20:31 +0000
commit778c709509385810720a338fda836134f2ea824b (patch)
tree4ac67297f7ce3491fe1113daf51a71ee251b9a9d /gdb/amd64-tdep.c
parent8336d594d5107cb86bf1b569962bf1496e2c7c30 (diff)
downloadgdb-778c709509385810720a338fda836134f2ea824b.zip
gdb-778c709509385810720a338fda836134f2ea824b.tar.gz
gdb-778c709509385810720a338fda836134f2ea824b.tar.bz2
Remove the unused variable in amd64-tdep.c.
2010-04-11 H.J. Lu <hongjiu.lu@intel.com> * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused tdep. (amd64_collect_xstateregset): Likewise.
Diffstat (limited to 'gdb/amd64-tdep.c')
-rw-r--r--gdb/amd64-tdep.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 1aa49b9..b0926ad 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -2217,7 +2217,6 @@ amd64_supply_xstateregset (const struct regset *regset,
struct regcache *regcache, int regnum,
const void *xstateregs, size_t len)
{
- const struct gdbarch_tdep *tdep = gdbarch_tdep (regset->arch);
amd64_supply_xsave (regcache, regnum, xstateregs);
}
@@ -2228,7 +2227,6 @@ amd64_collect_xstateregset (const struct regset *regset,
const struct regcache *regcache,
int regnum, void *xstateregs, size_t len)
{
- const struct gdbarch_tdep *tdep = gdbarch_tdep (regset->arch);
amd64_collect_xsave (regcache, regnum, xstateregs, 1);
}