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

Mac Binaries

<< < (21/25) > >>

Michael:

--- Quote from: Pecan on May 17, 2006, 07:30:56 pm ---Does anyone know of a GDB 6.3 for MAC Panther (10.3).

The current gdb 5.3-20030128 (apple version gdb-330.1) does not appear to work with CodeBlocks.

--- End quote ---

Hello,

I do not know if the is a gdb 6.3 for Panther. May be you can build it from the sources.

I have found this info here:


--- Quote ---Apple versions, for Mac OS X 10.4.x "Tiger":

New versions: (Xcode Tools 2.1-2.2)

    * gcc-???? (based on GCC 4.0.1)
    * gdb-???? (based on GDB 6.3)

Note: Xcode 2.0-2.1 use GCC 4.0 and are very buggy in general. Upgrade to Xcode 2.2 or 2.2.1 or later!

--- End quote ---

Best wishes,
Michael

afb:
(it might be possible to build a FSF version of GDB 6.3 for Mac OS X 10.3, just as you might succeed building a FSF version of GCC 4.0 - but it is not supported by Apple)

What seems to be the problem with GDB 5.3, by the way ? (perhaps start a new topic though)

PS. Glad you liked the GDC page, I cleaned the info up a little.

Pecan:

--- Quote from: afb on May 17, 2006, 10:15:10 pm ---
What seems to be the problem with GDB 5.3, by the way ?


--- End quote ---

gdb 5.3 just stalls when used as a plugin. Even on a simple "hello world".

It shows no breaks, no watches, nothing. It recognizes "continue", but does nothing about it.

CodeBlocks appears to need 6.3 to debug correctly as a plugin.
gdb 5.3 works ok as a command line debugger only.

Lots of msgs about this on the forum.
 

Pecan:

--- Quote from: afb on May 17, 2006, 10:15:10 pm ---(it might be possible to build a FSF version of GDB 6.3 for Mac OS X 10.3, just as you might succeed building a FSF version of GCC 4.0 - but it is not supported by Apple)

--- End quote ---

Bad news. It appears that gdb 6.3 will not compile on Panther(10.3.9).
That means *no* integrated debugging with CodeBlocks.
That means I'm about to abandon the Panther ship. Buy some more memory and see If I can run Tiger on this imacg3.

Oh well.. it was worth the effort, maybe. :(
But if a user cannot easily compile 6.3 on Panther, then I think that might be the death nell of CB on 10.3

I ran ./configure from within the src folder, then make.
gdb 6.3 (apple gdb-434) gets the following errors. I've no idea what the errs mean.


--- Code: ---gcc -c -g -O2 -DTARGET_POWERPC -I./macosx -I./macosx -DWITH_CFM=1 -DUSE_PTHREADS  =1 -Wall -Wimplicit -Wno-long-double  -I. -I. -I./config -DLOCALEDIR="\"/usr/loc  al/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I..  /bfd -I./../bfd -I./../include -I./../mmalloc -I../intl -I./../intl  -DMI_OUT=1   -DTUI=1 -I/usr/include/libxml2 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -W  format -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral -Wunuse  d-label -Wunused-function  ./macosx/ppc-macosx-nat-exec.c
gcc -c -g -O2 -DTARGET_POWERPC -I./macosx -I./macosx -DWITH_CFM=1 -DUSE_PTHREADS  =1 -Wall -Wimplicit -Wno-long-double  -I. -I. -I./config -DLOCALEDIR="\"/usr/loc  al/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I..  /bfd -I./../bfd -I./../include -I./../mmalloc -I../intl -I./../intl  -DMI_OUT=1   -DTUI=1 -I/usr/include/libxml2 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -W  format -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral -Wunuse  d-label -Wunused-function  ./macosx/macosx-nat-watchpoint.c
gcc -c -g -O2 -DTARGET_POWERPC -I./macosx -I./macosx -DWITH_CFM=1 -DUSE_PTHREADS  =1 -Wall -Wimplicit -Wno-long-double  -I. -I. -I./config -DLOCALEDIR="\"/usr/loc  al/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I..  /bfd -I./../bfd -I./../include -I./../mmalloc -I../intl -I./../intl  -DMI_OUT=1   -DTUI=1 -I/usr/include/libxml2 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -W  format -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral -Wunuse  d-label -Wunused-function  ./macosx/macosx-nat-dyld.c

In file included from macosx/macosx-nat-dyld.c:57:
macosx/macosx-nat-inferior-debug.h:21: error: parse error before "mach_vm_addres  s_t"
macosx/macosx-nat-inferior-debug.h:22: error: parse error before "mach_vm_addres  s_t"
macosx/macosx-nat-dyld.c: In function `dyld_starts_here_p':
macosx/macosx-nat-dyld.c:369: error: `MH_MAGIC_64' undeclared (first use in this   function)
macosx/macosx-nat-dyld.c:369: error: (Each undeclared identifier is reported onl  y once
macosx/macosx-nat-dyld.c:369: error: for each function it appears in.)
macosx/macosx-nat-dyld.c:369: error: `MH_CIGAM_64' undeclared (first use in this   function)
macosx/macosx-nat-dyld.c: In function `macosx_dyld_init':
macosx/macosx-nat-dyld.c:613: error: `CPU_TYPE_POWERPC64' undeclared (first use   in this function)
macosx/macosx-nat-dyld.c: In function `dyld_info_process_raw':
macosx/macosx-nat-dyld.c:1003: warning: unsigned int format, long unsigned int a  rg (arg 3)
macosx/macosx-nat-dyld.c:1077: error: invalid application of `sizeof' to an inco  mplete type
macosx/macosx-nat-dyld.c:1093: error: `LC_SEGMENT_64' undeclared (first use in t  his function)
macosx/macosx-nat-dyld.c:1095: error: storage size of `segcmd' isn't known
macosx/macosx-nat-dyld.c:1097: error: invalid application of `sizeof' to an inco  mplete type
macosx/macosx-nat-dyld.c:1095: warning: unused variable `segcmd'
macosx/macosx-nat-dyld.c:1151: warning: unsigned int format, long unsigned int a  rg (arg 6)
macosx/macosx-nat-dyld.c: In function `info_sharedlibrary_raw_dyld_command':
macosx/macosx-nat-dyld.c:1979: warning: unused variable `task'
make[1]: *** [macosx-nat-dyld.o] Error 1
make: *** [all-gdb] Error 2
iMacG3:~/devel/mac/proj/gdb-434/src pecan$

--- End code ---

afb:

--- Quote from: Pecan on May 18, 2006, 10:51:14 pm ---gdb 6.3 (apple gdb-434) gets the following errors. I've no idea what the errs mean.

--- End quote ---

As far as I can tell it says that you are missing support for PPC64 targets...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version