aboutsummaryrefslogtreecommitdiff
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
commit26f0edc14e60747a8ca134178e90cb2b5559aaed (patch)
tree9ba5b6bf4c9581d110951eda4aa7177f1bc5a684 /gdb
parent5713b9b5c1cb873d65caba98616e3f9d92db11f6 (diff)
downloadgdb-26f0edc14e60747a8ca134178e90cb2b5559aaed.zip
gdb-26f0edc14e60747a8ca134178e90cb2b5559aaed.tar.gz
gdb-26f0edc14e60747a8ca134178e90cb2b5559aaed.tar.bz2
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 1f88eb6..52454ae 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 97a5ab3..31c14e0 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