From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30745 invoked by alias); 24 Sep 2003 18:15:59 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 17370 invoked from network); 24 Sep 2003 18:09:26 -0000 Received: from unknown (HELO zenia.home) (12.223.225.216) by sources.redhat.com with SMTP; 24 Sep 2003 18:09:26 -0000 Received: by zenia.home (Postfix, from userid 5433) id 34CB020766; Wed, 24 Sep 2003 13:05:54 -0500 (EST) To: cgen@sources.redhat.com Subject: RFA: emit extern declaration for @arch@_cgen_hw_table From: Jim Blandy Date: Wed, 24 Sep 2003 19:16:00 -0000 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-q3/txt/msg00067.txt.bz2 This is the second part of the possible kludge. With these two changes, I can traverse the hardware table and find the register sets available to me. 2003-07-31 Jim Blandy * desc-cpu.scm (gen-hw-table-decls): Emit an 'extern' declaration for @arch@_cgen_hw_table. GDB needs to be able to find this. Index: cgen/desc-cpu.scm =================================================================== RCS file: /cvs/cvsfiles/devo/cgen/desc-cpu.scm,v retrieving revision 1.29.2.6 diff -c -r1.29.2.6 desc-cpu.scm *** cgen/desc-cpu.scm 14 Feb 2003 00:01:20 -0000 1.29.2.6 --- cgen/desc-cpu.scm 31 Jul 2003 09:42:05 -0000 *************** *** 223,228 **** --- 223,229 ---- "/* Hardware decls. */\n\n" (string-map -gen-hw-decl (current-hw-list)) "\n" + "extern const CGEN_HW_ENTRY @arch@_cgen_hw_table[];\n" ) )