User forums > Using Code::Blocks
OSX and debugging
oBFusCATed:
Oh, you're using gdb 6.3 this is tremendously old. Update to a 7.xx somehow if possible. Or use command line gdb to see what is going wrong.
Probably some regexp is not match, but I have no way to debug this.
Can you run codeblocks with the -v option?
p.s. please use code or quote tags to surround long pastes.
phisch2:
--- Quote from: oBFusCATed on January 13, 2014, 09:21:57 pm ---Oh, you're using gdb 6.3 this is tremendously old. Update to a 7.xx somehow if possible. Or use command line gdb to see what is going wrong.
Probably some regexp is not match, but I have no way to debug this.
Can you run codeblocks with the -v option?
p.s. please use code or quote tags to surround long pastes.
--- End quote ---
The version of gdb is tied to Xcode (Apples development suite which comes with g++, gdb, etc.) Poking around the internet people have difficulties updating individual components. I could try to get a newer version of gdb but it would take a bit of work.
I can runcode blocks with -v. What should I be looking for? On startup, with -v, I get this the following error in a window:
--- Code: ---CodeBlocks Error:
Invalid regular expression: '(([a-zA-Z]:)?.*?):([0-9]*):([0-9]*):(middle|beg):(.*)': quantifier operand invalid
--- End code ---
Running gdb from the command line:
--- Code: ---gdb Desktop/guessing/bin/Debug/guessing
GNU gdb 6.3.50-20050815 (Apple version gdb-1752) (Sat Jan 28 03:02:46 UTC 2012)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...
Reading symbols for shared libraries ... done
(gdb) break
No default breakpoint address now.
(gdb) break main.cpp:9
Breakpoint 1 at 0x100000b74: file main.cpp, line 11.
(gdb) run
Starting program: /Users/phil/Desktop/guessing/bin/Debug/guessing
Reading symbols for shared libraries ++......................... done
Breakpoint 1, main () at main.cpp:11
11 bool isGuessed = false; // Did they get it right yet?
(gdb) print isGuessed
$1 = false
--- End code ---
oBFusCATed:
If you get regex errors, then the problem is that your wxwidgets doesn't support the wxRE_ADVANCED mode for the regex engine.
phisch2:
Ok, and what should I do about that? The Codeblocks I'm using is simply the downloaded binary from the code blocks site. Does that binary need to be built with a newer version of WxWidgets? Should I try to build Codeblocks on my own? Please advise. Thanks for your help.
stahta01:
--- Quote from: phisch2 on January 14, 2014, 04:58:24 pm ---Ok, and what should I do about that? The Codeblocks I'm using is simply the downloaded binary from the code blocks site. Does that binary need to be built with a newer version of WxWidgets? Should I try to build Codeblocks on my own? Please advise. Thanks for your help.
--- End quote ---
This wxRE_ADVANCED is set as an option building wxWidgets; so the answer depends on the source of the wxWidgets Library on your system.
You will likely need to rebuild Code::Blocks; but, till after wxWidgets is fixed for wxRE_ADVANCED issue there is no reason to build Code::Blocks.
Note: The above assumes that wxRE_ADVANCED is the cause of the issue.
Tim S.
Navigation
[0] Message Index
[*] Previous page
Go to full version