From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20654 invoked by alias); 7 Mar 2002 13:30:21 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 20604 invoked from network); 7 Mar 2002 13:30:17 -0000 Received: from unknown (HELO kerberos.suse.cz) (195.47.106.10) by sources.redhat.com with SMTP; 7 Mar 2002 13:30:17 -0000 Received: from chimera.suse.cz (chimera.suse.cz [10.20.0.2]) by kerberos.suse.cz (SuSE SMTP server) with ESMTP id AAF6F59D35E for ; Thu, 7 Mar 2002 14:30:16 +0100 (CET) Received: from suse.cz (leviathan.suse.cz [10.20.1.56]) by chimera.suse.cz (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g27DUGN25996 for ; Thu, 7 Mar 2002 14:30:16 +0100 X-Authentication-Warning: chimera.suse.cz: Host leviathan.suse.cz [10.20.1.56] claimed to be suse.cz Message-ID: <3C877978.2030903@suse.cz> Date: Thu, 07 Mar 2002 05:30:00 -0000 From: Michal Ludvig Organization: SuSE CR User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: cs, cz, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [patch] Re: x86-64-tdep.h cleanup References: <3C84EAA8.2000900@suse.cz> <1020305162947.ZM18587@localhost.localdomain> <3C85E8B8.5030102@suse.cz> <1020306173000.ZM23183@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-03/txt/msg00092.txt.bz2 Kevin Buettner wrote: > (Yes, approved.) Thanks, for now I commited this change since noone voted against it. I will try to solve the other cleanup later. Index: x86-64-tdep.h =================================================================== RCS file: /cvs/src/src/gdb/x86-64-tdep.h,v retrieving revision 1.1 diff -c -3 -p -r1.1 x86-64-tdep.h *** x86-64-tdep.h 2001/09/21 12:19:15 1.1 --- x86-64-tdep.h 2002/03/07 13:26:10 *************** *** 24,41 **** #define X86_64_TDEP_H #include "i386-tdep.h" - #include - - /* Mapping between the general-purpose registers in `struct user' - format and GDB's register array layout. */ - - static int x86_64_regmap[] = { - RAX, RDX, RCX, RBX, - RSI, RDI, RBP, RSP, - R8, R9, R10, R11, - R12, R13, R14, R15, - RIP, EFLAGS - }; /* Number of all registers */ #define X86_64_NUM_REGS (51) --- 24,29 ---- Index: x86-64-linux-nat.c =================================================================== RCS file: /cvs/src/src/gdb/x86-64-linux-nat.c,v retrieving revision 1.5 diff -c -3 -p -r1.5 x86-64-linux-nat.c *** x86-64-linux-nat.c 2002/02/24 22:14:33 1.5 --- x86-64-linux-nat.c 2002/03/07 13:26:10 *************** *** 33,39 **** --- 33,51 ---- #include #include #include + #include + /* Mapping between the general-purpose registers in `struct user' + format and GDB's register array layout. */ + + static int x86_64_regmap[] = { + RAX, RDX, RCX, RBX, + RSI, RDI, RBP, RSP, + R8, R9, R10, R11, + R12, R13, R14, R15, + RIP, EFLAGS + }; + static unsigned long x86_64_linux_dr_get (int regnum) { Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * +420 2 9654 5373 * http://www.suse.cz