This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
mips sim syscall
- From: Masao Uebayashi <uebayasi at gmail dot com>
- To: gdb at sourceware dot org
- Date: Fri, 06 Jun 2008 15:20:13 +0900 (JST)
- Subject: mips sim syscall
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