Mail Archives: djgpp/2000/11/01/12:26:27
Original post is at bottom of this.
I checked. I did have "\n" in the printf.
When I run this from the DOS prompt, no error messages show. I am
merely tossed out of the program to the DOS prompt.
The source is proprietary. I can't show it. I would have to cobble
something that duplicates the problem. Kind of makes it tough to ask
intellegent questions :-( Furthermore, if I could duplicate the problem
in a small program then I could fix it myself, nicht war?
When the act of loading a program into the debugger fixes a runtime
problem, is the 'fix' usually due to changed memory alignment due to the
fact that the target is loaded into a different place in memory?
----- Original Message -----
From: "Murray Rogers" <mwr21 AT cam DOT ac DOT uk>
To: <djgpp AT delorie DOT com>
Sent: Tuesday, October 31, 2000 10:54 AM
Subject: Re: Runtime mystery
| is your program actually crashing? If so, try a "\n" at the end of
the
| printf to make sure it flushes the buffer.
|
|
| ----- Original Message -----
| From: Tom Hutto <huttothomas AT hotmail DOT com>
| Newsgroups: comp.os.msdos.djgpp
| To: DJGPP <djgpp AT delorie DOT com>
| Sent: 30 October 2000 18:47
| Subject: Runtime mystery
|
|
| > What's going on here? The my program does not work, so I try to
debug
| > it. But gdb hides the error I'm trying to find.
| >
| > Maybe I don't know what to look for, but I can't find this problem
| > referenced in the FAQ nor the archives. I have looked though.
| >
| > In MYPROG.C, modify main() so that it has printf("Hello world"); as
its
---------->>> correction: ptintf("HELLO World\n");
| > first executable statement.
| >
| >
| > ReCompile MYPROG using gcc via a makefile (30 something *.c and *.h
| > files)
| > get no warnings no errors
| > link step gives no warnings no errors
| >
| > At the DOS prompt type MYPROG.EXE and press enter
| > MYPROG prints nothing to the terminal nor to any file that I can
find.
More: -------- DOS prints no error messages. Just dumps me at the
prompt.
| >
| > At the DOS prompt type
| > gdb MYPROG
| > type run at the (gdb) prompt.
| >
| > MYPROG operates as would be expected under 'normal' circumstances.
| >
| > What's going on here? The pgm does not work, so I try to debug it.
But
| > gdb hides the error I'm trying to find.
| >
| >
| >
| >
| > TIA and Cheers
| > Tom Hutto thutto AT houston DOT rr DOT com Houston,Texas USA
| > "If you can't measure it, you can't control it." - Lord Kelvin
| >
| >
| >
|
|
- Raw text -