Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: "Sérgio Durigan Júnior" <sergiodj@linux.vnet.ibm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 4/4] 'catch syscall' feature -- Build system, documentation 	and testcase
Date: Tue, 04 Nov 2008 16:33:00 -0000	[thread overview]
Message-ID: <m3hc6npi38.fsf@fleche.redhat.com> (raw)
In-Reply-To: <1225773088.24532.56.camel@miki> (=?utf-8?Q?=22S=C3=A9rgio?=  Durigan =?utf-8?Q?J=C3=BAnior=22's?= message of "Tue\, 04 Nov 2008  02\:31\:28 -0200")

>>>>> "Sérgio" == Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com> writes:

Sérgio> This last part modifies the build system (in order to
Sérgio> implement the GDB's datadir), adds the documentation and the
Sérgio> testcase for the new feature.

Nice.

Sérgio> +xml-syscall-copy:
Sérgio> +	list='$(XML_SYSCALLS_FILES)' ; \
Sérgio> +	for file in $$list ; do \

Two nits here.

First, if you build with builddir!=srcdir, you need to mkdir
XML_SYSCALLS_DIR here.

Second, I think it would be nice to detect the case where
builddir==srcdir and not copy in that case.

Sérgio> +xml-syscall-install:
Sérgio> +	$(SHELL) $(srcdir)/../mkinstalldirs \
Sérgio> +		$(DESTDIR)$(GDB_DATADIR_PATH)/$(XML_SYSCALLS_DIR) ; \

Using DESTDIR is nice attention to detail :-)

Sérgio> +# Also, the "install" target installs the syscalls' XML files in the system.
Sérgio> +install: all install-only xml-syscall-install

I think install-only should depend on xml-syscall-install.
I believe the intent here is that "make install-only" will install
everything without rebuilding.

Sérgio> +AC_ARG_WITH(gdb-datadir,
Sérgio> +[  --with-gdb-datadir=path   Look for global separate data files in this path [DATADIR/gdb]],

It is preferable, IMO, to use AS_HELP_STRING here.
There are some examples of this in gdb's configure.ac.

Sérgio> +AC_CONFIG_SUBDIRS(doc testsuite syscalls)
 
You don't want this.  There is no syscalls directory, and even if
there was, I would argue that it should not have its own configure
script.

Sérgio> +@item syscall
Sérgio> +@itemx syscall @var{syscall name}
Sérgio> +@cindex break on call to/return from a system call
Sérgio> +A call to/return from a @code{syscall} -- similar to the @code{strace}
Sérgio> +utility.

This needs a minor update now that "catch syscall" can take multiple
arguments.

I didn't read the implementation patch in detail... if it parses
numeric syscalls, then that should be mentioned here.

Finally, instead of "call to/return from", how about "call to or
return from"?  This is more grammatical and not much longer :-)

Tom


  parent reply	other threads:[~2008-11-04 16:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04  4:32 Sérgio Durigan Júnior
2008-11-04  8:19 ` Phil Muldoon
2008-11-04 15:03   ` Sérgio Durigan Júnior
2008-11-04 15:16     ` Daniel Jacobowitz
2008-11-04 15:36       ` Sérgio Durigan Júnior
2008-11-04 15:50         ` Daniel Jacobowitz
2008-11-04 16:33 ` Tom Tromey [this message]
2008-11-07  4:03   ` Sérgio Durigan Júnior
2008-11-04 20:03 ` Pedro Alves
2008-11-04 20:33   ` Sérgio Durigan Júnior
2008-11-04 20:47     ` Pedro Alves
2008-11-04 20:54 ` Eli Zaretskii
2008-11-07  3:58   ` 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=m3hc6npi38.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=sergiodj@linux.vnet.ibm.com \
    /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