delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/05/13/00:40:40

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Date: Mon, 13 May 2002 07:37:37 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Andrew Cottrell <acottrel AT ihug DOT com DOT au>
cc: djgpp-workers AT delorie DOT com
Subject: Re: Debugging Problem with win2k (fwd)
Message-ID: <Pine.SUN.3.91.1020513073555.8317A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

FYI (for some reason, the OP insists on replying to me personally).

---------- Forwarded message ----------
Date: Sun, 12 May 2002 18:08:27 -0400
From: JWV Miller <jwvm AT umich DOT edu>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Subject: Re: Debugging Problem with win2k

GDB works fine for me too, but its under rhide that I have the problem.

Thanks for your help.

----- Original Message -----
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
To: <jwvm AT umich DOT edu>
Cc: <djgpp AT delorie DOT com>
Sent: Sunday, May 12, 2002 12:42 PM
Subject: Re: Debugging Problem with win2k


> > From: "JWV Miller" <jwvm AT umich DOT edu>
> > Date: Sun, 12 May 2002 11:16:56 -0400
> >
> > Take your pick. It fails with all programs. Here is a trivial example:
> >
> > #include <iostream.h>
> >
> > int main()
> > {
> >     int a = 1;
> >     cout << a << endl;
> >     return 0;
> > }
>
> I cannot reproduce the problem, at least not with command-line
> compilation and GDB as the debugger (I don't have RHIDE installed, so
> I couldn't try that).
>
> What compilation switches did you try to build the program?  Did you
> actually link it to produce a .exe file, or just compiled the source
> into an object file?  What debugging switches did you use (like I use
> "-gstabs+" in the example below)?
>
> Below is what I tried with this short program.  As you see, I can
> successfully step through the program line by line.
>
>   c:\> gpp -gstabs+ testcpp.cc -o testcpp.exe
>   c:\> gdb ./testcpp.exe
>   GNU gdb 5.1.1
>   Copyright 2002 Free Software Foundation, Inc.
>   GDB is free software, covered by the GNU General Public License, and you
are
>   welcome to change it and/or distribute copies of it under certain
conditions.
>   Type "show copying" to see the conditions.
>   There is absolutely no warranty for GDB.  Type "show warranty" for
details.
>   This GDB was configured as "i386-pc-msdosdjgpp"...
>   (gdb) break main
>   Breakpoint 1 at 0x15e9: file testcpp.cc, line 5.
>   (gdb) run
>   Starting program: d:/usr/djgpp/gnu/eli/rmail/./testcpp.exe
>
>   Breakpoint 1, main () at cppt2.cc:5
>   5           int a = 1;
>   (gdb) next
>   6           cout << a << endl;
>   (gdb) next
>   1
>   7           return 0;
>   (gdb) next
>   8       }
>   (gdb) next
>   0x000051f2 in __crt1_startup ()
>       at d:/usr/djgpp/lang/cxx-v3/bits/locale_facets.tcc:75
>   75            const locale::facet* __fp = (*__facet)[__i];
>   (gdb) next
>
>   Program exited normally.
>   (gdb) q
>




- Raw text -


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