From patchwork Thu Oct 13 15:42:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ken Werner X-Patchwork-Id: 4662 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id A1E4123DEF for ; Thu, 13 Oct 2011 15:46:09 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id 976C1A18638 for ; Thu, 13 Oct 2011 15:46:09 +0000 (UTC) Received: by eyg5 with SMTP id 5so221561eyg.11 for ; Thu, 13 Oct 2011 08:46:09 -0700 (PDT) Received: by 10.223.85.139 with SMTP id o11mr6952067fal.0.1318520769004; Thu, 13 Oct 2011 08:46:09 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.24.41 with SMTP id r9cs265812laf; Thu, 13 Oct 2011 08:46:08 -0700 (PDT) Received: by 10.216.14.91 with SMTP id c69mr1400623wec.53.1318520529638; Thu, 13 Oct 2011 08:42:09 -0700 (PDT) Received: from mtagate1.uk.ibm.com (mtagate1.uk.ibm.com. [194.196.100.161]) by mx.google.com with ESMTPS id 3si3209032wbw.107.2011.10.13.08.42.09 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Oct 2011 08:42:09 -0700 (PDT) Received-SPF: neutral (google.com: 194.196.100.161 is neither permitted nor denied by best guess record for domain of ken.werner@linaro.org) client-ip=194.196.100.161; Authentication-Results: mx.google.com; spf=neutral (google.com: 194.196.100.161 is neither permitted nor denied by best guess record for domain of ken.werner@linaro.org) smtp.mail=ken.werner@linaro.org Received: from d06nrmr1707.portsmouth.uk.ibm.com (d06nrmr1707.portsmouth.uk.ibm.com [9.149.39.225]) by mtagate1.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p9DFg8gZ025031 for ; Thu, 13 Oct 2011 15:42:08 GMT Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p9DFg8061638432 for ; Thu, 13 Oct 2011 16:42:08 +0100 Received: from d06av06.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p9DMg82L017593 for ; Thu, 13 Oct 2011 16:42:08 -0600 Received: from localhost.localdomain (dyn-9-152-224-39.boeblingen.de.ibm.com [9.152.224.39]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p9DMg7Th017557; Thu, 13 Oct 2011 16:42:08 -0600 From: Ken Werner To: libunwind-devel@nongnu.org Subject: [PATCH 2/3] Exclude arm_find_proc_info and arm_put_unwind_info in case of UNW_REMOTE_ONLY Date: Thu, 13 Oct 2011 17:42:05 +0200 Message-Id: <1318520526-2874-3-git-send-email-ken.werner@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1318520526-2874-1-git-send-email-ken.werner@linaro.org> References: <1318520526-2874-1-git-send-email-ken.werner@linaro.org> Signed-off-by: Ken Werner --- src/arm/Gex_tables.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/arm/Gex_tables.c b/src/arm/Gex_tables.c index 70ab57c..4352b0b 100644 --- a/src/arm/Gex_tables.c +++ b/src/arm/Gex_tables.c @@ -453,6 +453,7 @@ tdep_search_unwind_table (unw_addr_space_t as, unw_word_t ip, return -UNW_ENOINFO; } +#ifndef UNW_REMOTE_ONLY /** * Callback to dl_iterate_phdr to find infos about the ARM exidx segment. */ @@ -564,4 +565,5 @@ arm_put_unwind_info (unw_addr_space_t as, unw_proc_info_t *proc_info, void *arg) { /* it's a no-op */ } +#endif /* !UNW_REMOTE_ONLY */