From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30845 invoked by alias); 20 Apr 2010 21:45:27 -0000 Received: (qmail 30835 invoked by uid 22791); 20 Apr 2010 21:45:26 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45 X-Spam-Check-By: sourceware.org Received: from mail-vw0-f41.google.com (HELO mail-vw0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Apr 2010 21:45:21 +0000 Received: by vws4 with SMTP id 4so385540vws.0 for ; Tue, 20 Apr 2010 14:45:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.44.198 with HTTP; Tue, 20 Apr 2010 14:45:19 -0700 (PDT) In-Reply-To: <201004201942.o3KJgtMB025587@glazunov.sibelius.xs4all.nl> References: <201004201942.o3KJgtMB025587@glazunov.sibelius.xs4all.nl> Date: Tue, 20 Apr 2010 21:45:00 -0000 Received: by 10.220.62.199 with SMTP id y7mr5076628vch.80.1271799919402; Tue, 20 Apr 2010 14:45:19 -0700 (PDT) Message-ID: Subject: Re: [PATCH] Fix Linux/i386 register set size From: "H.J. Lu" To: Mark Kettenis Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00649.txt.bz2 On Tue, Apr 20, 2010 at 12:42 PM, Mark Kettenis w= rote: > Should be 68. =A0Confusion is probably caused by the fact that the note > size is 144, and that the amd64 register set is also 144. =A0The fact > that the GDB gcore produces wrong core files in the 32x64 case doesn't > help either. > > Committed. > > > 2010-04-20 =A0Mark Kettenis =A0 > > =A0 =A0 =A0 =A0* i386-linux-tdep.c (i386_linux_regset_sections): Size of = the > =A0 =A0 =A0 =A0general-purpose register set should be 68 instead of 144. > =A0 =A0 =A0 =A0(i386_linux_sse_regset_sections): Likewise. > =A0 =A0 =A0 =A0(i386_linux_avx_regset_sections): Likewise. > > On Linux, ".reg" section is a special case. Its size is ignored. See linux_nat_do_thread_registers for details. You can set it to anything and it doesn't make a difference. --=20 H.J.