comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: gdb hijacks my argument list
Date: Tue, 05 Jan 2010 21:36:56 +0200
Date: 2010-01-05T21:36:56+02:00	[thread overview]
Message-ID: <4b43950b$0$26302$4f793bc4@news.tdc.fi> (raw)
In-Reply-To: <hi0398$ec8$1@news.albasani.net>

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
> <http://gnu.org/licenses/gpl.html>
> 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
       .      @       .



      reply	other threads:[~2010-01-05 19:36 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
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 [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox