From patchwork Fri Jul 31 11:41:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciro Santilli X-Patchwork-Id: 7951 Received: (qmail 117733 invoked by alias); 31 Jul 2015 11:41:43 -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 117711 invoked by uid 89); 31 Jul 2015 11:41:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f177.google.com Received: from mail-wi0-f177.google.com (HELO mail-wi0-f177.google.com) (209.85.212.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 31 Jul 2015 11:41:42 +0000 Received: by wicmv11 with SMTP id mv11so54843115wic.0 for ; Fri, 31 Jul 2015 04:41:39 -0700 (PDT) X-Received: by 10.180.105.98 with SMTP id gl2mr5723287wib.56.1438342898964; Fri, 31 Jul 2015 04:41:38 -0700 (PDT) Received: from [192.168.0.10] (87-231-132-129.rev.numericable.fr. [87.231.132.129]) by smtp.googlemail.com with ESMTPSA id fh3sm4059517wib.20.2015.07.31.04.41.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jul 2015 04:41:38 -0700 (PDT) Message-ID: <55BB5EF0.7040106@gmail.com> Date: Fri, 31 Jul 2015 13:41:36 +0200 From: Ciro Santilli User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Testsuite docs: explain ptrace_scope and core_pattern requirements. X-IsSubscribed: yes From 526bde3e1716a13406f9343ff6a788da9e553e6d Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Fri, 31 Jul 2015 10:05:53 +0200 Subject: [PATCH] Testsuite docs: explain ptrace_scope and core_pattern requirements. ptrace_scope can break all attach related tests. core_pattern can break bigcore.exp. 2015-07-31 Ciro Santilli gdb: PR testsuite/18067 PR testsuite/18704 * README (GDB Testsuite): Explain ptrace_scope and core_pattern. Make section more succinct. Remove broken Red Hat DejaGNU FTP link. --- gdb/README | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/gdb/README b/gdb/README index d485536..87a4a5f 100644 --- a/gdb/README +++ b/gdb/README @@ -595,15 +595,32 @@ think you will be ready to submit the patches. GDB Testsuite ============= - Included with the GDB distribution is a DejaGNU based testsuite -that can either be used to test your newly built GDB, or for -regression testing a GDB with local modifications. - - Running the testsuite requires the prior installation of DejaGNU, -which is generally available via ftp. The directory -ftp://sources.redhat.com/pub/dejagnu/ will contain a recent snapshot. -Once DejaGNU is installed, you can run the tests in one of the -following ways: +Requirements: + +* DejaGNU + +* Ability to attach to processes with the same UID. + + In Linux, you need either to ensure that ptrace is allowed with: + + echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope + + or sudo, which is a bad idea. + +* Ability to generate big sparse core files. + + In Linux, this is done by default, but it may be broken if your + distribution sets: + + /proc/sys/kernel/core_pattern + + to something starting with `|` to use a custom handler program. + + You can fix that with: + + echo | sudo tee /proc/sys/kernel/core_pattern + +Usage: (1) cd gdb-VERSION make check-gdb