From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4915 invoked by alias); 29 Apr 2002 17:58:01 -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 4908 invoked from network); 29 Apr 2002 17:58:01 -0000 Received: from unknown (HELO kerberos.suse.cz) (195.47.106.10) by sources.redhat.com with SMTP; 29 Apr 2002 17:58:01 -0000 Received: from chimera.suse.cz (chimera.suse.cz [10.20.0.2]) by kerberos.suse.cz (SuSE SMTP server) with ESMTP id 2AF9459D348 for ; Mon, 29 Apr 2002 19:58:00 +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 g3THw0f08334 for ; Mon, 29 Apr 2002 19:58:00 +0200 X-Authentication-Warning: chimera.suse.cz: Host leviathan.suse.cz [10.20.1.56] claimed to be suse.cz Message-ID: <3CCD899D.3020903@suse.cz> Date: Mon, 29 Apr 2002 10:58: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: gdb@sources.redhat.com Subject: Adding dwarf2 regnum mapping Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00487.txt.bz2 Hi, I'm adding x86_64_dwarf2_reg_to_regno() function but don't know how to let gdb know it's there. I got inspired by i386 and put #define DWARF2_REG_TO_REGNUM(reg) x86_64_dwarf2_reg_to_regnum ((reg)) into nm-x86-64.h. Unfortunately then the compilation fails with: gdbarch.h:664:2: #error "Non multi-arch definition of DWARF2_REG_TO_REGNUM" If I don't put this define into nm.h, the new function isn't used at all. Can someone please tell me how do I tell gdb about this function while retaining the target multiarch_pure? If I change the target to multiarch_partial, everything works just fine, but I don't think it's the right way to go. Thanks in advance. Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * +420 2 9654 5373 * http://www.suse.cz