This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Cast to uintptr_t when calling ptrace32 on aix
- From: Yao Qi <yao at codesourcery dot com>
- To: David Edelsohn <dje dot gcc at gmail dot com>
- Cc: GDB Patches <gdb-patches at sourceware dot org>, Joel Brobecker <brobecker at adacore dot com>, Ulrich Weigand <uweigand at de dot ibm dot com>
- Date: Mon, 6 Jan 2014 09:12:30 +0800
- Subject: Re: [PATCH] Cast to uintptr_t when calling ptrace32 on aix
- Authentication-results: sourceware.org; auth=none
- References: <CAGWvnykbAX1aY+qeXT0GR6rBevK6ao2Us9nt4UmwUvtdzkbK1A at mail dot gmail dot com>
On 01/06/2014 12:22 AM, David Edelsohn wrote:
> Thanks for uncovering this and creating a patch. Any patch like this
> should be regression tested.
>
OK, I'll test it on gcc111.
> I thought that these issues had been addressed in Joel's patches from
> last August.
>
> https://sourceware.org/ml/gdb-patches/2013-08/msg00657.html
>
> Why do we need to go through this delicate dance in slightly different
> ways in multiple files?
IMO, we do it in the same way, convert address to uintptr_t first and
then to "addr_ptr" (long long). Joel's is the implicit conversion and
mine is an explicit one.
--
Yao (éå)