From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id 91E98385E014 for ; Mon, 23 Mar 2020 17:30:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 91E98385E014 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wm1-x331.google.com with SMTP id m3so431121wmi.0 for ; Mon, 23 Mar 2020 10:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=SGkeHsfeCpZMkLVhJLketbPUnJyJLHgtQAOVWgC4KiU=; b=XFYETygI2vUPKRDK+HCzXyFwlScYAIwlptveoglILM/s1UZjCfe/nMMg5gGPsOp9xH Ht7fKK+kuOXQsOsOqf4XVI2gp3KvUh/3e2Bn9oewsl7cR8vyxc5UzWr+S4XFsPfo7JAu QP94NtblitqfkZOb81rRNCGfNdMHgZ5ZBeoGEe9eP3XE2IMFMxykOoW6Z4WwGgBr6X2e TGZ7MyPUHp+M1NToP0fKxUmQhnS+yVp+j9tU0aT6PGieNjfzuRJ6yvf3gargRbm7NiF3 i1CRuy5jGaqB+7/3sTiOraE/2ZlGtxFNMIaWdBDxOWJrbNDcSC+8Z8zl0bW9cvh+opA3 rV0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=SGkeHsfeCpZMkLVhJLketbPUnJyJLHgtQAOVWgC4KiU=; b=Az8kH1UbD+ay1gdUIYQOVQ6SN9a5p3dPqLYdU6H54DeWV72Mywlea+JQcZQ/QitX5j PCVgAAflDHnhuhdDT+N5zH16/+VmohzIu3vJdCaoV7JRtnKPCT2oYyfz1lpw8TA7ibWR x8PB4Zi66V7r1aW3Wl6LX387SzhPpgIS/zPn6I27RUWeH/hSqf+th90U+P4DMYgB+3Sk RglU1W+2+iTgg0XUsyKZiYx6ct98/YGq6dId7snLCfM9MfqQDDOPeAyQU5NE4BNojMkj hKXl8c9UYAN+fuslMYYF4KDZqQcvCL+Om8C4LEMVmvfqZOKMDni2WuYYzKNzpBaKjP8B 80cg== X-Gm-Message-State: ANhLgQ2cgh8yUPtpqO7rCN/IYM2DVjBlWnFrYUlIYWl1zAKxLqdS/dVP RnYoct/Qlo3MqaYqxr3/SWwntNVUsSI= X-Google-Smtp-Source: ADFU+vvP/HixgCUbOBc2Z4RDn+bfMD7p/lD7Whm4rkS9vwAUGit120eBEBHlxv8poMnYfVWRgmiBWw== X-Received: by 2002:a1c:195:: with SMTP id 143mr419347wmb.0.1584984625329; Mon, 23 Mar 2020 10:30:25 -0700 (PDT) Received: from localhost (host86-186-80-207.range86-186.btcentralplus.com. [86.186.80.207]) by smtp.gmail.com with ESMTPSA id h81sm331961wme.42.2020.03.23.10.30.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Mar 2020 10:30:24 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Bernd Edlinger , Tom Tromey , Andrew Burgess Subject: [PATCH 1/3] gdb/testsuite: Add compiler options parameter to function_range helper Date: Mon, 23 Mar 2020 17:30:17 +0000 Message-Id: <8727ee862873e94564075655c3b0c3e367fdc732.1584984383.git.andrew.burgess@embecosm.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: References: In-Reply-To: References: X-Spam-Status: No, score=-23.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2020 17:30:27 -0000 When using the Dejagnu DWARF compiler tests will often use the function_range helper function to extract the extents of a function. If the plan is to compiler the file with non-default compiler flags then we must pass those same compiler flags through to the function_range helper function. This will be used in a later commit, there should be no change in the testsuite behaviour after this commit. gdb/testsuite/ChangeLog: * lib/dwarf.exp (function_range): Allow compiler options to be specified. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/lib/dwarf.exp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp index 417b22d2345..4371b56d4de 100644 --- a/gdb/testsuite/lib/dwarf.exp +++ b/gdb/testsuite/lib/dwarf.exp @@ -114,12 +114,12 @@ proc build_executable_from_fission_assembler { testname executable sources optio # static void func (void) {} # -proc function_range { func src } { +proc function_range { func src {options {debug}} } { global decimal gdb_prompt set exe [standard_temp_file func_addr[pid].x] - gdb_compile $src $exe executable {debug} + gdb_compile $src $exe executable $options gdb_exit gdb_start -- 2.14.5