From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12318 invoked by alias); 30 Apr 2002 10:01:05 -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 12309 invoked from network); 30 Apr 2002 10:01:02 -0000 Received: from unknown (HELO kerberos.suse.cz) (195.47.106.10) by sources.redhat.com with SMTP; 30 Apr 2002 10:01:02 -0000 Received: from chimera.suse.cz (chimera.suse.cz [10.20.0.2]) by kerberos.suse.cz (SuSE SMTP server) with ESMTP id D34C759D349; Tue, 30 Apr 2002 12:01:01 +0200 (CEST) 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 g3UA11f23048; Tue, 30 Apr 2002 12:01:01 +0200 X-Authentication-Warning: chimera.suse.cz: Host leviathan.suse.cz [10.20.1.56] claimed to be suse.cz Message-ID: <3CCE6B52.2060903@suse.cz> Date: Tue, 30 Apr 2002 03:01:00 -0000 From: Michal Ludvig Organization: SuSE CR User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc1) Gecko/20020417 X-Accept-Language: cs, cz, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb@sources.redhat.com Subject: Re: Adding dwarf2 regnum mapping References: <3CCD899D.3020903@suse.cz> <20020429144310.A3651@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00504.txt.bz2 Daniel Jacobowitz wrote: > mn10300-tdep.c: set_gdbarch_dwarf2_reg_to_regnum (gdbarch, mn10300_dwarf2_reg_to_regnum); > s390-tdep.c: set_gdbarch_dwarf2_reg_to_regnum (gdbarch, s390_stab_reg_to_regnum); > > Do it just like either of those; set it in i386_gdbarch_init. My fault, of course. I tried this, but by mistake I used gdbarch_dwarf_reg... instead of gdbarch_dwarf2_reg... and was wondering why it doesn't work. So I finally asked here for the trick. Of course if I use the _right_ set function it works :-) Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * +420 2 9654 5373 * http://www.suse.cz