From patchwork Thu Oct 13 15:42:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ken Werner X-Patchwork-Id: 4660 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 A7FC623DEF for ; Thu, 13 Oct 2011 15:42:26 +0000 (UTC) Received: from mail-gy0-f180.google.com (mail-gy0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 71526A18641 for ; Thu, 13 Oct 2011 15:42:26 +0000 (UTC) Received: by gyf1 with SMTP id 1so208414gyf.11 for ; Thu, 13 Oct 2011 08:42:26 -0700 (PDT) Received: by 10.223.17.3 with SMTP id q3mr6791462faa.28.1318520545639; Thu, 13 Oct 2011 08:42:25 -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 r9cs265686laf; Thu, 13 Oct 2011 08:42:25 -0700 (PDT) Received: by 10.213.17.131 with SMTP id s3mr37807eba.129.1318520529588; 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 m53si186226wed.143.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 d06nrmr1307.portsmouth.uk.ibm.com (d06nrmr1307.portsmouth.uk.ibm.com [9.149.38.129]) by mtagate1.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p9DFg84q025028 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 d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p9DFg8Jh2408588 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 p9DMg8wJ017605 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 p9DMg7Ti017557; Thu, 13 Oct 2011 16:42:08 -0600 From: Ken Werner To: libunwind-devel@nongnu.org Subject: [PATCH 3/3] Have tdep_get_elf_image available in case of UNW_REMOTE_ONLY Date: Thu, 13 Oct 2011 17:42:06 +0200 Message-Id: <1318520526-2874-4-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> Because it gets used by libunwind-ptrace. Signed-off-by: Ken Werner --- src/os-freebsd.c | 4 ---- src/os-hpux.c | 4 ---- src/os-linux.c | 4 ---- 3 files changed, 0 insertions(+), 12 deletions(-) diff --git a/src/os-freebsd.c b/src/os-freebsd.c index a315188..64fc933 100644 --- a/src/os-freebsd.c +++ b/src/os-freebsd.c @@ -22,8 +22,6 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef UNW_REMOTE_ONLY - #include #include #include @@ -97,5 +95,3 @@ tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip, free_mem(buf, len1); return (ret); } - -#endif /* UNW_REMOTE_ONLY */ diff --git a/src/os-hpux.c b/src/os-hpux.c index 1ba017f..11b1177 100644 --- a/src/os-hpux.c +++ b/src/os-hpux.c @@ -23,8 +23,6 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef UNW_REMOTE_ONLY - #include #include #include @@ -67,5 +65,3 @@ tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip, return elf_map_image (ei, path); } - -#endif /* UNW_REMOTE_ONLY */ diff --git a/src/os-linux.c b/src/os-linux.c index 791b27e..bcc4036 100644 --- a/src/os-linux.c +++ b/src/os-linux.c @@ -23,8 +23,6 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef UNW_REMOTE_ONLY - #include #include @@ -63,5 +61,3 @@ tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip, maps_close (&mi); return rc; } - -#endif /* UNW_REMOTE_ONLY */