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!news1.google.com!goblin2!goblin1!goblin.stu.neva.ru!feeder.eternal-september.org!eternal-september.org!de-l.enfer-du-nord.net!newsfeed.eweka.nl!feeder3.eweka.nl!81.171.88.15.MISMATCH!eweka.nl!lightspeed.eweka.nl!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail Date: Tue, 05 Jan 2010 13:39:19 +0200 From: Niklas Holsti Organization: Tidorum Ltd User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: gdb hijacks my argument list References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4b43251a$0$6270$4f793bc4@news.tdc.fi> NNTP-Posting-Host: 81.17.205.61 X-Trace: 1262691616 news.tdc.fi 6270 81.17.205.61:53175 X-Complaints-To: abuse@tdcnet.fi Xref: g2news1.google.com comp.lang.ada:8609 Date: 2010-01-05T13:39:19+02:00 List-Id: 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 . @ .