This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
RFA: emit extern declaration for @arch@_cgen_hw_table
- From: Jim Blandy <jimb at redhat dot com>
- To: cgen at sources dot redhat dot com
- Date: 24 Sep 2003 13:05:54 -0500
- Subject: RFA: emit extern declaration for @arch@_cgen_hw_table
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 <jimb@redhat.com>
* 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"
)
)