From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: gdb hijacks my argument list
Date: Tue, 05 Jan 2010 13:39:19 +0200
Date: 2010-01-05T13:39:19+02:00 [thread overview]
Message-ID: <4b43251a$0$6270$4f793bc4@news.tdc.fi> (raw)
In-Reply-To: <hhu38g$8pj$1@news.albasani.net>
Leslie wrote:
> Hi,
> Has anyone else seen this problem with gdb? I had originally
> posted it to bug-gdb@gnu.org, but got no useful response.
> Original post:
>
...
> Example with gdb:
> =================================================
> gdb testtoken --args ' (name testtoken endchar \) <
> testtoken.adb | (trace) count lines|cons '
According to "man gdb", the syntax for --args is:
gdb [options] --args prog [arguments]
So the first thing after "--args" is the program name (prog), and *then*
come the programs' arguments. Try this:
gdb --args testtoken ' (name testtoken endchar \) <
> testtoken.adb | (trace) count lines|cons '
--
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
. @ .
next prev parent reply other threads:[~2010-01-05 11:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-05 1:06 gdb hijacks my argument list Leslie
2010-01-05 11:39 ` Niklas Holsti [this message]
2010-01-05 15:21 ` Leslie
2010-01-05 16:15 ` John B. Matthews
2010-01-05 19:25 ` Leslie
2010-01-05 21:19 ` John B. Matthews
2010-01-05 17:34 ` Niklas Holsti
2010-01-05 19:18 ` Leslie
2010-01-05 19:36 ` Niklas Holsti
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox