aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/amd64-tdep.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7a42846..40a8871 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
+
+ * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
+ tdep.
+ (amd64_collect_xstateregset): Likewise.
+
2010-04-09 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (trace_status_mi): Report frames created.
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);
}