From patchwork Thu Oct 11 04:53:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Holsgrove X-Patchwork-Id: 190791 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 14A5F2C008B for ; Thu, 11 Oct 2012 15:55:13 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sourceware.org; s=default; x=1350536114; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Content-Type:MIME-Version:Content-Transfer-Encoding: Subject:Message-Id:In-Reply-To:References:User-Agent:Date:From: To:Cc:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Subscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=pyKEU8WE4Iuif3YEIhaOm2fWgoc=; b=gZszr8fd86JVRwF vV3kNaCNSDNyilP7Z0X/yzukBYrcsMNRGRiSHGhWVEPAody0bjhbhjbJ00Z9f+HW GMz+0jqmH9C2UGZRCZ/2VfPPQq5AVVyKxq0XTgUofqlJYpjv7r2x7gROVGAzjh0S kHPmp47d4at6up9NvEFjoBoGLnF8= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=sourceware.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Google-DKIM-Signature:Received:Received:Content-Type:MIME-Version:Content-Transfer-Encoding:Subject:X-Mercurial-Node:Message-Id:In-Reply-To:References:User-Agent:Date:From:To:Cc:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=UTnZGM9KnFXQuMNgUF7SEjksQcdr4BHIYdXrTPOKx92bbmI+5Od6nujd7OQb0i 6ufByeiMsbVA0QSHKRqdA6rzNMVhTI7pQB0QKTlk4ASHCjFm9LFAYd+2Hi0AIQES ADKtznjImuDLClFqF/4iGt4CmpHdL2vJnXEWkNZwUaTSs=; Received: (qmail 2735 invoked by alias); 11 Oct 2012 04:54:09 -0000 Received: (qmail 2607 invoked by uid 22791); 11 Oct 2012 04:54:06 -0000 X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_THREADED, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pb0-f41.google.com (HELO mail-pb0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Oct 2012 04:53:55 +0000 Received: by mail-pb0-f41.google.com with SMTP id rq2so1590042pbb.0 for ; Wed, 10 Oct 2012 21:53:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:content-type:mime-version:content-transfer-encoding:subject :x-mercurial-node:message-id:in-reply-to:references:user-agent:date :from:to:cc:x-gm-message-state; bh=RD44mB3eqD/Le7Df/9nQWoRIglR1wgrlLnlT5iequL8=; b=V9DFUKdqewmARG9wivjcdEQ5RXxVKn6U0OG0LGW3MGRIl4EOKXqrN1g1eKco7MlJcW R6Hw3JzT9MJpAAKWTn9+pdm3BYFMgYMnJ4bQiw4RYUgcn4Q8WXAs/MN6bqMm0ygjPCa1 hg39jMIb1T+W1tGucuDQ4lstNQLiCldd3ZL4LkqeSvJwCptzy1jCmj8Uuiy6RNpFPylW F9ii8shclDI00wwcxdflaT+y7+Pz4mwRj/9mSjErFbJeNd/nOXY8Xw/LBQabkoT6If2g dAZujMVKks5lbZ+ZGUpJYeLghTfJlg2N7rw97Q34dv91V5Sp+pYGIFI/zdcHr2vAEY4E f5DA== Received: by 10.68.203.164 with SMTP id kr4mr208040pbc.46.1349931235547; Wed, 10 Oct 2012 21:53:55 -0700 (PDT) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id tw2sm924890pbc.34.2012.10.10.21.53.53 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Oct 2012 21:53:54 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 08 of 13] debug/gdb: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustom X-Mercurial-Node: 9ea1b5021fc77582867f74454cd2811f008109ee Message-Id: <9ea1b5021fc77582867f.1349931197@localhost.localdomain> In-Reply-To: References: User-Agent: Mercurial-patchbomb/2.3.1 Date: Thu, 11 Oct 2012 14:53:17 +1000 From: David Holsgrove To: yann.morin.1998@free.fr Cc: crossgcc@sourceware.org X-Gm-Message-State: ALoCoQnMHVckG7YjKO2L/rhpvyb/UVm8ruikKg6NdH+TayggDFh/rdvK1ps4R6JOYPvSZIPffJIs X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org # HG changeset patch # User David Holsgrove # Date 1349930382 -36000 # Node ID 9ea1b5021fc77582867f74454cd2811f008109ee # Parent 288db3721a37844defa55bb6f588c8f7a1ac3dae debug/gdb: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustom CUSTOM_LOCATION config options only presented in menuconfig if component CUSTOM version selected. Signed-off-by: "David Holsgrove" --- For unsubscribe information see http://sourceware.org/lists.html#faq diff -r 288db3721a37 -r 9ea1b5021fc7 config/debug/gdb.in --- a/config/debug/gdb.in Thu Oct 11 14:39:42 2012 +1000 +++ b/config/debug/gdb.in Thu Oct 11 14:39:42 2012 +1000 @@ -119,6 +119,13 @@ bool prompt "6.8a" +config GDB_CUSTOM + bool + prompt "Custom gdb" + depends on EXPERIMENTAL + select GDB_7_0_or_later + select GDB_7_2_or_later + endchoice config GDB_7_2_or_later @@ -152,5 +159,19 @@ default "7.0.1a" if GDB_V_7_0_1a default "7.0a" if GDB_V_7_0a default "6.8a" if GDB_V_6_8a + default "custom" if GDB_CUSTOM + +if GDB_CUSTOM + +config GDB_CUSTOM_LOCATION + string + prompt "Full path to custom gdb source" + default "" + help + Enter the path to the directory (or tarball) of your source for gdb, + or leave blank to use default CT_CUSTOM_LOCATION_ROOT_DIR/gdb + +endif # GDB_CUSTOM endif + diff -r 288db3721a37 -r 9ea1b5021fc7 scripts/build/debug/300-gdb.sh --- a/scripts/build/debug/300-gdb.sh Thu Oct 11 14:39:42 2012 +1000 +++ b/scripts/build/debug/300-gdb.sh Thu Oct 11 14:39:42 2012 +1000 @@ -48,10 +48,14 @@ do_debug_gdb_parts if [ "${do_gdb}" = "y" ]; then - CT_GetFile "gdb-${CT_GDB_VERSION}" \ - {ftp,http}://ftp.gnu.org/pub/gnu/gdb \ - ftp://sources.redhat.com/pub/gdb/{,old-}releases \ - "${linaro_base_url}/${linaro_series}/${linaro_version}/+download" + if [ "${CT_GDB_CUSTOM}" = "y" ]; then + CT_GetCustom "gdb" "${CT_GDB_VERSION}" "${CT_GDB_CUSTOM_LOCATION}" + else + CT_GetFile "gdb-${CT_GDB_VERSION}" \ + {ftp,http}://ftp.gnu.org/pub/gnu/gdb \ + ftp://sources.redhat.com/pub/gdb/{,old-}releases \ + "${linaro_base_url}/${linaro_series}/${linaro_version}/+download" + fi fi if [ "${do_ncurses}" = "y" ]; then @@ -70,7 +74,10 @@ do_debug_gdb_parts if [ "${do_gdb}" = "y" ]; then - CT_Extract "gdb-${CT_GDB_VERSION}" + if [ "${CT_GDB_CUSTOM}" != "y" \ + -o ! -d "${CT_SRC_DIR}/gdb-${CT_GDB_VERSION}" ]; then + CT_Extract "gdb-${CT_GDB_VERSION}" + fi CT_Patch "gdb" "${CT_GDB_VERSION}" fi