www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/02/24/18:39:29

Date: Fri, 24 Feb 1995 16:31:25 -0500 (CDT)
From: Aaron Ucko <UCKO AT VAX1 DOT ROCKHURST DOT EDU>
Subject: Re: GDB problem
To: brenig AT thp DOT Uni-Koeln DOT DE
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Organization: Rockhurst College; Kansas City, MO

>Anybody out there (Hi !) who would like to comment on this question:
>
>---------------------------------------------------------------------
>
>I am trying to use GDB to debug C++ source code compiled with DJ's
>32-bit DOS-extender GCC-compiler (which I am a complete novice to !).
>
>My problem is that I can't get debug info attached such that GDB will
>STEP INTO class member function which are declared/defined in various
>header files as well as into template declarations.

I don't think the file format produced by the current version of DJGPP
can provide good C++ debugging information.  You'll have to try "printf
debugging" or something similar.  Sorry.

>	double& operator()(int i) {
>		if(l<=i && i<=m)
>			return dp[i];
>		else {
>			printf("Warning: Index out of range!\n");
>			return dp[l];
>		}
>	}
BTW, why is this operator() instead of operator[]?  The latter seems more
intuitive, at least to C lovers like me...

>Any help on this one ?? I am NOT subscribing to the djgpp mailing
>list so please mail your comments to:
>
>brenig AT thp DOT uni-koeln DOT de

I forwarded a copy of my reply to the list anyway in case it may be useful
to others.

--- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) -=- httyp!
-=*=-Just because you're paranoid doesn't mean they aren't out to get you.-=*=-
Geek code 2.1 [finger hayden AT vax1 DOT mankato DOT msus DOT edu for explanation]: 
 GCS/M/S d(-) H s g+ p? !au a-- w+ v+ C++(+++)>++++ UL++(-)(S+)>++++ P++ 
 L+(++) 3(-) E-(----) !N>++ K- W-(---) M-(--) V(--) po-(--) Y+(++) t(+) !5 j R 
 G tv--(-) b+++ !D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?

- Raw text -


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