Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Fix DJGPP register numbering with COFF and stabs debug info
@ 2009-05-23 11:26 Eli Zaretskii
  2009-05-25 13:16 ` Ulrich Weigand
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2009-05-23 11:26 UTC (permalink / raw)
  To: gdb-patches

The default register numbering for COFF and stabs is wrong for DJGPP
native debugging, since the native compiler is GCC.  This patch fixes
that.

OK to commit?

2009-05-23  Eli Zaretskii  <eliz@gnu.org>

	* i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering
	for stabs and COFF debug info.

--- i386-tdep.c~1	2009-04-29 13:40:00.314875000 +0300
+++ i386-tdep.c	2009-05-23 14:16:56.437500000 +0300
@@ -2598,6 +2598,13 @@ i386_go32_init_abi (struct gdbarch_info 
   /* DJGPP does not support the SSE registers.  */
   tdep->num_xmm_regs = 0;
   set_gdbarch_num_regs (gdbarch, I386_NUM_GREGS + I386_NUM_FREGS);
+
+  /* Native compiler is GCC, which uses the SVR4 register numbering
+     even in COFF and STABS.  See the comment in i386_gdbarch_init,
+     before the calls to set_gdbarch_stab_reg_to_regnum and
+     set_gdbarch_sdb_reg_to_regnum.  */
+  set_gdbarch_stab_reg_to_regnum (gdbarch, i386_svr4_reg_to_regnum);
+  set_gdbarch_sdb_reg_to_regnum (gdbarch, i386_svr4_reg_to_regnum);
 }
 \f
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA] Fix DJGPP register numbering with COFF and stabs debug info
  2009-05-23 11:26 [RFA] Fix DJGPP register numbering with COFF and stabs debug info Eli Zaretskii
@ 2009-05-25 13:16 ` Ulrich Weigand
  2009-05-29 11:39   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Weigand @ 2009-05-25 13:16 UTC (permalink / raw)
  To: eliz; +Cc: gdb-patches

Eli Zaretskii wrote:

> The default register numbering for COFF and stabs is wrong for DJGPP
> native debugging, since the native compiler is GCC.  This patch fixes
> that.
> 
> OK to commit?
> 
> 2009-05-23  Eli Zaretskii  <eliz@gnu.org>
> 
> 	* i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering
> 	for stabs and COFF debug info.

Looks OK to me.

Thanks,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA] Fix DJGPP register numbering with COFF and stabs debug info
  2009-05-25 13:16 ` Ulrich Weigand
@ 2009-05-29 11:39   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2009-05-29 11:39 UTC (permalink / raw)
  To: Ulrich Weigand; +Cc: gdb-patches

> Date: Mon, 25 May 2009 15:16:00 +0200 (CEST)
> From: "Ulrich Weigand" <uweigand@de.ibm.com>
> Cc: gdb-patches@sourceware.org
> 
> Eli Zaretskii wrote:
> 
> > The default register numbering for COFF and stabs is wrong for DJGPP
> > native debugging, since the native compiler is GCC.  This patch fixes
> > that.
> > 
> > OK to commit?
> > 
> > 2009-05-23  Eli Zaretskii  <eliz@gnu.org>
> > 
> > 	* i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering
> > 	for stabs and COFF debug info.
> 
> Looks OK to me.

Thanks, committed.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-29 11:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-23 11:26 [RFA] Fix DJGPP register numbering with COFF and stabs debug info Eli Zaretskii
2009-05-25 13:16 ` Ulrich Weigand
2009-05-29 11:39   ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox