Mail Archives: djgpp/2003/04/14/08:32:02
On Monday 14 April 2003 09:14, Rob Kramer wrote:
> Hi Andris,
>
> Thanks for your help. I'm now using the gcc322s.zip package, so I don't
> have to use the unpack scripts. It seems to compile just fine now..
>
> I noticed the following bit in gcc/config/i386/djgpp.h.diff:
>
> +/* I'm not sure whether the follwing is correct.
> + Setting DBX_REGISTER_NUMBER only as below breaks C++ exceptions
> + when -gdwarf-2 is being used. Maybe setting DWARF_FRAME_REGNUM
> + could help. I don't know (AP, 2002/02/01) */
> +#undef DBX_REGISTER_NUMBER
> +#define DBX_REGISTER_NUMBER(n) \
> + ((write_symbols == DWARF2_DEBUG) ? svr4_dbx_register_map[n] :
> dbx_register_ma
> p[n])
> +
> +#undef DWARF_FRAME_REGNUM
> +#define DWARF_FRAME_REGNUM(n) dbx_register_map[n]
>
> Is there still some issue with exceptions? Couldn't find anything on this
> in the mail archives..
It was due to problems with C++ exceptions when DWARF2 debugging info is being
used. Perhaps it would be better to find a better solution, but currently I'm
not sure when (or whether at all) I'll do that. It's possibly that not ...
Andris
- Raw text -