X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f From: pavenis AT lanet DOT lv To: djgpp-workers AT delorie DOT com Date: Fri, 1 Feb 2002 20:25:24 +0200 MIME-Version: 1.0 Subject: gcc-3.X and GDB Message-ID: <3C5AF9B4.14429.27FDF9@localhost> X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Reply-To: djgpp-workers AT delorie DOT com 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