delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/09/11/04:47:00

From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: debugging
Date: 11 Sep 2002 08:12:09 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 25
Message-ID: <almtsp$4a$1@antares.lu.erisoft.se>
References: <003b01c258f1$d12c4fe0$5ba951d5 AT delo>
NNTP-Posting-Host: lws256.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

johny (johny AT ammo DOT sk) wrote:
: when I try to debug this...

: #include <iostream>

: int main()
: {
:     int a;
:     a=55;
:     a++;

:     return 0;
: }

: I compile it with -g, but when I try to debug this,
: I get an error that breakpoint is invalid or there is now debug
: information...

Try with some other debug format, like -gstabs+ or
-gdwarf<something>. Check out the exact names with "info gcc".


Right,

						MartinS

- Raw text -


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