This is the mail archive of the gdb-patches@sourceware.cygnus.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]

Re: RFA: patch to ignore C++ method conversion errors


>There is a file in gdb called wrapper.c which is supposed to be the
>home for longjmp free versions of standard gdb functions.

Has an interface like this already been considered?

    IGNORE_EXCEPTIONS (QUIET, RETURN_MASK_ERROR,
                       do stuff here);

IGNORE_EXCEPTIONS would be a macro that does the necessary setjmp magic,
with calls into top.c to reduce inline code size.

Advantages:
  - no need to implement and document wrapper functions
  - no need to check wrapper.h for longjmp-free versions
  - possibly smaller code size due to omission of wrapper functions,
    though the inline code could outweigh that effect

Anyway, I'll go ahead and change my patch to use wrapper.c; thanks for
pointing it out.

Nick

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