From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28173 invoked by alias); 12 Aug 2015 00:15:48 -0000 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 Received: (qmail 28162 invoked by uid 89); 12 Aug 2015 00:15:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: ausxippc110.us.dell.com Received: from AUSXIPPC110.us.dell.com (HELO ausxippc110.us.dell.com) (143.166.85.200) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 12 Aug 2015 00:15:47 +0000 X-LoopCount0: from 10.175.216.251 From: To: Subject: GDB on Mac OS Date: Wed, 12 Aug 2015 00:15:00 -0000 Message-ID: <1739A299-ACE9-4D7F-A1DF-E64C89ECC8D1@dell.com> Content-Type: text/plain; charset="utf-8" Content-ID: <3D94BA32A5F92D43B8CA3ACA80A8CFBE@dell.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00013.txt.bz2 SSBqdXN0IHRlc3QgYnVpbGRzIG9mIHRoZSBjdXJyZW50IGdkYiAoR0lUIG1h c3Rlcikgb24gTWFjIE9TIDEwLjEwLjQuICBJIGJ1aWx0IGl0IHdpdGggdGhl IHN0b2NrIExMVk0sIHRoZW4gd2l0aCBHREIgNS4yLiAgQm90aCByZXF1aXJl IHRoZSBjb25maWd1cmUgc3dpdGNoIC0tZGlzYWJsZS1idWlsZC13YXJuaW5n cyBpbiBvcmRlciBmb3IgdGhpbmdzIHRvIGJ1aWxkICh0aGUgZGVmYXVsdCBi bG93cyB1cCB3aXRoIGNvbXBpbGVyIGVycm9yIG1lc3NhZ2VzKS4NCg0KSSB0 aGVuIHJhbiDigJxtYWtlIGNoZWNr4oCdIGluIHRoZSBnZGIgc3ViZGlyZWN0 b3J5LiAgVGhlIHJlc3VsdHMgd2VyZSBzbGlnaHRseSBkaWZmZXJlbnQgZm9y IHRoZSB0d28gYnVpbGRzLCBidXQgaW4gYm90aCBJIHNlZSBhYm91dCA1MDAw IHBhc3MgYW5kIGEgYml0IG92ZXIgNDAwMCBmYWlsLiAgVGhhdOKAmXMgYW4g YXdmdWxseSBoaWdoIGZhaWwgcGVyY2VudGFnZS4gIElzIHRoYXQgZXhwZWN0 ZWQ/ICBJcyBHREIgc3RpbGwgaW50ZW5kZWQgdG8gd29yayBvbiBNYWMgT1M/ ICBTaG91bGQgSSByZXBvcnQgZGV0YWlscyBvbiB0aGUgZmFpbHVyZXMsIGFu ZCBpZiBzbywgd2hhdCBzaG91bGQgSSByZXBvcnQgYW5kIHdoYXQgbG9ncyBh cmUgbmVlZGVkPw0KDQoJcGF1bA0K >From gdb-return-44590-listarch-gdb=sources.redhat.com@sourceware.org Wed Aug 12 03:12:14 2015 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 4580 invoked by alias); 12 Aug 2015 03:12:14 -0000 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 Delivered-To: mailing list gdb@sourceware.org Received: (qmail 4571 invoked by uid 89); 12 Aug 2015 03:12:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 12 Aug 2015 03:12:12 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id B52ED29010; Tue, 11 Aug 2015 23:12:10 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XQt8QhSW6fgW; Tue, 11 Aug 2015 23:12:10 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 8E7CB28DC4; Tue, 11 Aug 2015 23:12:10 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 07BBB46992; Tue, 11 Aug 2015 20:12:09 -0700 (PDT) Date: Wed, 12 Aug 2015 03:12:00 -0000 From: Joel Brobecker To: Paul_Koning@Dell.com Cc: gdb@sourceware.org Subject: Re: GDB on Mac OS Message-ID: <20150812031208.GJ22225@adacore.com> References: <1739A299-ACE9-4D7F-A1DF-E64C89ECC8D1@dell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1739A299-ACE9-4D7F-A1DF-E64C89ECC8D1@dell.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-08/txt/msg00014.txt.bz2 Content-length: 1405 > I just test builds of the current gdb (GIT master) on Mac OS 10.10.4. > I built it with the stock LLVM, then with GDB 5.2. Both require the > configure switch --disable-build-warnings in order for things to build > (the default blows up with compiler error messages). The fact that it has build warnings is not too surprising. Outside of GNU/Linux, I'm not sure it's building warning-free on any other host. Building with --disable-werror is how we do it. > I then ran “make check” in the gdb subdirectory. The results were > slightly different for the two builds, but in both I see about 5000 > pass and a bit over 4000 fail. That’s an awfully high fail > percentage. Is that expected? Is GDB still intended to work on Mac > OS? Should I report details on the failures, and if so, what should I > report and what logs are needed? It's working pretty well for us. Probably not perfect, but fairly well. A couple of things that come to mind: - I think we changed the default in AdaCore's compiler to build with -fno-common, although I'm not certain. You might want to try that and see if that brings you better results; - for actual debugging of a live inferior, the debugger needs to be codesigned - try with a simple example first to see if you can run a program and break somewhere. MacOS 10.10 seems very old, at this point. We test on 13.4 and 14.3. -- Joel