delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/24/18:33:45

Xref: news2.mv.net comp.os.msdos.djgpp:4230
From: myskin AT inp DOT nsk DOT su (Vyacheslav O. Myskin)
Newsgroups: comp.os.msdos.djgpp
Subject: GDB problem
Date: Fri, 24 May 1996 15:50:24 GMT
Organization: BINP RAS
Lines: 33
Distribution: world
Message-ID: <4o4ls1$320@sky.inp.nsk.su>
Reply-To: myskin AT inp DOT nsk DOT su
NNTP-Posting-Host: csd-bsdi.inp.nsk.su
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi all!
I've never used DJGPP before, so I tried the 'Hello World' program to
get started:
-----------
#incllude <stdio.h>
void main()
 {
   printf("Hello World!\n");
 }
------------
The first time I run it with gdb 'run' command everything goes OK. But
if I exit gdb and try to launch it once more I get this:
---------
Starting program c:/djgpp/test/hello

Program received signal SIGSEGV, Segmentation fault.
<hex number> in <function name>
---------
After 3-5 'run' attempts (without exiting gdb) suddenly my 'Hello'
executes! If I reboot and try again, the result is the same - it works
for the first time and then causes errors. And if I try to run gdb
immediately after compiling, I get theese segmentation faults from the
very beginning - not a single successful run! It looks as if CWSDPMI
leaves in memory something that causes GDB malfunction. It's strange.
I use 486DX, 4Mb, DJGPPv2, GDB 4.12, CWSDPMI not resident, tried
booting clean (only the needed environment and path set).
Is there any way to restart the debuggee without leaving gdb? Any
comments would be appreciated.
Thanks in advance.

Vyacheslav Myskin, BINP RAS


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019