From: Keith M. <kei...@to...> - 2007-04-03 16:30:10
|
sci...@wp... wrote: > I belive that with using LoadLibrary gdb/mingw works ok, > I will probably check it. Anyway I think it is bug that it > dosen't work with lib*.a. Well, I just tried with my small project, compiling all my object files with `gcc -g -O2 ...', e.g.[1] gcc -c -g -O2 -I. -I../../mingw-catgets-0.1/include \ -I/mingw/include -DHAVE_CONFIG_H -L. \ ../../mingw-catgets-0.1/catopen.c then: gcc -o catgets-1.dll -shared -g -O2 catopen.o catgets.o \ catclose.o mctab.o mcref.o mcfree.o \ -Wl,--out-implib=libcatgets.dll.a Creating library file: libcatgets.dll.a gcc -o gencat.exe -g -O2 -L. gencat.o setlocale.o \ mkstemp.o langinfo.o basename.o mcload.o mciconv.o \ mcsource.o mcmerge.o -liconv -lcatgets I then loaded gencat.exe into gdb, set a breakpoint at catopen, (which is in catgets-1.dll), and ran to the break; absolutely no problem viewing source at that point, nor in tracing onward from it at source level. > Does somebody can confirm it ? Nope. Works for me. What version of gdb are you using? >From whence? Regards, Keith. [1] I know -I/mingw/include shouldn't be necessary; it seems to be creeping in because of a flaw in my autoconf logic to support linking to libiconv. |