Author Topic: Is there a way of automatically configuring debugger on initial install?  (Read 18593 times)

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
The link only works when I am logged in, otherwise it redirects me to https://forums.codeblocks.org/index.php

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Works fine in a private firefox window, too.
(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!]

Offline nenin

  • Almost regular
  • **
  • Posts: 202
Over the next few days I am now going to test that the following compilers I have on my Windows setup work with all of the patches I have been working on and fix any bugs I come across:
I propose to add to list https://winlibs.com/ - looks like this site offers most fresh mingw-w64 + gcc out of msys2.
« Last Edit: July 29, 2021, 09:41:57 am by nenin »

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Quote
I propose to add to list https://winlibs.com/ - looks like this site offers most fresh mingw-w64 + gcc out of msys2.

This site is more for bleeding edge GCC compiler versions that you install over the top of an existing setup. If this is done then the existing setup and new GCC from the site will be supported via the patch included in ticket 374 once it lands in the trunk and a CB is released with the changes in it assuming it ever makes it into the trunk.


Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
https://winlibs.com/, if I remember correctly, this compiler suite supply GDB, but the GDB is not python enabled.

So, I finally use this one: https://github.com/Guyutongxue/mingw-release

I have already post the reasons here: an annoying gcc bug which cause bad debugging experience is fixed in gcc trunk

EDIT: MinGW with GCC 11.1.0 works OK, and 11.2 version has some build issue, so please use 11.1 unless 11.2's issue is fixed.
« Last Edit: August 01, 2021, 04:43:22 am by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline nenin

  • Almost regular
  • **
  • Posts: 202
https://winlibs.com/, if I remember correctly, this compiler suite supply GDB, but the GDB is not python enabled.
Yes, at that moment there is no python in winlibs GDB. Stand alone "pythonified" GDB can be found here: https://github.com/ssbssa/gdb/


Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: Is there a way of automatically configuring debugger on initial install?
« Reply #21 on: August 01, 2021, 03:06:34 am »
Have either @ollydbg or @nenin successfully built wxwidget 3.1.5 with either of the GCC 11.2 compilers?

I tried last night to build wxWidget 3.1.5 with both GCC 11.2.0 compilers and they both failed with completely different issues on my setup, one hung on 'ar' and another had multiple definitions when it looked like it was near the end, but unfortunately the scroll back buffer was not large enough for me to scroll back to see what command the build was running that displayed the multiple defninitions. I also tried the wxWidget truck (be aware you need to g"git clone --recurse-submodules https://github.com/wxWidgets/wxWidgets" due to linked sub projects), but it also failed to build.

BTW: I had major issues until I told my AV to bugger off with the install directory after I scanned the install files....grrrr.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Is there a way of automatically configuring debugger on initial install?
« Reply #22 on: August 01, 2021, 04:41:14 am »
Have either @ollydbg or @nenin successfully built wxwidget 3.1.5 with either of the GCC 11.2 compilers?

I tried last night to build wxWidget 3.1.5 with both GCC 11.2.0 compilers and they both failed with completely different issues on my setup, one hung on 'ar' and another had multiple definitions when it looked like it was near the end, but unfortunately the scroll back buffer was not large enough for me to scroll back to see what command the build was running that displayed the multiple defninitions. I also tried the wxWidget truck (be aware you need to g"git clone --recurse-submodules https://github.com/wxWidgets/wxWidgets" due to linked sub projects), but it also failed to build.

BTW: I had major issues until I told my AV to bugger off with the install directory after I scanned the install files....grrrr.

Hi, for gytx's GCC 11.2, I also failed to build wxWidgets 3.1.5, some build issues are reported and identified here:

https://github.com/Guyutongxue/mingw-release/issues?q=

So, please use gytx's GCC 11.1. (see here: MinGW with GCC 11.1.0) This works OK for several months in my PC.

I haven't build the wxWidgets' trunk yet.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline nenin

  • Almost regular
  • **
  • Posts: 202
Re: Is there a way of automatically configuring debugger on initial install?
« Reply #23 on: August 01, 2021, 07:42:36 am »
Have either @ollydbg or @nenin successfully built wxwidget 3.1.5 with either of the GCC 11.2 compilers?
I have 32b compiler installed.  I can try.

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: Is there a way of automatically configuring debugger on initial install?
« Reply #24 on: August 01, 2021, 08:08:32 am »
@ollydbg, I spotted the issue and also spotted the wxwidget trunk included GCC 11 build fixes so I thought I would try, but it failed.

I did as suggested and tried the gytx's GCC 11.1.0 and it worked successfully with regards to building wxwidget 3.1.5 and CB with no issues The resulting CB runs okay in my 10 minutes testing I did.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Is there a way of automatically configuring debugger on initial install?
« Reply #25 on: August 01, 2021, 08:46:44 am »
@ollydbg, I spotted the issue and also spotted the wxwidget trunk included GCC 11 build fixes so I thought I would try, but it failed.

I did as suggested and tried the gytx's GCC 11.1.0 and it worked successfully with regards to building wxwidget 3.1.5 and CB with no issues The resulting CB runs okay in my 10 minutes testing I did.

Good to hear. I'm using gytx's GCC 11.1.0 for several months, and I don't see issues of the result C::B. :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline nenin

  • Almost regular
  • **
  • Posts: 202
Re: Is there a way of automatically configuring debugger on initial install?
« Reply #26 on: August 01, 2021, 09:03:33 am »
@ollydbg, I spotted the issue and also spotted the wxwidget trunk included GCC 11 build fixes so I thought I would try, but it failed.

I did as suggested and tried the gytx's GCC 11.1.0 and it worked successfully with regards to building wxwidget 3.1.5 and CB with no issues The resulting CB runs okay in my 10 minutes testing I did.
I just made 64b  mono build with winlibs 11.2 without errors with options: "-O2 -DNDEBUG -march=nocona  -s -msse4"

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Is there a way of automatically configuring debugger on initial install?
« Reply #27 on: August 02, 2021, 04:29:56 am »
Some good news about gcc 11.2, MinGW with GCC 11.2.0 (revision 1) this fixed the build issue, and I can build wx 3.1.5 and code::blocks now without any issue.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: Is there a way of automatically configuring debugger on initial install?
« Reply #28 on: August 02, 2021, 08:46:16 am »
@ollydbg thanks for the info and link. I have also been able to build wxwidget and CB without any issues.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Is there a way of automatically configuring debugger on initial install?
« Reply #29 on: February 10, 2022, 02:10:11 pm »
https://winlibs.com/, if I remember correctly, this compiler suite supply GDB, but the GDB is not python enabled.

So, I finally use this one: https://github.com/Guyutongxue/mingw-release

I have already post the reasons here: an annoying gcc bug which cause bad debugging experience is fixed in gcc trunk

EDIT: MinGW with GCC 11.1.0 works OK, and 11.2 version has some build issue, so please use 11.1 unless 11.2's issue is fixed.

Hi, it looks like winlibs has gdb with python support. See:

Releases brechtsanders/winlibs_mingw

issue: the selected build of GDB does not support Python scripting. it cannot be used in qt creator.  Issue 2 brechtsanders/winlibs_mingw
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.