This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Use read_memory_unsigned_integer when reading to CORE_ADDR
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Klee Dienes <klee at apple dot com>
- Cc: Daniel Jacobowitz <drow at mvista dot com>,gdb-patches at sources dot redhat dot com
- Date: Wed, 06 Nov 2002 17:37:01 -0500
- Subject: Re: [PATCH] Use read_memory_unsigned_integer when reading to CORE_ADDR
- References: <038EC655-F071-11D6-8361-00039396EEB8@apple.com>
I used extract_type_address to honor the comment about not causing a memory_error.
I'll check in the change from builtin_type_void_data_ptr to builtin_type_void_code_ptr.
Thanks!
Unless someone objects, I'll also change
int ptrbytes = TARGET_PTR_BIT / TARGET_CHAR_BIT;
to
int ptrbytes = TYPE_LENGTH (builtin_type_void_code_ptr);
Now this I like so much, I'm going to add it to the ARI as a recommendation.
Andrew