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.
This commit is contained in:
Joel Brobecker 2013-10-04 08:52:24 +00:00
parent 5713b9b5c1
commit 26f0edc14e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -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