Menu

#430 The source file cursor can't display and sync

Next_Release
applied
Patch
2016-11-10
2016-11-08
No

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]*"));
1 Attachments

Discussion

  • Teodor Petrov

    Teodor Petrov - 2016-11-08
    • labels: --> Debugger, CDB
    • assigned_to: Teodor Petrov
     
  • Teodor Petrov

    Teodor Petrov - 2016-11-08

    Can you show a stack trace that breaks it?

     
  • Debugfan Chin

    Debugfan Chin - 2016-11-09

    The following stackframe output from debugger windows in my patched codeblocks by input command 'k' after hit a breakpoint:

    Continuing...
    Breakpoint 2 hit
    At main.cpp:8
    > k
    ChildEBP RetAddr  
    0018ff38 004013ef dbgtest!main+0x3 [main.cpp @ 8]
    0018ff88 7653336a dbgtest!mainCRTStartup+0xff [crtexe.c @ 338]
    WARNING: Stack unwind information not available. Following frames may be wrong.
    0018ff94 774f9902 kernel32!BaseThreadInitThunk+0x12
    0018ffd4 774f98d5 ntdll32!RtlInitializeExceptionChain+0x63
    0018ffec 00000000 ntdll32!RtlInitializeExceptionChain+0x36
    
     
  • Teodor Petrov

    Teodor Petrov - 2016-11-09
    • status: open --> applied
     
  • Teodor Petrov

    Teodor Petrov - 2016-11-09

    Applied in svn. Thanks for contribution.
    Please next time don't leave commented code in the patches.

     
  • Debugfan Chin

    Debugfan Chin - 2016-11-10

    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.

     

Log in to post a comment.