Hi, I'm writing a package that accepts arbitrary character strings from the command line, and I'm trying to debug it with gdb.
When run without gdb the command line string is passed directly to my program, but when I tell gdb to pass it, gdb insists on interpreting it as a filename, and won't pass it through. Example without gdb: ================================================= ./testtoken ' (name testtoken endchar \) < testtoken.adb | (trace) count lines|cons ' Input string is: ....+....1....+....2....+....3....+....4....+....5....+....6 (name testtoken endchar \) < testtoken.adb | (trace) count lines|cons Before: TokenFrom = 1 TextLeft = 71 After: TokenFrom = 1 TextLeft = 71 Token 1 is: ' (name testtoken endchar \) < testtoken.adb | (trace) count lines|cons ' End of tokens reached. ================================================= Example with gdb: ================================================= gdb testtoken --args ' (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"... (name testtoken endchar \) < testtoken.adb | (trace) count lines|cons : No such file or directory. (gdb) ================================================= How do I make gdb pass this string through to the program under test? Leslie _______________________________________________ bug-gdb mailing list bug-gdb@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gdb