From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19191 invoked by alias); 6 Jun 2008 06:20:26 -0000 Received: (qmail 19182 invoked by uid 22791); 6 Jun 2008 06:20:25 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0708.google.com (HELO rv-out-0708.google.com) (209.85.198.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 06 Jun 2008 06:20:06 +0000 Received: by rv-out-0708.google.com with SMTP id b17so965531rvf.48 for ; Thu, 05 Jun 2008 23:20:04 -0700 (PDT) Received: by 10.141.20.7 with SMTP id x7mr1453101rvi.255.1212733204499; Thu, 05 Jun 2008 23:20:04 -0700 (PDT) Received: from localhost ( [202.232.30.196]) by mx.google.com with ESMTPS id f42sm6128314rvb.5.2008.06.05.23.20.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 05 Jun 2008 23:20:03 -0700 (PDT) Date: Fri, 06 Jun 2008 06:20:00 -0000 Message-Id: <20080606.152013.212798583.uebayasi@gmail.com> To: gdb@sourceware.org Subject: mips sim syscall From: Masao Uebayashi X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00038.txt.bz2 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