This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/4] 'catch syscall' feature -- Architecture-independent part
> From: =?ISO-8859-1?Q?S=E9rgio?= Durigan =?ISO-8859-1?Q?J=FAnior?= <sergiodj@linux.vnet.ibm.com>
> Cc: Daniel Jacobowitz <drow@false.org>, 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.