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!news4.google.com!feeder.news-service.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail Date: Tue, 05 Jan 2010 21:36:56 +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: <4b43251a$0$6270$4f793bc4@news.tdc.fi> <4b437848$0$26368$4f793bc4@news.tdc.fi> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4b43950b$0$26302$4f793bc4@news.tdc.fi> NNTP-Posting-Host: 81.17.205.61 X-Trace: 1262720267 news.tdc.fi 26302 81.17.205.61:58820 X-Complaints-To: abuse@tdcnet.fi Xref: g2news1.google.com comp.lang.ada:8619 Date: 2010-01-05T21:36:56+02:00 List-Id: Leslie wrote: > Niklas Holsti wrote: > >> 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": >> > Ack! You're right; I changed the name of the program between > times. But it does the same thing with the correct program > name: > ================================ > gdb --args testcmdline ' (name testtoken endchar \) < > testtoken.adb | (trace) count lines|cons ' > GNU gdb 6.8 > Copyright (C) 2008 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > > This is free software: you are free to change and redistribute > it. > There is NO WARRANTY, to the extent permitted by law. Type "show > copying" > and "show warranty" for details. > This GDB was configured as "i586-suse-linux"... > (gdb) You must also tell GDB to "run" the program at this point. So far, it has only read the program file (testcmdline) but has not started to execute the program. So type "run" to the "(gdb)" prompt. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .