This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [rfc] Re: host_pointer_to_address() === (CORE_ADDR) (void*) (val)
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>, Jim Blandy <jimb at cygnus dot com>
- Subject: Re: [rfc] Re: host_pointer_to_address() === (CORE_ADDR) (void*) (val)
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sun, 04 Jun 2000 23:51:32 +1000
- Organization: Cygnus Solutions
- References: <392E59AE.9B0522FB@cygnus.com> <39364395.2B051D0A@cygnus.com>
Andrew Cagney wrote:
> Wed May 31 21:41:37 2000 Andrew Cagney <cagney@b1.cygnus.com>
>
> * gdbarch.sh (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Change buf
> to a void pointer. Update initial values.
> * gdbarch.h, gdbarch.c: Re-generate.
>
> * findvar.c (address_to_signed_pointer,
> signed_pointer_to_address): New functions.
> * inferior.h (signed_pointer_to_address,
> signed_address_to_pointer): Declare.
>
> * inferior.h, findvar.c (unsigned_pointer_to_address,
> address_to_unsigned_pointer): Rename generic_address_to_pointer
> and generic_pointer_to_address. Update signatures to match
> gdbarch changes.
>
> * config/mips/tm-mips.h (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER):
> Define. MIPS has signed pointers.
>
> * defs.h, utils.c (host_pointer_to_address,
> address_to_host_pointer): New functions.
> * irix5-nat.c (next_link_map_member, first_link_map_member),
> procfs.c (proc_set_watchpoint, proc_iterate_over_mappings): Use.
>
> * irix5-nat.c (solib_map_sections, symbol_add_stub): Change
> function signature to match catch_errors_ftype.
>
FYI,
I've committed this change. I've also updated the TODO file. GDB
builds on IRIX 6.3 using the native compilers ``cc -32'' and ``cc
-n32''.
There are still plenty of warnings but nothing stopping the build.
Andrew