News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Splitting debugger in two - specific debugger and common GUI

Started by oBFusCATed, July 26, 2009, 01:27:44 PM

Previous topic - Next topic

MortenMacFly

Feature wish:
I have 2 debugger configurations: One for 32 bit and one for 64 bit. Switching between those would be easier if the toolbar would offer a drop-down box to select the currently active config on-the-fly if.

For now, I always need to enter the debugger settings, even though I have two targets (32 bit and 64 bit) in one project.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Why don't you set the correct debugger config in the toolchain executables for your 32bit and 64bit compilers and then use Debug->Active debuggers->Target's default?

Do you know that you can have multiple configs for one debugger plugin and you can switch them in Debug->Active debuggers?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: oBFusCATed on January 02, 2012, 08:46:53 PM
Do you know that you can have multiple configs for one debugger plugin and you can switch them in Debug->Active debuggers?
No. ::) :P

Quote from: oBFusCATed on January 02, 2012, 08:46:53 PM
Why don't you set the correct debugger config in the toolchain executables for your 32bit and 64bit compilers and then use Debug->Active debuggers->Target's default?
Where do I set the preferred debugger for a target?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

In the Settings -> Compiler -> Toolchain executable -> Debugger
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: oBFusCATed on January 03, 2012, 09:09:47 AM
In the Settings -> Compiler -> Toolchain executable -> Debugger
Yes, I know that. But this is global and not per-target. I guess I mis-understood.

But the option from the menu is just fine...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

If you have two different compiler for two different targets it will use the appropriate debugger configuration.

Probably we can add some options for this per target, but I'm not sure what is needed, so you can help me in this regard :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: oBFusCATed on January 03, 2012, 10:26:47 AM
Probably we can add some options for this per target, but I'm not sure what is needed, so you can help me in this regard :)
I don't think so...
Quote from: MortenMacFly on January 03, 2012, 10:10:06 AM
But the option from the menu is just fine...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Jenna

The branch crashes for me in batchbuild mode (on Linux and Windows).
When trying to create m_disassemblyDialog from inside  DebuggerManager::SetInterfaceFactory wxScintilla stops with "Could not create a new wxControl instance.".

Too late to dig into it later at the moment.

oBFusCATed

Yes, we discussed it before and there was no approved solution.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Jenna

Quote from: oBFusCATed on January 04, 2012, 01:01:36 AM
Yes, we discussed it before and there was no approved solution.
Do we really need to initialize debugging-stuff in batchbuild mode ?

oBFusCATed

The thing is that the code assumes that the debugging windows are correctly created and never checks for null pointers.
I can add the checks but I prefer not to do so.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

I've merged the debugger branch with trunk and adjusted a few more wx 2.9.x compatibility things. Feel free to compile the C::B core of the branch using the project file "CodeBlocks_wx29.cbp" and "update29.bat" (also in SVN).

The same applies to trunk for those who want to try wx 2.9.x progress.

BTW: If you are compiling wx 2.9.x, make sure to switch off "WXWIN_COMPATIBILITY_2_6" and "WXWIN_COMPATIBILITY_2_8" when compiling wxWidgets 2.9.x from sources.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Morten:
"#define wxPG_COMPATIBILITY_1_2_0 0" breaks the build of wxsmith.
When committing please ensure that the contrib plugins build, too, because I'm using the branch as my main install!
Also this change should have been made in trunk, not in the branch!
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: oBFusCATed on January 04, 2012, 03:57:35 PM
"#define wxPG_COMPATIBILITY_1_2_0 0" breaks the build of wxsmith.
Not for me... I'll try though...

Quote from: oBFusCATed on January 04, 2012, 03:57:35 PM
Also this change should have been made in trunk, not in the branch!
Why? wxPropGrid is already modified by you in the branch and differs therefore from trunk IMHO... I maybe wrong though...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Quote from: MortenMacFly on January 04, 2012, 05:27:14 PM
Not for me... I'll try though...
There is a missing wxIsIdOk or something like that when the compatibility is off.

Quote from: MortenMacFly on January 04, 2012, 05:27:14 PM
Why? wxPropGrid is already modified by you in the branch and differs therefore from trunk IMHO... I maybe wrong though...
Because this helps porting the code using wxpropgrid to wx2.9 a lot, and so commits changing wxsmith will fail to compile early if this change is in trunk.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]