This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA]: gdbarch FETCH_POINTER_ARGUMENT
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: Adam Fedor <fedor at doc dot com>,GDB Patches <gdb-patches at sources dot redhat dot com>,Daniel Jacobowitz <drow at mvista dot com>
- Date: Thu, 22 May 2003 15:16:17 -0400
- Subject: Re: [RFA]: gdbarch FETCH_POINTER_ARGUMENT
- References: <3EC84B9A.8030505@doc.com> <3ECA8AF1.10001@redhat.com>
Adam,
I think the FETCH_POINTER_ARGUMENT method should have the signature:
(CORE_ADDR) (struct frame_info *frame, int argi, struct type *type)
the call would then look like:
addr = gdbarch_fetch_pointer_argument (current_gdbarch,
get_current_frame (), argi, builtin_type_void_func_ptr);
See: cooked regcache -> frame
http://sources.redhat.com/ml/gdb/2003-05/msg00287.html
for the rationale,
Andrew