idb cannot find function defined by preprocessor directive
Hello,
without a reproducer it's hard to tell what's wrong. Can you create a simple example that I can use for verification? I tried already myself with two FORTRAN modules in separate static libraries but it works (unfortunately).
Also, what does "cannot step" mean; how does it look like? Assuming you're using the IDB GUI (not command line): Is there a blue bullet at the line you do the call? Can you load the source file from lib2.a you want to step into manually (Open Source File dialog)? Does it show blue bullets on the left then? Can you set a breakpoint manually at the callee (@lib2.a) and stop there?
Best regards,
Georg Zitzlsberger If I manage to create a simple example I'll post it. "cannot step" means that when I am in func1 at the line where I call func2, when I press 's' it goes to the next line in func1 instead of opening the source file for func2. There is not blue bullet at the line I do the call, I cannot load the source file from lib2.a manually. Does it look like I didn't compile with debug option? I put debug flag only at compile time for object files, not when I created the static library with ar. --------------------------------------------------------------- Edit: I wrote a simple program (only in fortran 90) that uses only lib2.a, without using lib1.a, and idb doesn't step anyway into lib2.a. I compile the library like ifort -g -O0 -check bounds -warn all -traceback -align all -align rec8byte -o a.o -c a.f90 -I ifort -g -O0 -check bounds -warn all -traceback -align all -align rec8byte -o b.o -c b.f90 -I ifort -g -O0 -check bounds -warn all -traceback -align all -align rec8byte -o c.o -c c.f90 -I ifort -g -O0 -check bounds -warn all -traceback -align all -align rec8byte -o d.o -c d.f90 -I /u/shared/programs/x86_64/ifort/11.1.064/bin/intel64/xiar rcvf lib2.a a.o b.o c.o d.o xiar: executing 'ar' a - a.o a - b.o a - c.o a - d.o I don't understand what is going wrong, I usually compile libraries like that and the debugger works! Any idea?
|