From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28848 invoked by alias); 8 Oct 2009 15:57:23 -0000 Received: (qmail 28839 invoked by uid 22791); 8 Oct 2009 15:57:22 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.ableton.net (HELO mail.ableton.net) (62.96.12.115) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Oct 2009 15:57:16 +0000 Received: from client2027.office.ableton.com ([10.1.15.78]) by mail.ableton.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1MvvMg-0007Ye-HK for gdb@sourceware.org; Thu, 08 Oct 2009 17:57:14 +0200 From: Tobias Hahn Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Subject: gdb-7.0 on osx Date: Thu, 08 Oct 2009 15:57:00 -0000 Message-Id: <847995BD-73DF-46CD-AFDE-25AB8A5A6E6D@ableton.com> To: gdb@sourceware.org Mime-Version: 1.0 (Apple Message framework v1076) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00162.txt.bz2 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