I debugged source with cdb in codeblocks on Windows and found a probem: The source file cursor can't display and sync when hit a breakpoint. But step over does. It is caused in matching stackframe output string. The regex match expected windows disk letter , but it's not always given in cdb stackframe output. To fix this I make a patch. The key problematic regex string as follow:
static wxRegEx reBT2(_T("\\[([A-z]:)(.*) @ ([0-9]+)\\]"));
The following is in the patched version:
static wxRegEx reBT2(_T("\\[(.+)[ \\t]@[ \\t]([0-9]+)\\][ \\t]*"));
Can you show a stack trace that breaks it?
The following stackframe output from debugger windows in my patched codeblocks by input command 'k' after hit a breakpoint:
Applied in svn. Thanks for contribution.
Please next time don't leave commented code in the patches.
OK, cheers! I used to comment the original codes before modified them. I would pay a attention and remove them in patch if there is next time.