From: SourceForge.net <no...@so...> - 2003-01-04 06:23:44
|
Bugs item #623537, was opened at 2002-10-15 21:46 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=623537&group_id=2435 Category: gdb Group: component package >Status: Closed >Resolution: Fixed Priority: 6 Submitted By: Eugene Maltsev (slimering) Assigned to: Earnie Boyd (earnie) Summary: Gdb internal error when attaching proces Initial Comment: I sometimes get error when trying to attach to process: error return ../../../BUILD/gdb-5.1.1/gdb/win32-nat.c:1352 was 5 Attaching to process 1124 ../../../BUILD/gdb-5.1.1/gdb/coffread.c:472: gdb-internal-error: sect_index_text not initialized What does that mean? ---------------------------------------------------------------------- >Comment By: Luke Dunstan (infidel) Date: 2003-01-04 14:24 Message: Logged In: YES user_id=30442 I think this error is caused when you try to debug a program that loads a DLL that has no text section (e.g. it just has resources). An example of such a DLL is odbcint.dll and this program reproduces the problem: #include <windows.h> #include <stdio.h> int main(void) { puts("1"); LoadLibrary("odbcint.dll"); puts("2"); return 0; } If you try to run it or step over the LoadLibrary() using GDB 5.1.1 it will give the above error message and hang. It is best observed under cmd.exe because with MSYS the error doesn't seem to appear, though it still hangs. AFAICT this is fixed in GDB 5.2.1. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=623537&group_id=2435 |