summaryrefslogtreecommitdiff
path: root/gdb/i386-linux-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-05-04 10:18:10 +0000
committerMark Kettenis <kettenis@gnu.org>2003-05-04 10:18:10 +0000
commit6669f2b19833ce236ef135445845378753ebdad5 (patch)
treef4b875280366342fff2d7240f08d686d108b7c28 /gdb/i386-linux-nat.c
parentba0414cd9ee91583310753dc80132ce98f13a96d (diff)
downloadgdb-6669f2b19833ce236ef135445845378753ebdad5.tar.gz
* i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
Diffstat (limited to 'gdb/i386-linux-nat.c')
-rw-r--r--gdb/i386-linux-nat.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index 3744124ebc5..cf769d87edc 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -72,7 +72,6 @@
/* Prototypes for local functions. */
static void dummy_sse_values (void);
-
/* The register sets used in GNU/Linux ELF core-dumps are identical to
@@ -233,10 +232,10 @@ supply_gregset (elf_gregset_t *gregsetp)
int i;
for (i = 0; i < I386_NUM_GREGS; i++)
- supply_register (i, (char *) (regp + regmap[i]));
+ supply_register (i, regp + regmap[i]);
if (I386_LINUX_ORIG_EAX_REGNUM < NUM_REGS)
- supply_register (I386_LINUX_ORIG_EAX_REGNUM, (char *) (regp + ORIG_EAX));
+ supply_register (I386_LINUX_ORIG_EAX_REGNUM, regp + ORIG_EAX);
}
/* Fill register REGNO (if it is a general-purpose register) in