From patchwork Thu Apr 21 15:52:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ken Werner X-Patchwork-Id: 1144 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:49:38 -0000 Delivered-To: patches@linaro.org Received: by 10.224.67.148 with SMTP id r20cs169679qai; Thu, 21 Apr 2011 08:53:04 -0700 (PDT) Received: by 10.216.54.134 with SMTP id i6mr89205wec.75.1303401182933; Thu, 21 Apr 2011 08:53:02 -0700 (PDT) Received: from mtagate2.uk.ibm.com (mtagate2.uk.ibm.com [194.196.100.162]) by mx.google.com with ESMTPS id k58si4445453wej.126.2011.04.21.08.53.02 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Apr 2011 08:53:02 -0700 (PDT) Received-SPF: neutral (google.com: 194.196.100.162 is neither permitted nor denied by best guess record for domain of ken.werner@linaro.org) client-ip=194.196.100.162; Authentication-Results: mx.google.com; spf=neutral (google.com: 194.196.100.162 is neither permitted nor denied by best guess record for domain of ken.werner@linaro.org) smtp.mail=ken.werner@linaro.org Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p3LFqsEI017906 for ; Thu, 21 Apr 2011 15:52:54 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p3LFrqcu1777872 for ; Thu, 21 Apr 2011 16:53:52 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p3LFqsEs019610 for ; Thu, 21 Apr 2011 09:52:54 -0600 Received: from localhost.localdomain (dyn-9-152-224-51.boeblingen.de.ibm.com [9.152.224.51]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p3LFqrog019567; Thu, 21 Apr 2011 09:52:53 -0600 From: Ken Werner To: libunwind-devel@nongnu.org Subject: [PATCH 2/5] ARM: tests/Gtest-trace.c - IP printing Date: Thu, 21 Apr 2011 17:52:39 +0200 Message-Id: <1303401162-14277-3-git-send-email-ken.werner@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1303401162-14277-1-git-send-email-ken.werner@linaro.org> References: <1303401162-14277-1-git-send-email-ken.werner@linaro.org> Print the instruction pointer on ARM as well. Signed-off-by: Ken Werner --- tests/Gtest-trace.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tests/Gtest-trace.c b/tests/Gtest-trace.c index 311848f..b4c0bfc 100644 --- a/tests/Gtest-trace.c +++ b/tests/Gtest-trace.c @@ -211,6 +211,8 @@ sighandler (int signal, void *siginfo, void *context) #elif defined __FreeBSD__ printf (" @ %lx", (unsigned long) uc->uc_mcontext.mc_rip); #endif +#elif defined UNW_TARGET_ARM + printf (" @ %lx", (unsigned long) uc->uc_mcontext.arm_ip); #endif printf ("\n"); }