mips sim syscall

Masao Uebayashi uebayasi@gmail.com
Fri Jun 6 06:20:00 GMT 2008


Hi!

I'm new to this list.

Does GDB MIPS simulator support system call emulation?  If I read code
(sim/mips/interp.c) correctly, if SystemCall or Trap is triggered, it
just looks at the exception vector and execute (emulate) that code.
This won't work for *nix like environment, right?

And it'd be possible to emulate only simple system calls (e.g.,
read(2), write(2), ...) by executing native ones, right?  Is there any
specific reason why MIPS interp.c doesn't do this OTOH sim/sh/interp.c
does?  Am I missing anything?

Masao



More information about the Gdb mailing list