From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15972 invoked by alias); 20 Feb 2003 16:18:09 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 15964 invoked from network); 20 Feb 2003 16:18:08 -0000 Received: from unknown (HELO titan.zcu.cz) (147.228.57.10) by 172.16.49.205 with SMTP; 20 Feb 2003 16:18:08 -0000 Received: from eryx1.zcu.cz (eryx1.zcu.cz [147.228.52.12]) by titan.zcu.cz (8.11.6/8.11.6/Wim) with ESMTP id h1KGI6G06970; Thu, 20 Feb 2003 17:18:06 +0100 Received: from localhost (ledvinap@localhost) by eryx1.zcu.cz (8.8.8/8.8.8) with ESMTP id RAA26085; Thu, 20 Feb 2003 17:18:00 +0100 (MET) X-Authentication-Warning: eryx1.zcu.cz: ledvinap owned process doing -bs Date: Thu, 20 Feb 2003 16:18:00 -0000 From: Petr Ledvina X-X-Sender: To: "D.Venkatasubramanian, Noida" cc: , Subject: Re: Adding MAC registers on H8300 Simulator [H8S/2600] In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-02/txt/msg00414.txt.bz2 > As the H8S/2600 CPU has MAC registers, specifically > MACH and MACL, I added them to the H8300 Simulator. How > do I make GDB recognize these registers, more > specifically, what are the files that need to be > modified? in target definition, NUM_REGS specifies how many registers gdb uses. REGISTER_NAME return name of given register. This vector already contains special registers (cycles, inst, .. ), so it should be possible to add new registers. gdbstub needs to only know register index mapping, so adding new registers to end of this list should be compatible. Also check cvs log, someone (Andrew Volkov?) added exr register recently to simulator, so he could know better. > Also, how do I make these registers conditionally > displayed on GDB when the CPU is H8S/2600. IIRC gdb knows only h8s target, so this could be quite difficult. > Any pointers will be highly appreciated. ;-) Expanding register vector should work fine, but gdb maintainers opinion may be different ... Petr Ledvina ledvinap@n.cz