Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tobias Hahn <tobias.hahn@ableton.com>
To: gdb@sourceware.org
Subject: gdb-7.0 on osx
Date: Thu, 08 Oct 2009 15:57:00 -0000	[thread overview]
Message-ID: <847995BD-73DF-46CD-AFDE-25AB8A5A6E6D@ableton.com> (raw)

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





             reply	other threads:[~2009-10-08 15:57 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-08 15:57 Tobias Hahn [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=847995BD-73DF-46CD-AFDE-25AB8A5A6E6D@ableton.com \
    --to=tobias.hahn@ableton.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox