[cygwin/mingw32] DBX_REGISTER_NUMBER vs DWARF2_FRAME_REF_OUT

Mark Kettenis mark.kettenis@xs4all.nl
Wed Jul 26 22:36:00 GMT 2006


> Date: Thu, 27 Jul 2006 09:46:36 +1200
> From: Danny Smith <dannysmith@clear.net.nz>
> 
> From: Mark Kettenis [mailto:mark.kettenis@xs4all.nl] 
> Sent: Thursday, July 27, 2006 9:34 AM
> 
> > The best thing to do is probably to define 
> > DWARF2_FRAME_REG_OUT to always use the SVR4 register map.
> 
> Thanks for that advice.  I'm in process of testing with 
> the simple one-line change:
> 
> #define DBX_REGISTER_NUMBER(n) svr4_dbx_register_map[n] 

That'd be bad, since it will break debugging code compiled with
-gstabs in a very confusing way.  And it would be impossible to fix in
GDB without screwing over people that are still using older versions
of GCC.

Mark



More information about the Gcc mailing list