List Info

Thread: Console I/O when running the MIPS simulator




Console I/O when running the MIPS simulator
user name
2007-01-31 14:35:16
Hello -

I've been successful in building and running applications
using the MIPS
simulator that's built-in to GDB.  Recently, I've been
trying to do
console I/O (i.e., printf and friends) while running the
simulator, and
this doesn't work (leads to exceptions or early exit from
the
application).  I'm building my applications against an
LSI-PMON-like
libgloss (in newlib).  mips-elf-run --help shows a
"--firmware lsipmon"
command-line option, which led me to believe that this might
work... but
it doesn't.  Am I taking the right approach?  Should I be
expecting this
to work?

I'm working with gdb 6.4.0, gcc 2.95.3, and newlib 1.9.0. 
I've also
tried gcc 3.1 with newlib 1.10.0, same result.  The target
is mips-elf
(the MIPS I architecture).

Any guidance would be greatly appreciated!  Thanks!

Barry Wealand

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )