From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21218 invoked by alias); 6 Jan 2009 15:14:25 -0000 Received: (qmail 21210 invoked by uid 22791); 6 Jan 2009 15:14:24 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Jan 2009 15:14:19 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id ED42810D5E; Tue, 6 Jan 2009 15:14:16 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id DE5E810D5C; Tue, 6 Jan 2009 15:14:16 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1LKDdH-0001m6-RX; Tue, 06 Jan 2009 10:14:15 -0500 Date: Tue, 06 Jan 2009 15:14:00 -0000 From: Daniel Jacobowitz To: Jan Kiszka Cc: gdb@sourceware.org Subject: Re: Towards better x86 system debugging support Message-ID: <20090106151415.GA6512@caradoc.them.org> Mail-Followup-To: Jan Kiszka , gdb@sourceware.org References: <4960BAC8.7020801@web.de> <20090105034419.GA20581@caradoc.them.org> <4961D487.1030707@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4961D487.1030707@web.de> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-01/txt/msg00019.txt.bz2 On Mon, Jan 05, 2009 at 10:36:07AM +0100, Jan Kiszka wrote: > o Roughly, what code changes are required to exchange some i386.xml or > x86-64.xml? - Verification of the supplied registers in gdbarch init. - Changes to hardcoded register numbers to always access pseudo registers relative to gdbarch_num_regs, which will no longer be constant. If you agree with Mark that we should add the MSRs as a separate address space rather than into the register cache it's a bit trickier. I have relevant patches somewhere... > o If gdb accepted such a static XML description from some x86 target, > would it already stick with the register layout even when setting the > arch manually (or later automatically)? I don't remember whether set arch overrides just the arch, or the entire target description. But probably the former. -- Daniel Jacobowitz CodeSourcery