This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: sim/frv not regeneratable with cgen and guile-1.8.5
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: brolley at redhat dot com, gdb-patches at sourceware dot org, cgen at sourceware dot org
- Date: Tue, 23 Dec 2008 12:31:48 -0500
- Subject: Re: sim/frv not regeneratable with cgen and guile-1.8.5
- References: <200812230143.mBN1hm8O020799@ignucius.se.axis.com>
Hi -
On Tue, Dec 23, 2008 at 02:43:48AM +0100, Hans-Peter Nilsson wrote:
> I had to find an installation with guile-1.3.4 in order to
> regenerate the frv sim. Maybe a guile/scheme-savvy
> person/maintainer can look into it? I had to give up myself,
> sorry. CGEN and guile..lacks in the debuggability department.
It's clumsy. Changing the sim/.../Makefile thusly activated
backtracing:
CGEN = "`if [ -f ../../guile/libguile/guile ]; then echo ../../guile/libguile/guile; else echo guile ; fi` -l $(CGENDIR)/guile.scm --debug -s"
CGENFLAGS = -v -b
The operative flags being "--debug" for guile *and* "-b" for cgen.
Perhaps we should simply activate these all the time, machines being
fast enough.
The following patch, committed, fixes cgen for frv; tested also on m32r.
2008-12-23 Frank Ch. Eigler <fche@redhat.com>
* sim.scm (-op-gen-queued-write): Add needed symbol->string.
Index: sim.scm
===================================================================
RCS file: /cvs/src/src/cgen/sim.scm,v
retrieving revision 1.14
diff -r1.14 sim.scm
1147c1147
< (string-downcase (if sem-mode
---
> (string-downcase (symbol->string (if sem-mode
1149c1149
< (mode-real-name mode))))))
---
- FChE