comp.lang.ada
 help / color / mirror / Atom feed
From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: gdb hijacks my argument list
Date: Tue, 05 Jan 2010 11:15:43 -0500
Date: 2010-01-05T11:15:43-05:00	[thread overview]
Message-ID: <nospam-739865.11154305012010@news.aioe.org> (raw)
In-Reply-To: hhvlc7$nc8$1@news.albasani.net

In article <hhvlc7$nc8$1@news.albasani.net>,
 Leslie <jlturriff@centurytel.net> wrote:

> Niklas Holsti wrote:
> 
> > gdb --args testtoken ' (name testtoken endchar \) <
> > > testtoken.adb | (trace) count lines|cons '
> 
> I get exactly the same result as before:

This older version of gdb lacks the --args feature, but `set args` and 
`show args` seem to work. Some of the tokens in your arg string appear 
to be shell operators and commands. You may have to evaluate the string 
in a shell and feed the result to args.

<transcript>
GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 
UTC 2008) Copyright 2004 Free Software Foundation, Inc. GDB is free 
software, covered by the GNU General Public License, and you are 
welcome to change it and/or distribute copies of it under certain 
conditions. Type "show copying" to see the conditions. There is 
absolutely no warranty for GDB.  Type "show warranty" for details. This 
GDB was configured as "i386-apple-darwin"...Reading symbols for shared 
libraries .. done

(gdb) set args ' (name testtoken endchar \) < testtoken.adb | (trace) count lines|cons '
(gdb) show args
Argument list to give program being debugged when it is started is
"' (name testtoken endchar \) < testtoken.adb | (trace) count lines|cons '".
(gdb)
</transcript>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>



  reply	other threads:[~2010-01-05 16:15 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 [this message]
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