This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
PATCH: Remove the unused variable in amd64-tdep.c
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GDB <gdb-patches at sourceware dot org>
- Date: Sun, 11 Apr 2010 13:20:01 -0700
- Subject: PATCH: Remove the unused variable in amd64-tdep.c
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
I checked in this patch to remove the unused variable in amd64-tdep.c.
H.J.
---
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);
}