This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [commit] localize address to/from host pointer


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]