c - Gdbserver for Snow Leopard? -


so have source gdb-1515. i'm using xcode 3.2.6 command line tools on snow leopard (and gdb source source of gdb included in them).

trying run (inside /private/var/root/downloads/gdb-1515/src/gdb/gdbserver):

gcc -i. -i. -i./../regformats -i./../macosx -i./../../include -i../../bfd -i./../../bfd -i/private/var/root/downloads/gdb-1515/src/bfd ./../macosx/macosx-nat.c 

fails with:

./../macosx/macosx-nat.c:34:17: error: bfd.h: no such file or directory ./../macosx/macosx-nat.c:35:18: error: defs.h: no such file or directory ./../macosx/macosx-nat.c:36:21: error: gdbcore.h: no such file or directory ./../macosx/macosx-nat.c:37:20: error: serial.h: no such file or directory ./../macosx/macosx-nat.c:38:22: error: ser-base.h: no such file or directory ./../macosx/macosx-nat.c:39:22: error: ser-unix.h: no such file or directory ./../macosx/macosx-nat.c:40:22: error: inferior.h: no such file or directory ./../macosx/macosx-nat.c:41:23: error: objc-lang.h: no such file or directory ./../macosx/macosx-nat.c:42:21: error: infcall.h: no such file or directory in file included ./../macosx/macosx-nat-dyld.h:5, 

etc.

thing there no bfd.h anywhere inside gdb-1515 folder.

find /private/var/root/downloads/gdb-1515 -name bfd.h 

returns no output.

i want call attach_to_classic_process (defined inside macosx/macosx-nat.c) gdbserver/macosx_low.c:476 instead of ptrace - that's why i'm trying build macosx/macosx-nat.c gdbserver directory.

currently @ place it's used ptrace fails rosetta processes.

ok want debug classic (rosetta) process running on snow leopard using remote gdb connection. should obvious cause after rosetta applications using remote connection debugging anyway. additionally gdb application can connect mentioned powerpc applications. i'm trying compile gdbserver apple source aids - seems way gdbserver included in packages fundamentally wrong since original gdb using special functions establish connection classic process while gdbserver trying use ptrace fails. thing comes mind why hell gdbserver has retardedly complicated - why isn't directly co-operating functional gdb command line application (maybe wrapper of sorts)?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -