From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30033 invoked by alias); 5 Nov 2008 04:10:31 -0000 Received: (qmail 29922 invoked by uid 22791); 5 Nov 2008 04:10:30 -0000 X-Spam-Check-By: sourceware.org Received: from mtaout2.012.net.il (HELO mtaout2.012.net.il) (84.95.2.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 05 Nov 2008 04:09:33 +0000 Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0K9U00300E8VKZ00@i_mtaout2.012.net.il> for gdb-patches@sourceware.org; Wed, 05 Nov 2008 06:11:14 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.241.172]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K9U001JFEAHMIN1@i_mtaout2.012.net.il>; Wed, 05 Nov 2008 06:11:14 +0200 (IST) Date: Wed, 05 Nov 2008 04:10:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 1/4] 'catch syscall' feature -- =?utf-8?q?=09Architecture-independent=09part?= In-reply-to: <200811042230.27666.pedro@codesourcery.com> X-012-Sender: halo1@inter.net.il To: Pedro Alves Cc: gdb-patches@sourceware.org, bauerman@br.ibm.com, sergiodj@linux.vnet.ibm.com Reply-to: Eli Zaretskii Message-id: MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8BIT References: <1225773079.24532.52.camel@miki> <1225836687.20764.21.camel@localhost.localdomain> <200811042230.27666.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-11/txt/msg00070.txt.bz2 > From: Pedro Alves > Date: Tue, 4 Nov 2008 22:30:27 +0000 > Cc: Thiago Jung Bauermann , > Eli Zaretskii , > =?utf-8?q?S=C3=A9rgio_Durigan_J=C3=BAnior?= > > On Tuesday 04 November 2008 22:11:27, Thiago Jung Bauermann wrote: > > El mar, 04-11-2008 a las 23:12 +0200, Eli Zaretskii escribió: > > > Who said that a syscall is necessarily defined by some number? > > > > I assumed every OS used numbers to define syscalls ... > > > > > More generally, let's say I'd like to implement support for this on > > > Windows -- how would I need to go about it? > > > > ... but from what you are saying it seems that in Windows it's > > different. What's the proper datatype to represent a syscall there? > > Depends on what you're calling a syscall on Windows. > > If talking about userland->kernel calls, similarly to this > new feature, an integer. > > http://www.metasploit.com/users/opcode/syscalls.html > http://www.codeguru.com/cpp/w-p/system/devicedriverdevelopment/article.php/c8035 > > strace-like tracers on Windows are usually more interested in > tracing calls to all kinds of dlls, and they usually do so by > playing games with the import tables, I believe. I was thinking about the latter, as that is what is usually interesting.