Heiko Panther wrote:


I need to modify the simulation target of gdb so I can get putchar/getchar (can't do much with the simulator without at least this !). The build procedures use gdb-5.1.1. These sources are old enough that they're not in the usual gnu places. Any idea where I can get them, or should I be using a more recent version. There seems to be some later
activity in the cvs directory, but it's not clear that's stable.


Are you looking for an older "official gnu" gdb? Look here:
ftp://sources.redhat.com/pub/gdb/old-releases/

Heiko

Thanks. I did eventually find those. It seems the latest builds use gdb-6.0 even though the web page says 5.1.1. It turns out 5.1.1 won't build on our version of Linux (enterprise 3.0)
or on OS X so I went ahead and built using 6.0.

It does appear that certain things are broken in the msp version of 6.0 --
backtrace doesn't correctly unwind the stack, breakpoints are handled incorrectly, and sometimes
gdb is confused about where to find variables.

BTW, my changes to the simulator work fine -- I changed the memory read and write functions so that
the following addresses are mapped to stdio

RXBUF0 (0x76)  stdin
TXBUF0 (0x77) stdout
TXBUF1 (0x7F) stderr

I haven't done anything about a timer yet because I don't need that at the moment.

Geoffrey

Reply via email to