This is the mail archive of the gdb-patches@sourceware.org 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: Borland fastcall support (i386)


On Sun, Apr 05, 2009 at 11:28:57PM +0200, Jonas Maebe wrote:
> I've continued working on gdb to also support calling Pascal methods, and 
> I've run a bit into a hitch: the calling_convention field is part of a 
> union that also contains cplus_stuff (inside main_type in gdbtypes.h), and 
> I need both for methods using a non-standard calling convention. Is there 
> a problem with moving the calling_convention field out of the 
> type_specific union, and if not, is there anything I should pay particular 
> attention to? (other than adjusting a couple of macros)

Why is cplus_stuff used in this case?

    /* CPLUS_STUFF is for TYPE_CODE_STRUCT.  It is initialized to point to
       cplus_struct_default, a default static instance of a struct
       cplus_struct_type. */

    struct cplus_struct_type *cplus_stuff;

Methods don't have base classes, methods of their own, or so forth.

-- 
Daniel Jacobowitz
CodeSourcery


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