Andrew Cagney wrote: > 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 > Here's an updated patch. The more I looked at the "struct type *type" argument, the less I understood about how it should be used. I assume it would only be used, so far, on i386, but I'm easily confused by stacks and registers (and how things are stored there), so any pointers would be appreciated.