Mail Archives: djgpp-workers/2002/02/01/13:25:40
One of troubles with debugging C++ code built with gcc-3.0.X using GDB
(or RHIDE) is that GDB show completely wrong file and line for procedures
which don't have debug info (like strcpy()). Here is example of stack
backtrace from RHIDE
std_iostream.h:42: strcat ()
main.cc:930: init_rhgdb(int, char**) (__crt0_argc=1, __crt0_argv=0x327258)
main.cc:1003: main (argc=1, argv=0x327258)
std_iostream.h:42: __crt1_startup ()
Or the same from GDB:
(gdb) where
#0 0x0024f4d6 in __crt0_load_environment_file ()
at c:/djgpp/lang/cxx-v3/bits/std_iostream.h:48
#1 0x0001bfe8 in init_rhide(int, char**) (_argc=1, _argv=0xff8476d0)
at idemain.cc:2386
#2 0x0001c807 in main (argc=1, argv=0xff8476d0) at idemain.cc:2766
#3 0x0024b4eb in __crt1_startup ()
at c:/djgpp/lang/cxx-v3/bits/std_iostream.h:48
(gdb)
Currently tests done with RHIDE built using sources of GDB-5.1.1
and plain GDB-5.1.1
This problem is present already for a rather long time.
Andris
- Raw text -