From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: gdb hijacks my argument list
Date: Tue, 05 Jan 2010 19:34:12 +0200
Date: 2010-01-05T19:34:12+02:00 [thread overview]
Message-ID: <4b437848$0$26368$4f793bc4@news.tdc.fi> (raw)
In-Reply-To: <hhvlc7$nc8$1@news.albasani.net>
Leslie wrote:
> Niklas Holsti wrote:
>
>> gdb --args testtoken ' (name testtoken endchar \) <
>>> testtoken.adb | (trace) count lines|cons '
>
> I get exactly the same result as before:
> ==================================
> gdb --args testtoken ' (name testtoken endchar \) <
> testtoken.adb | (trace) count lines|cons '
...
> This GDB was configured as "i586-suse-linux"...
> testtoken: No such file or directory.
Well, perhaps GDB is right and there is no such file?
Looking more carefully at your original question, at the attached
terminal session, it seems that your program is really named
"testcmdline", not "testtoken":
> 15:49:35 turriff@pinto
> ~/Documents/SourceCode$
> ./testcmdline 'with an arbitrary command string'
> with an arbitrary command string
Perhaps you should use
gdb --args testcmdline ' (name testtoken endchar \) <
testtoken.adb | (trace) count lines|cons '
The GDB command "set args" as suggested by John Matthews is also a good
method, and the one I have used until now.
--
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
. @ .
next prev parent reply other threads:[~2010-01-05 17:34 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
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 [this message]
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