User forums > General (but related to Code::Blocks)
Cannot find bounds of current function?
huzhongshan:
I use codeblocks (12.11 TDMgcc 4.7.1 ) to debug a dll , I write a application to call dll functions (dll compiled with -g , no optimization) , when I step into function in dll , Debugger says "Cannot find bounds of current function"
Jenna:
And where is the relation to C::B ?
It looks either like a compiler, gdb or user issue.
In the first two case ask in the appropriate forums, mailing lists or irc-channels of gcc or gdb.
To be sure it's not the last case, double-check the build options of your dll and your application, and check that the correct version of the dll is used.
ANd please reread the forum rules.
huzhongshan:
--- Quote from: jens on March 25, 2013, 06:13:53 am ---And where is the relation to C::B ?
It looks either like a compiler, gdb or user issue.
In the first two case ask in the appropriate forums, mailing lists or irc-channels of gcc or gdb.
To be sure it's not the last case, double-check the build options of your dll and your application, and check that the correct version of the dll is used.
ANd please reread the forum rules.
--- End quote ---
the c::b set wrong debugger settings ?
Jenna:
--- Quote from: huzhongshan on March 25, 2013, 08:16:22 am ---
--- Quote from: jens on March 25, 2013, 06:13:53 am ---And where is the relation to C::B ?
It looks either like a compiler, gdb or user issue.
In the first two case ask in the appropriate forums, mailing lists or irc-channels of gcc or gdb.
To be sure it's not the last case, double-check the build options of your dll and your application, and check that the correct version of the dll is used.
ANd please reread the forum rules.
--- End quote ---
the c::b set wrong debugger settings ?
--- End quote ---
I guess not.
Did you search the web for the error ?
There are many related topics, that might guide you into the correct direction, probably a programming error (overridden stack frame, due to a buffer overflow, or something similar).
It seems that in some cases a stripped dll can cause this error, too.
huzhongshan:
I searched the topic , but I find no useful info.
I create a very simple application and a dll . I attach the source code.
the caller is
int main()
{
char FileName[1024];
SomeFunction("Hello"); // cb can step into this function in dll
GetFileName(NULL , FileName , "title"); //when this functions called
SomeFunction("Hello"); // cb cannot step into .
cout << "Hello world!" << endl;
return 0;
}
I think GetFileName changes the directory , and then cb(gdb) can not step in the Next function(in dll).
I use CB 12.11 with gcc ( 4.7.1 ) , just downloaded from official site.
Navigation
[0] Message Index
[#] Next page
Go to full version