delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/04/14/08:32:02

From: Andris Pavenis <pavenis AT latnet DOT lv>
To: djgpp AT delorie DOT com, Rob Kramer <robk AT starhub DOT net DOT sg>
Subject: Re: Building a gcc 3.2.2 cross compiler..
Date: Mon, 14 Apr 2003 15:31:38 +0300
User-Agent: KMail/1.5.1
References: <3e979062 AT news DOT starhub DOT net DOT sg> <200304140827 DOT 32028 DOT pavenis AT latnet DOT lv> <b7diul$m6v$1 AT mawar DOT singnet DOT com DOT sg>
In-Reply-To: <b7diul$m6v$1@mawar.singnet.com.sg>
MIME-Version: 1.0
Message-Id: <200304141531.38795.pavenis@latnet.lv>
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019