[RFA]: gdbarch FETCH_POINTER_ARGUMENT

Adam Fedor fedor@doc.com
Fri May 30 03:05:00 GMT 2003



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.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newgdbarch.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030530/3e458b6b/attachment.ksh>


More information about the Gdb-patches mailing list