This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Go32-v2 native woes
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 06 Apr 2010 20:47:47 +0300
- Subject: Re: Go32-v2 native woes
- References: <002a01cad517$d36eab90$7a4c02b0$%muller@ics-cnrs.unistra.fr>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
> Date: Tue, 6 Apr 2010 01:29:22 +0200
>
> top> p num_regs
> $1 = 32
> top> p *data.arch_regs
> $2 = {num = 33, alloc = 36, vec = {{reg = 0x3ed6d8, type = 0x0}}}
> top>
>
> The additional reg in arch_regs seems to come from
> i386_validate_tdesc_p function:
> /* Need to include %mxcsr, so add one. */
> num_regs += tdep->num_xmm_regs + 1;
>
> Adding this condition
> if (tdep->num_xmm_regs)
> removes the problem above,
Thanks. I'm okay with this change, but please wait for Mark to
comment on it.