This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [cygwin/mingw32] DBX_REGISTER_NUMBER vs DWARF2_FRAME_REF_OUT
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: dannysmith at clear dot net dot nz
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 27 Jul 2006 00:33:02 +0200 (CEST)
- Subject: Re: [cygwin/mingw32] DBX_REGISTER_NUMBER vs DWARF2_FRAME_REF_OUT
- References: <000001c6b0fc$f911fa70$9f4861cb@anykey>
> 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