summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2013-10-04 08:52:24 +0000
committerJoel Brobecker <brobecker@gnat.com>2013-10-04 08:52:24 +0000
commit5ffb28e53763e1950f0468eb6c477ca3e0cd2dc9 (patch)
treee430666916fcf4ffec86bc7aa41849427af320d5 /gdb
parent6957386a80c6432cf6fd3dec2b394a0dd836bac2 (diff)
downloadgdb-5ffb28e53763e1950f0468eb6c477ca3e0cd2dc9.tar.gz
Remove unnecessary cast in aix-thread.c:ptrace32.
We're casting "addr" into "addr_ptr", but this variable is actually a parameter with that very same type... gdb/ChangeLog: * aix-thread.c (ptrace32): Remove cast to addr_ptr.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/aix-thread.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1f88eb62aab..52454aeb677 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2013-10-04 Joel Brobecker <brobecker@adacore.com>
+ * aix-thread.c (ptrace32): Remove cast to addr_ptr.
+
+2013-10-04 Joel Brobecker <brobecker@adacore.com>
+
* mi/mi-main.c (run_one_inferior): Add function description.
Make ARG a pointer to an integer whose value determines whether
we should "run" or "start" the program.
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index 97a5ab382a5..31c14e009cc 100644
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -264,7 +264,7 @@ ptrace32 (int req, int id, addr_ptr addr, int data, int *buf)
{
errno = 0;
return ptrace_check (req, id,
- ptrace (req, id, (addr_ptr) addr, data, buf));
+ ptrace (req, id, addr, data, buf));
}
/* If *PIDP is a composite process/thread id, convert it to a