summaryrefslogtreecommitdiff
path: root/gdb/i386-gnu-nat.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2016-11-25 11:01:39 +0100
committerThomas Schwinge <thomas@codesourcery.com>2016-12-08 08:23:41 +0100
commite9e431d19426a6dd6b8923850398b847af0a1532 (patch)
tree2c8e696310f6fb7b1f95b2a75235d803315d4f3a /gdb/i386-gnu-nat.c
parente2f9914792465953ca945333d0cbedf0b2d7b3d6 (diff)
downloadbinutils-gdb-e9e431d19426a6dd6b8923850398b847af0a1532.tar.gz
Hurd, C++: Explicitly cast "void *"
C++ doesn't do implicit type conversions from "void *", so we have to... gdb/ * i386-gnu-nat.c (i386_gnu_dr_set_control_one) (i386_gnu_dr_set_addr_one): Explicitly cast "void *".
Diffstat (limited to 'gdb/i386-gnu-nat.c')
-rw-r--r--gdb/i386-gnu-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386-gnu-nat.c b/gdb/i386-gnu-nat.c
index e14a181564f..c6c53ca508b 100644
--- a/gdb/i386-gnu-nat.c
+++ b/gdb/i386-gnu-nat.c
@@ -307,7 +307,7 @@ i386_gnu_dr_set (const struct i386_debug_state *regs, struct proc *thread)
static void
i386_gnu_dr_set_control_one (struct proc *thread, void *arg)
{
- unsigned long *control = arg;
+ unsigned long *control = (unsigned long *) arg;
struct i386_debug_state regs;
i386_gnu_dr_get (&regs, thread);
@@ -337,7 +337,7 @@ struct reg_addr
static void
i386_gnu_dr_set_addr_one (struct proc *thread, void *arg)
{
- struct reg_addr *reg_addr = arg;
+ struct reg_addr *reg_addr = (struct reg_addr *) arg;
struct i386_debug_state regs;
i386_gnu_dr_get (&regs, thread);