From patchwork Mon Mar 17 13:08:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tristan Gingold X-Patchwork-Id: 111 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx23.g.dreamhost.com (caibbdcaabja.dreamhost.com [208.113.200.190]) by wilcox.dreamhost.com (Postfix) with ESMTP id CB2443600BE for ; Mon, 17 Mar 2014 06:08:55 -0700 (PDT) Received: by homiemail-mx23.g.dreamhost.com (Postfix, from userid 14314964) id 6AAF061C49120; Mon, 17 Mar 2014 06:08:55 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx23.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx23.g.dreamhost.com (Postfix) with ESMTPS id 383EA61C28C42 for ; Mon, 17 Mar 2014 06:08:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:content-type:content-transfer-encoding :subject:message-id:date:to:mime-version; q=dns; s=default; b=tL 0JNtpiYCNYA1VbxvfWJptPbLVXKC3gSmJp2UA51wTW1e0K8O6avoINwU+Luv9p6W Ye+QLwlbbqyPRgA/OiFWgIG5I/l+GKMSmgpsrulYf6bbQoSSUAb8Uhjja0GVcdr6 3GCbP51jfhWUdHNymJwfEnvj7bE8Ked9yj99DBv68= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:content-type:content-transfer-encoding :subject:message-id:date:to:mime-version; s=default; bh=yXKOfiZ8 E6Anvkzeg2Jhd1IAc94=; b=JP8UTY36kL81PyOkiJAhdOC7MIPpwnx3npFSvRZG S925znz79dKiN7afi6gfwvVqbrkYcPhSBJmsTMXKNDgzqZmZvGgMWabE7b5qdhAD vxIYlZU6yma7z1r/BRTJa/ofJuSZGN4YOwUV+gAr2hlIERmvrlYm1Ux0zYMzhv5d aF8= Received: (qmail 22418 invoked by alias); 17 Mar 2014 13:08:53 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 22407 invoked by uid 89); 17 Mar 2014 13:08:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 17 Mar 2014 13:08:51 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 74DE42705215 for ; Mon, 17 Mar 2014 14:08:48 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3Zb2wsBU0T5b for ; Mon, 17 Mar 2014 14:08:48 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 5DDC62705177 for ; Mon, 17 Mar 2014 14:08:48 +0100 (CET) From: Tristan Gingold Subject: darwin: support recent versions of dyld Message-Id: <3297B262-2426-45AB-B26D-FE62E115615D@adacore.com> Date: Mon, 17 Mar 2014 14:08:47 +0100 To: " ml" Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) X-IsSubscribed: yes X-DH-Original-To: gdb@patchwork.siddhesh.in Hi, this patchlet increases DYLD_VERSION_MAX to support the most recent version of dyld (dynamic linker). Also, a warning is now emitted if dyld version isn't supported. Committed on trunk. Tristan. gdb/ * solib-darwin.c (DYLD_VERSION_MAX): Increase value. (darwin_solib_create_inferior_hook): Emit a warning if version is unhandled. diff --git a/gdb/solib-darwin.c b/gdb/solib-darwin.c index e8d4667..a9989ea 100644 --- a/gdb/solib-darwin.c +++ b/gdb/solib-darwin.c @@ -70,7 +70,7 @@ struct gdb_dyld_all_image_infos /* Current all_image_infos version. */ #define DYLD_VERSION_MIN 1 -#define DYLD_VERSION_MAX 12 +#define DYLD_VERSION_MAX 14 /* Per PSPACE specific data. */ struct darwin_info @@ -513,7 +513,10 @@ darwin_solib_create_inferior_hook (int from_tty) darwin_load_image_infos (info); if (!darwin_dyld_version_ok (info)) - return; + { + warning (_("unhandled dyld version (%d)"), info->all_image.version); + return; + } create_solib_event_breakpoint (target_gdbarch (), info->all_image.notifier);