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!news3.google.com!feeder.news-service.com!news.mixmin.net!news.albasani.net!not-for-mail From: Leslie Newsgroups: comp.lang.ada Subject: Re: gdb hijacks my argument list Date: Tue, 05 Jan 2010 13:18:57 -0600 Organization: albasani.net Message-ID: References: <4b43251a$0$6270$4f793bc4@news.tdc.fi> <4b437848$0$26368$4f793bc4@news.tdc.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.albasani.net z7+7l4jKYAsJQejkWwqB+B35XYrj2TOdOTYU35p6bTlMeZCSSpN6akmEMnRgmrnv7BNDV5PK+OQ8sDTmfwRDi+yBry4LcZ2c96yN8S4wT4pi7tCR4BnntQAAlCKMZHFr X-Complaints-To: abuse@albasani.net NNTP-Posting-Date: Tue, 5 Jan 2010 19:18:01 +0000 (UTC) X-User-ID: BDv1ZFIP963wP3JqUpJ6EBHzZykLejRlHQuS21VSGpq2btmvDFs9SY5juVvEGmfzjg/FiuDJQ9HNXD5ZEqJ+iQ== Cancel-Lock: sha1:pybAFAauifjFMbAjxFI2mktUjrc= User-Agent: KNode/0.10.9 X-NNTP-Posting-Host: bzI6YPmBmTBYAptsMosDL6Zr3RGC/yUFSW917cDfGrI= Xref: g2news1.google.com comp.lang.ada:8617 Date: 2010-01-05T13:18:57-06:00 List-Id: 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) =============================== Leslie