Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Splitting debugger in two - specific debugger and common GUI

<< < (117/136) > >>

MortenMacFly:

--- Quote from: oBFusCATed on January 13, 2012, 05:43:14 pm ---Do you have the full log?

--- End quote ---
That *is* the full log. Everything before is related to the last frame/debug info being shown.

oBFusCATed:
Test case?

MortenMacFly:

--- Quote from: oBFusCATed on January 13, 2012, 09:39:54 pm ---Test case?

--- End quote ---
I didn't find one yet... let me further investigate.

Another one: Concerning the issue that I cannot see the triangle: It is related to the settings! When I run a clean instance of C::B I see the triangle. "Re-installing" my old config makes the triangle go away. Must be either something with the layouts or editor settings... I'll investigate, too.

But: I got another serious one:
- Create a hello world project
- Set a BP
- Goto editor settings
- Don't change anything, but quit the dialog wit "OK"
- Try to remove (toggle) the BP -> does not work!!!

MortenMacFly:

--- Quote from: MortenMacFly on January 14, 2012, 03:11:10 pm ---I didn't find one yet... let me further investigate.

--- End quote ---
Got one!
- Create a hello world project
- Set a BP in the first line in "main".
- Step though the code using F7
- After a few steps I come to that point.

Here is the log:

--- Code: ---[debug]>>>>>>cb_gdb:

At c:\users\morten\desktop\mycon\main.cpp:7

[debug]> set debugevents off
[debug]>>>>>>cb_gdb:
[debug]> next
[debug]c:\users\morten\desktop\mycon\main.cpp:8:99:beg:0x401342
[debug]>>>>>>cb_gdb:

At c:\users\morten\desktop\mycon\main.cpp:8

[debug]> next
[debug]c:\users\morten\desktop\mycon\main.cpp:9:114:beg:0x401347
[debug]>>>>>>cb_gdb:

At c:\users\morten\desktop\mycon\main.cpp:9

[debug]> next
[debug]250 ../mingw/crt1.c: No such file or directory.
[debug]__mingw_CRTStartup () at ../mingw/crt1.c:250
[debug] in ../mingw/crt1.c
[debug]>>>>>>cb_gdb:

Trying to pause the running process...
Trying to pause the running process...
Trying to pause the running process...

--- End code ---

Note that "Trying to pause the running process..." comes from trying to press pause or stop. And also notice that I hit far more on "Step" than shown in the log...

oBFusCATed:

--- Quote from: MortenMacFly on January 14, 2012, 03:11:10 pm ---But: I got another serious one:
- Create a hello world project
- Set a BP
- Goto editor settings
- Don't change anything, but quit the dialog wit "OK"
- Try to remove (toggle) the BP -> does not work!!!

--- End quote ---

This is caused by
1. cbEditor::SaveFoldState() calling cbEditor::OnEditorModified
2 which then calls debugger->EditorLinesAddedOrRemoved,
3. which shifts the breakpoints after the end of the file.

I'm not really sure what should we do, so any suggestions are welcome.
By the way this is broken in trunk, too and I guess it has been broken for years.

I guess this easiest thing is to hack it with some kind of m_noBreakpointShift flag, but I don't want to do it this way. I want a proper fix.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version