From patchwork Wed Mar 2 16:40:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ken Werner X-Patchwork-Id: 281 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:41:26 -0000 Delivered-To: patches@linaro.org Received: by 10.224.19.208 with SMTP id c16cs193814qab; Wed, 2 Mar 2011 08:40:15 -0800 (PST) Received: by 10.213.2.83 with SMTP id 19mr326911ebi.91.1299084014241; Wed, 02 Mar 2011 08:40:14 -0800 (PST) Received: from mtagate5.uk.ibm.com (mtagate5.uk.ibm.com [194.196.100.165]) by mx.google.com with ESMTPS id v45si324901eeh.14.2011.03.02.08.40.12 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 Mar 2011 08:40:13 -0800 (PST) Received-SPF: neutral (google.com: 194.196.100.165 is neither permitted nor denied by best guess record for domain of ken.werner@linaro.org) client-ip=194.196.100.165; Authentication-Results: mx.google.com; spf=neutral (google.com: 194.196.100.165 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 mtagate5.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p22GeCNg009455 for ; Wed, 2 Mar 2011 16:40:12 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p22GeOSd1777894 for ; Wed, 2 Mar 2011 16:40:24 GMT Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p22GeCk5000374 for ; Wed, 2 Mar 2011 09:40:12 -0700 Received: from localhost.localdomain (dyn-9-152-224-51.boeblingen.de.ibm.com [9.152.224.51]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p22GeA0N000307; Wed, 2 Mar 2011 09:40:12 -0700 From: Ken Werner To: libunwind-devel@nongnu.org Subject: [PATCH 4/5] Fix test-ptrace argument parsing. Date: Wed, 2 Mar 2011 17:40:09 +0100 Message-Id: <1299084010-8762-5-git-send-email-ken.werner@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1299084010-8762-1-git-send-email-ken.werner@linaro.org> References: <1299084010-8762-1-git-send-email-ken.werner@linaro.org> From: Zachary T Welch Avoids an endless loop when passing unknown options. Signed-off-by: Zachary T Welch Signed-off-by: Ken Werner --- tests/test-ptrace.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tests/test-ptrace.c b/tests/test-ptrace.c index b7de682..c9f8f2e 100644 --- a/tests/test-ptrace.c +++ b/tests/test-ptrace.c @@ -202,6 +202,8 @@ main (int argc, char **argv) else if (strcmp (argv[optind], "-n") == 0) /* Don't look-up and print symbol names. */ ++optind, print_names = 0; + else + fprintf(stderr, "unrecognized option: %s\n", argv[optind++]); } target_pid = fork ();