unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@ics.uci.edu>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Nick Roberts <nickrob@snap.net.nz>, emacs-devel@gnu.org
Subject: Re: gdb --args does not work in emacs/src ...
Date: Mon, 11 Feb 2008 09:09:46 -0800	[thread overview]
Message-ID: <200802111709.m1BH9mrX004400@sallyv1.ics.uci.edu> (raw)
In-Reply-To: <jwvmyq71lmx.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 11 Feb 2008 11:53:07 -0500")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

  > >> > ... because .gdbinit overwrites args:
  > >> > 
  > >> > set args -geometry 80x40+0+0
  > >> > 
  > >> > this is annoying when one wants to start the debugger with specific
  > >> > arguments on the command line.
  > >> 
  > >> I guess it guarantees that everyone is debugging Emacs under more similar
  > >> conditions.  You can always comment that line out in your version.
  > 
  > > Sure I've been doing that for a long time, but it would be even better
  > > if I didn't have to do it.
  > 
  > > Is it possible to append to args?
  > > Or maybe only set it if it's not already set?
  > 
  > I always specify the args directly to the "run" command, so the "set

That's a habit that precedes the availability of gdb --args...

  > args" is only problematic when I want to run Emacs without any argument
  > which is rare when debugging.

Not so rare when you use gdb --args, which is all the time for me nowadays.
It's very convenient to just prepend gdb --args to the command you want
to debug (which is probably already available in the shell command
history) and not have to worry about passing arguments to "run"...




  reply	other threads:[~2008-02-11 17:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-11  6:32 gdb --args does not work in emacs/src Dan Nicolaescu
2008-02-11  7:56 ` Nick Roberts
2008-02-11 15:21   ` Dan Nicolaescu
2008-02-11 16:53     ` Stefan Monnier
2008-02-11 17:09       ` Dan Nicolaescu [this message]
2008-02-11 16:59         ` Tom Tromey
2008-02-11 19:51         ` Nick Roberts
2008-02-15 22:43           ` Dan Nicolaescu
2008-02-15 22:58             ` Miles Bader
2008-02-17 13:22               ` Richard Stallman
2008-02-17 14:41                 ` Eli Zaretskii
2008-02-17 15:01                   ` David Kastrup

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200802111709.m1BH9mrX004400@sallyv1.ics.uci.edu \
    --to=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=nickrob@snap.net.nz \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).