Hi, oBF, thanks!!!!!
I just apply this patch, and find a small bug.
The test code is the attachment of this message
http://forums.codeblocks.org/index.php/topic,11301.msg77123.html#msg77123In debugger branch, I
can set breakpoint in the function body.
void __declspec(dllexport) MyFunction(const LPCSTR sometext)
{
/** SET BREAK POINT HERE VVVVVVVVVVV **/
MessageBoxA(0, sometext, "DLL Message", MB_OK | MB_ICONINFORMATION); *************breakpoint set here.
/** SET BREAK POINT HERE ^^^^^^^^^^^^ **/
}
when the debugger hit the bp, cursor jumped to the wrong place,
if ( NULL != ProcAdd )
{
fRunTimeLinkSuccess = TRUE;
( ProcAdd ) ( TEXT( "Message via DLL function\n" ) ); *********when bp hit, the cursor always jump here.
}
I think this is wrong behavior.
It works fine in the trunk version.My environment: TDM-MinGW GCC 4.4.1 and GDB 7.02
and with patch from jens:
http://forums.codeblocks.org/index.php/topic,11301.msg77156.html#msg77156thanks.
EditI just found that if the Call stack window was not opened during debugging, the cursor can jump to the right place.
, so, this is an issue of interpreting the backtrack output.