From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,eec8c4de47be074 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!195.96.0.7.MISMATCH!newsfeed.utanet.at!news.mixmin.net!aioe.org!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: gdb hijacks my argument list Date: Tue, 05 Jan 2010 11:15:43 -0500 Organization: The Wasteland Message-ID: References: <4b43251a$0$6270$4f793bc4@news.tdc.fi> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.1 Cancel-Lock: sha1:dQzZGaTgR27Q2YEiDuK0zGmmqio= User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: g2news1.google.com comp.lang.ada:8615 Date: 2010-01-05T11:15:43-05:00 List-Id: In article , 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: 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. 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) -- John B. Matthews trashgod at gmail dot com