|
From: | Amy Hemmingsen |
Subject: | HELP run arguements in ddd |
Date: | Fri, 7 Nov 2003 22:47:06 +0100 |
Hi,
I am new to using ddd and cannot understand what I
am doing wrong.
I am using ddd-3.3.7 with cygwin and compiled under
gcc 3.3.1 (platform win XP).
I have written a program that under normal
conditions should run a program
with the name tryMe <filename>
<int>.
In cygwin xterm, argc = 3 and argv = "tryMe
simple.rules 0"
However, when I run ddd from xwin the values are
different.
My argc = 8 and argv points to "
portion of log:
-> "run < /dev/tty4 > /dev/tty4
2>&1 simple.rules 0\n"
<- "\n" <- "Breakpoint 1, main (argc=8, argv=0xa043468) at myRule.y:456\n" <- "\032\032/home/Amy/iRule/myRule.y:456:15052:beg:0x40483c\n" If I print out the value of argv, it looks like
something like this
-> "print argv[0]@(argc)\n"
<- "$2 = {0x22fda4 \"/home/Amy/iRule/tryIt\", 0x22feda \"<\", 0x22fedc \"/dev/tty4\", 0x22fee6 \">\", 0x22fee8 \"/dev/tty4\", 0x22fef2 \"2>&1\", 0x22fef7 \"simple.rules\", 0x22ff04 \"0\"}\n" <- "(gdb) " argv should look like
"tryMe simple.rules 0"
Where is the /dev/tty4 and all the other stuff
coming from and is there a way to fix it?
I would hate to write a workaround in the code for
running only in ddd as opposed to other environments.
Attached is a copy of the .ddd/log file.
So confused and frustrated,
Amy Thompson
|
log
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |