From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9981 invoked by alias); 5 Nov 2008 18:42:07 -0000 Received: (qmail 9935 invoked by uid 22791); 5 Nov 2008 18:42:06 -0000 X-Spam-Check-By: sourceware.org Received: from mtaout6.012.net.il (HELO mtaout6.012.net.il) (84.95.2.16) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 05 Nov 2008 18:41:25 +0000 Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0K9V00700IKP8F00@i-mtaout6.012.net.il> for gdb-patches@sourceware.org; Wed, 05 Nov 2008 20:43:04 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.241.172]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K9V00B5KINSS250@i-mtaout6.012.net.il>; Wed, 05 Nov 2008 20:43:04 +0200 (IST) Date: Wed, 05 Nov 2008 18:42:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 1/4] 'catch syscall' feature -- Architecture-independent part In-reply-to: <1225892021.32321.58.camel@miki> X-012-Sender: halo1@inter.net.il To: =?ISO-8859-1?Q?S=E9rgio?= Durigan =?ISO-8859-1?Q?J=FAnior?= Cc: drow@false.org, bauerman@br.ibm.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: References: <1225773079.24532.52.camel@miki> <1225836687.20764.21.camel@localhost.localdomain> <20081104223421.GC5391@caradoc.them.org> <1225892021.32321.58.camel@miki> 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/msg00082.txt.bz2 > From: =?ISO-8859-1?Q?S=E9rgio?= Durigan =?ISO-8859-1?Q?J=FAnior?= > Cc: Daniel Jacobowitz , bauerman@br.ibm.com, > gdb-patches@sourceware.org > Date: Wed, 05 Nov 2008 11:33:41 -0200 > > I think we can do the higher-level abstraction that you are asking, > but I'd like you to please describe in more details how this > abstraction would be I think a better interface would be to specify a syscall by its name, a string, not its number. The target-side code will then do TRT with the string; the Linux target will convert that to a number and use that (and probably all other Posix platforms will do that as well). Higher-level GDB code, such as breakpoint.c, should never be exposed to the fact that a syscall is identified by a number. > or even better, if that's not asking too much you could take the > code I did and implement something better :-). Unfortunately, I don't have nearly enough time to work on this. Which makes my arguments much less convincing, I know.