This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
gdb-7.0 on osx
- From: Tobias Hahn <tobias dot hahn at ableton dot com>
- To: gdb at sourceware dot org
- Date: Thu, 8 Oct 2009 17:57:13 +0200
- Subject: gdb-7.0 on osx
Hi all,
I cannot get gdb-7.0 to debug my executables under 10.6. I have built
it using
$ ../gdb-7.0/configure --build=x86_64-apple-darwin10 CFLAGS="-g -O2 -
Wno-format"
$ make
$ codesign -s gdb-sign gdb/gdb
(The certificate gdb-sign is in the System keychain and is valid for
codesigning.)
When I try to debug an exe, it first gives me an error about no
debugging symbols found (even though I have compiled them in with -g):
(gdb) file /tmp/t/t
Reading symbols from /private/tmp/t/t...(no debugging symbols
found)...done.
Trying to run the program fails:
(gdb) run
Starting program: /private/tmp/t/t
Unable to find Mach task port for process-id 10609: (os/kern) failure
(0x5).
(please check gdb is codesigned - see taskgated(8))
I suspect I might need to sign gdb differently (since using sudo gdb
works). Can anyone help me here?
Thanks in advance,
Best,
Tobias
Ableton AG, Sitz Berlin, Amtsgericht Berlin-Charlottenburg, HRB 72838
Vorstand: Gerhard Behles, Jan Bohl, Bernd Roggendorf
Vorsitzender des Aufsichtsrats: Uwe Struck