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: [RFA]: gdbarch FETCH_POINTER_ARGUMENT


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


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