Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Mac Binaries
Pecan:
--- Quote from: mandrav on May 19, 2006, 06:12:37 pm ---
As written above, I want the debugger's debug log. Enable it with "Settings->Compiler and debugger->Debugger->Display debugger's log".
--- End quote ---
"As written above...". Is that some sort of nasty reply? If so, I don't believe I deserve it. I'm trying the best I know how.
GDB 5.3 is now working with CB OSX 10.3
The moment I saw the output from the debuggers debug display I understood the problem.
mcCodeBlocks GDB needs a "run" not a "start". I'll include this in the patches I'm working on.
--- Code: ---void GDB_driver::Start(bool breakOnEntry)
{
ResetCursor();
// under windows, 'start' segfaults with wx projects...
//-#ifdef __WXMSW__
#if defined(__WXMSW__) || defined(__WXMAC__)
m_BreakOnEntry = false;
m_ManualBreakOnEntry = false;
// start the process
QueueCommand(new DebuggerCmd(this, _T("run")));
#else
m_BreakOnEntry = breakOnEntry;
m_ManualBreakOnEntry = true;
// start the process
QueueCommand(new DebuggerCmd(this, _T("start")));
#endif
}
--- End code ---
--- Code: ---Command-line: /usr/bin/gdb -nx -fullname -args minimal
Working dir : /Volumes/Seagate/MAC/temp/minimal/
> set prompt >>>>>>cb_gdb:
GNU gdb 5.3-20030128 (Apple version gdb-330.1) (Fri Jul 16 21:42:28 GMT 2004)
Copyright 2003 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 "powerpc-apple-darwin".
Reading symbols for shared libraries .. done
(gdb) >>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
No symbol "breakpoint" in current context.
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set disassembly-flavor att
No symbol "disassembly" in current context.
>>>>>>cb_gdb:
> directory /Volumes/Seagate/MAC/temp/minimal/
>>>>>>cb_gdb:
> delete breakpoints
>>>>>>cb_gdb:
> break minimal.cpp:7
Breakpoint 1 at 0x2d80: file minimal.cpp, line 7.
>>>>>>cb_gdb:
> run
Reading symbols for shared libraries
. done
Breakpoint 1, main () at minimal.cpp:7
/Volumes/Seagate/MAC/temp/minimal/minimal.cpp:7:92:beg:0x2d80
>>>>>>cb_gdb:
> next
Hello world
Hello world!
/Volumes/Seagate/MAC/temp/minimal/minimal.cpp:8:135:beg:0x2da8
>>>>>>cb_gdb:
> next
sh: line 1: pause: command not found
/Volumes/Seagate/MAC/temp/minimal/minimal.cpp:9:157:beg:0x2db4
>>>>>>cb_gdb:
> next
/Volumes/Seagate/MAC/temp/minimal/minimal.cpp:10:169:beg:0x2db8
>>>>>>cb_gdb:
> cont
Program exited normally.
>>>>>>cb_gdb:
> quit
--- End code ---
mandrav:
--- Quote ---"As written above...". Is that some sort of nasty reply? If so, I don't believe I deserve it. I'm trying the best I know how.
--- End quote ---
What's wrong with everyone these days? Why are you all so jumpy? :?: :|
I just pointed out that I asked for it. And I even told you where to enable it. I didn't imply anything more or less...
afb:
--- Quote from: Pecan on May 19, 2006, 08:46:55 pm ---GDB 5.3 is now working with CB OSX 10.3
mcCodeBlocks GDB needs a "run" not a "start". I'll include this in the patches I'm working on.
--- End quote ---
Oops, that explains why I couldn't see the problem with GDB (had it patched locally...)
Anyway, it sounds a whole lot better than having to drop Mac OS X 10.3 support ! :-)
sethjackson:
--- Quote from: mandrav on May 19, 2006, 09:24:53 pm ---What's wrong with everyone these days? Why are you all so jumpy? :?: :|
--- End quote ---
OT: Yeah I have noticed this too...... What is the dea (maybe everyone is tired/has too much to do or something)l? :?: I don't mean to offend anyone so please take my comments lightly........
Oh well looks like Pecan has fixed his problem (and got C::B to run on OS X 10.3). :D
Game_Ender:
Can't wait till Monday, when I get into work I will see if can get CB to compile on our new Intel iMac, the Core Duo is fast. If everything turns out good, hopefully I can use it with/instead of xcode.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version