From: "Sérgio Durigan Júnior" <sergiodj@linux.vnet.ibm.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 3/3] catch syscall -- try 5 -- Build-system, testcase, documentation and extra command
Date: Sun, 26 Apr 2009 17:55:00 -0000 [thread overview]
Message-ID: <1240768520.13755.21.camel@miki> (raw)
In-Reply-To: <8363grfgr5.fsf@gnu.org>
Hi Eli,
On Sun, 2009-04-26 at 20:48 +0300, Eli Zaretskii wrote:
> > > > +Catchpoint 1 (call to syscall 'close'), \
> > > > + 0xffffe424 in __kernel_vsyscall ()
> > >
> > > > +Catchpoint 1 (returned from syscall 'close'), \
> > > > + 0xffffe424 in __kernel_vsyscall ()
> > >
> > > Is this all GDB displays when a syscall is caught? I thought it also
> > > displayed the return code and the syscall parameters, like strace
> > > does. If we don't do that, this facility looks much less useful than
> > > it sounds, doesn't it? I realize that the user could glean all that
> > > information by using the normal GDB commands, but for that, she would
> > > need to know the some intimate details of the syscall dispatched
> > > (__kernel_vsyscall in this case), right?
> >
> > I'm sorry, but this is how the "catch syscall" was implemented since the
> > beginning. For the moment, GDB only prints the syscall name when the
> > catchpoint is triggered; it's obviously my intention to expand this in
> > the future (by making GDB print the syscall arguments, or its return
> > value for example), but I unfortunately don't have time to do it now.
>
> That's fine with me. Please don't regard my comments as rejection of
> what you've done.
Sorry if this sounded too personal. It was not my intention.
Thanks for the review, I'll send a refreshed patch probably today.
Regards,
--
Sérgio Durigan Júnior
Linux on Power Toolchain - Software Engineer
Linux Technology Center - LTC
IBM Brazil
next prev parent reply other threads:[~2009-04-26 17:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-23 0:34 Sérgio Durigan Júnior
2009-04-25 8:44 ` Eli Zaretskii
2009-04-26 7:32 ` Sérgio Durigan Júnior
2009-04-26 17:48 ` Eli Zaretskii
2009-04-26 17:55 ` Sérgio Durigan Júnior [this message]
2009-04-26 18:05 ` Sérgio Durigan Júnior
2009-04-26 18:52 ` Eli Zaretskii
2009-04-26 21:29 ` Sérgio Durigan Júnior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1240768520.13755.21.camel@miki \
--to=sergiodj@linux.vnet.ibm.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox