Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb-7.0 on osx
@ 2009-10-08 15:57 Tobias Hahn
  2009-10-08 16:02 ` Tristan Gingold
  2009-10-09  8:40 ` -Wformat and the like (was: gdb-7.0 on osx) Tobias Hahn
  0 siblings, 2 replies; 21+ messages in thread
From: Tobias Hahn @ 2009-10-08 15:57 UTC (permalink / raw)
  To: gdb

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





^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2009-10-15  9:42 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-08 15:57 gdb-7.0 on osx Tobias Hahn
2009-10-08 16:02 ` Tristan Gingold
2009-10-08 16:56   ` Tobias Hahn
2009-10-09  7:55     ` Tristan Gingold
2009-10-09  9:39       ` Tobias Hahn
2009-10-09 13:05         ` Tristan Gingold
2009-10-09  8:04     ` Tristan Gingold
2009-10-09 12:56       ` Jack Howarth
2009-10-09 13:05         ` Tristan Gingold
2009-10-09  8:40 ` -Wformat and the like (was: gdb-7.0 on osx) Tobias Hahn
2009-10-09  8:53   ` Tobias Hahn
2009-10-09 17:51   ` -Wformat and the like Tom Tromey
2009-10-09 18:28     ` Stan Shebs
2009-10-09 18:44       ` Pedro Alves
2009-10-09 19:38         ` Tobias Hahn
2009-10-09 19:50           ` Daniel Jacobowitz
     [not found]         ` <02C5402A-7B26-4A21-91C2-549917DA523E@ableton.com>
2009-10-09 19:55           ` Pedro Alves
2009-10-12  9:51             ` Tristan Gingold
2009-10-12 14:32               ` Pedro Alves
2009-10-15 13:27                 ` Tristan Gingold
2009-10-09 20:27       ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox