delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/05/04/18:17:52

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Rugxulo <rugxulo AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Please help resurrecting GDB for version 7.0 release
Date: Mon, 4 May 2009 15:07:21 -0700 (PDT)
Organization: http://groups.google.com
Lines: 53
Message-ID: <58b10f6a-eba5-4cc2-bef8-cc5fc4251e06@q2g2000vbr.googlegroups.com>
References: <83zldveryw DOT fsf AT gnu DOT org> <684bdd55-b464-4e61-b28e-28774dc6ced8 AT o27g2000vbd DOT googlegroups DOT com>
<83y6tfem02 DOT fsf AT gnu DOT org> <_ZKdnV74euw2-2HUnZ2dnUVZ_uednZ2d AT earthlink DOT com>
<83ws8zeb05 DOT fsf AT gnu DOT org> <Z4adna6AJcyQeWDUnZ2dnUVZ_t-dnZ2d AT earthlink DOT com>
<d5126d62-422a-4cdd-989e-96fa0f99359a AT h23g2000vbc DOT googlegroups DOT com>
<83skjldt35 DOT fsf AT gnu DOT org>
NNTP-Posting-Host: 65.13.115.246
Mime-Version: 1.0
X-Trace: posting.google.com 1241474841 9642 127.0.0.1 (4 May 2009 22:07:21 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Mon, 4 May 2009 22:07:21 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: q2g2000vbr.googlegroups.com; posting-host=65.13.115.246;
posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10)
Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On May 4, 6:07=A0am, Eli Zaretskii <e DOT  DOT  DOT  AT gnu DOT org> wrote:
> > From: Rugxulo <rugx DOT  DOT  DOT  AT gmail DOT com>
> > Date: Sun, 3 May 2009 17:23:31 -0700 (PDT)
>
> > Lots of inline AT&T in that file. Very confusing although I
> > (unsurprisingly) admit to knowing nothing about the FPU and DPMI
> > exceptions.
>
> This is unrelated to DPMI exceptions. =A0It is simply a matter with what
> instructions to use to save and restore the FPU state when jumping
> between the debugger and the debuggee (since they both run in the same
> process on DOS).
>
> I really don't see any sense in modifying the library unless there's
> going to be a release of v2.04 soon. =A0

Not going to happen. While CWS showed some interest, and obviously
there are people interested in it (me), there's just not enough
manpower for it at the moment. Maybe next year, who knows. DJ must be
really really busy at the moment.

> As Charles points out, adding
> SSE support will need code added to determine whether FXSAVE/FXRSTOR
> are supported before we use them, and a lot of testing to make sure we
> don't break old machines.

1). See if CPUID supported (bit 21 of eflags)
2). See if FXSAVE / FXRSTOR supported (bit 24 of edx result from cpuid
eax=3D1)
3). See if SSE supported (SSE1 is bit 25 of edx result from cpuid
eax=3D1, SSE2 is bit 26, SSE3 is bit 0 of ecx)
4). If not already using CWSDPMI r5 2008, set bit 9 (OSFXSR) of CR4
and turn off bit 2 of CR0 (EM - emulation) -- typically done in ring
0, but some ring 3 environments emulate it for you (JEMM386)

Technically, FXSAVE / FXRSTOR is also supported on late model PIIs
also, which don't have SSE.

> OTOH, if someone needs it badly on a machine that is known to support
> these instructions, they can simply replace FNSAVE/FRSTOR with the
> extended instructions, modify the definition of the NPX object in
> debug/dbgcom.h to accommodate for the extra registers, and be done.

You make it sound trivial, not sure it is.

> > Maybe somebody can find Pierre Muller and bug him to work
> > on it (doubtful).
>
> Pierre is very active on the GDB forum, so he is easy to find. =A0But I
> don't think he wrote the code in question.

No idea, but it mentioned his name, so I figured he at least
understood the file.    :-)

- Raw text -


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