This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [commit] localize address to/from host pointer
- From: Kevin Buettner <kevinb at redhat dot com>
- To: Andrew Cagney <ac131313 at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Wed, 5 Feb 2003 12:02:38 -0700
- Subject: Re: [commit] localize address to/from host pointer
- References: <3E3C59B6.3020708@redhat.com>
On Feb 1, 6:35pm, Andrew Cagney wrote:
> This patch makes the nasty address_to_host_pointer() and
> host_pointer_to_address() methods static. The HP/UX ones should be
> deleted. Not sure about the procfs ones.
Regarding procfs, when I studied it in the past, I concluded that
address_to_host_pointer() was needed. This is due to the fact that
the struct which serves as the watchpoint interface to procfs contains
a pointer. This is truly unfortunate though since, for platforms
which support more than one ABI (which differ in pointer sizes), the
correct ABI must be used to compile gdb. If the wrong ABI is chosen,
watchpoint support won't work.
Kevin