This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Re: [rfa/amd64] Zero fill 32-bit registers


   Date: Sun, 29 Feb 2004 18:11:42 -0500
   From: Andrew Cagney <cagney@gnu.org>

   >    Date: Sat, 28 Feb 2004 15:39:47 -0500
   >    From: Andrew Cagney <cagney@gnu.org>
   > 
   >    > Could you live with just zero-extending the 16 general-purpose
   >    > registers and the instruction pointer?  I'll implement it for you.
   > 
   >    It is certainly an improvement!  Can you test it?
   > 
   > I've tested the attached on SuSE 8.2, with -m32.  No changes in the
   > testoutput for me, but the threaded stuff doesn't work very well on
   > the system (and probably no at all in on 32x64-bit).  I committed it
   > anyway, since I can't imagine this making things worse for the
   > threaded stuff if it works for the non-threaded stuff.  I'd appreciate
   > it if you could test whether this fixed the problems you were seeing.

   The segment registers have the same problem, is the attached ok? 6.1? 
   With it applied I get test results that approach i386.

   2004-02-29  Andrew Cagney  <cagney@redhat.com>

	   * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
	   32-bit segment registers.

OK.  Feel free to add the segment registers to enum i386_regnum and
use <= I386_GS_REGNUM instead of < I386_ST0_REGNUM though.

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]