From patchwork Mon Mar 9 14:09:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 5531 Received: (qmail 116769 invoked by alias); 9 Mar 2015 14:10:07 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 116748 invoked by uid 89); 9 Mar 2015 14:10:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, KAM_FROM_URIBL_PCCC, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-pd0-f170.google.com Received: from mail-pd0-f170.google.com (HELO mail-pd0-f170.google.com) (209.85.192.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 09 Mar 2015 14:10:04 +0000 Received: by pdno5 with SMTP id o5so21091182pdn.1 for ; Mon, 09 Mar 2015 07:10:02 -0700 (PDT) X-Received: by 10.66.218.10 with SMTP id pc10mr54102441pac.116.1425910202395; Mon, 09 Mar 2015 07:10:02 -0700 (PDT) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by mx.google.com with ESMTPSA id dp4sm19457726pdb.66.2015.03.09.07.09.59 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 09 Mar 2015 07:10:01 -0700 (PDT) From: Yao Qi To: Sergio Durigan Junior Cc: Pedro Alves , Yao Qi , gdb-patches@sourceware.org Subject: Re: [RFC] Support command "catch syscall" properly on different targets References: <1425047015-1906-1-git-send-email-qiyaoltc@gmail.com> <877fv3kqx1.fsf@redhat.com> <86lhjei8md.fsf@gmail.com> <54F5A90E.8050704@redhat.com> <87bnkaklbe.fsf@redhat.com> Date: Mon, 09 Mar 2015 14:09:56 +0000 In-Reply-To: <87bnkaklbe.fsf@redhat.com> (Sergio Durigan Junior's message of "Tue, 03 Mar 2015 13:06:13 -0500") Message-ID: <86zj7mgt3f.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-IsSubscribed: yes Sergio Durigan Junior writes: > I remember seeing TARGET_WAITKIND_SYSCALL_{ENTRY,RETURN} when > implementing "catch syscall", and I even remember making a decision to > use them instead of creating other TARGET_WAITKIND's. However, the > "catch syscall" itself doesn't work on HP-UX. > > Anyway, I just raised this point because we shouldn't "return 1" when > asked if inf-ttrace.c supports "catch syscall". So let's skip catch-syscall.exp on HP-UX target. diff --git a/gdb/testsuite/gdb.base/catch-syscall.exp b/gdb/testsuite/gdb.base/catch-syscall.exp index 498ae36..b8cc169 100644 --- a/gdb/testsuite/gdb.base/catch-syscall.exp +++ b/gdb/testsuite/gdb.base/catch-syscall.exp @@ -29,7 +29,7 @@ if { ![istarget "x86_64-*-linux*"] && ![istarget "i\[34567\]86-*-linux*"] && ![istarget "powerpc-*-linux*"] && ![istarget "powerpc64-*-linux*"] && ![istarget "sparc-*-linux*"] && ![istarget "sparc64-*-linux*"] && ![istarget "mips*-linux*"] && ![istarget "arm*-linux*"] - && ![istarget "s390*-linux*"] && ![istarget "hppa*-hp-hpux*"] } { + && ![istarget "s390*-linux*"] } { continue }