aboutsummaryrefslogtreecommitdiff
path: root/gdb/x86-64-linux-nat.c
diff options
context:
space:
mode:
authorMichal Ludvig <mludvig@suse.cz>2002-04-29 18:27:31 +0000
committerMichal Ludvig <mludvig@suse.cz>2002-04-29 18:27:31 +0000
commit91fd20f71fdcc50e2c3ef1d15d556e93b59881ff (patch)
tree9d3624211dbb7624abfaaaebe30784e9b680d5a6 /gdb/x86-64-linux-nat.c
parentd1b0a5b4a999c7142824e35606ce4a44adf0ccdc (diff)
downloadgdb-91fd20f71fdcc50e2c3ef1d15d556e93b59881ff.zip
gdb-91fd20f71fdcc50e2c3ef1d15d556e93b59881ff.tar.gz
gdb-91fd20f71fdcc50e2c3ef1d15d556e93b59881ff.tar.bz2
2002-04-29 Michal Ludvig <mludvig@suse.cz>
* x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning. * x86-64-tdep.c (i386_gdbarch_init): Ditto. (x86_64_register_info_table): Added comments with register numbers.
Diffstat (limited to 'gdb/x86-64-linux-nat.c')
-rw-r--r--gdb/x86-64-linux-nat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/x86-64-linux-nat.c b/gdb/x86-64-linux-nat.c
index fd70572..fd9246c 100644
--- a/gdb/x86-64-linux-nat.c
+++ b/gdb/x86-64-linux-nat.c
@@ -158,7 +158,7 @@ fill_gregset (elf_gregset_t * gregsetp, int regno)
for (i = 0; i < x86_64_num_gregs; i++)
if ((regno == -1 || regno == i))
- read_register_gen (i, regp + x86_64_regmap[i]);
+ read_register_gen (i, (char *) (regp + x86_64_regmap[i]));
}
/* Fetch all general-purpose registers from process/thread TID and
@@ -446,4 +446,3 @@ kernel_u_size (void)
{
return (sizeof (struct user));
}
-