From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10530 invoked by alias); 26 Sep 2014 00:39:47 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 10517 invoked by uid 89); 26 Sep 2014 00:39:46 -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,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 26 Sep 2014 00:39:46 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8Q0diDS026892 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 25 Sep 2014 20:39:44 -0400 Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8Q0dgF8019425 for ; Thu, 25 Sep 2014 20:39:43 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/9] software single-step support rework, fix limitations Date: Fri, 26 Sep 2014 00:39:00 -0000 Message-Id: <1411691982-10744-1-git-send-email-palves@redhat.com> X-SW-Source: 2014-09/txt/msg00755.txt.bz2 This series reworks software single-step support. In a nutshell: - Makes single-step breakpoints regular breakpoints and puts them on the global location chain. - Makes the moribund location machinery aware of software single-step breakpoints. - Removes the currently limitation that only 2 single-step breakpoints can be inserted. Some archs, like PPC, need this. - Makes software single-step work when stepping through read-only code regions. - Adds support for having multiple threads software single-stepping simultaneously. Currently, in non-stop, all single-step requests are handled by displaced stepping the threads, which means threads are serialized, because only one thread can be displaced stepping at any given time. - Finally eliminates deprecated_insert_raw_breakpoint and friends. - Removes a set of run control globals along the way. - And cleans things up here and there. Tested on: - x86_64 Fedora 20 - x86_64 Fedora 20 w/ 'software single-step on x86' series - PPC64 Fedora 18 Pedro Alves (9): Decide whether we may have removed breakpoints based on step_over_info Rewrite non-continuable watchpoints handling Put single-step breakpoints on the bp_location chain Remove deprecated_insert_raw_breakpoint and friends Switch back to stepped thread: clear step-over info thread.c: cleanup breakpoint deletion infrun.c: add for_each_just_stopped_thread Make single-step breakpoints be per-thread Non-stop + software single-step archs: don't force displaced-stepping for all single-steps gdb/breakpoint.c | 402 +++++++++++++----------------------------------------- gdb/breakpoint.h | 31 ++--- gdb/gdbthread.h | 25 ++++ gdb/infrun.c | 360 ++++++++++++++++++++++-------------------------- gdb/infrun.h | 4 + gdb/record-full.c | 8 +- gdb/thread.c | 80 ++++++++--- 7 files changed, 364 insertions(+), 546 deletions(-) -- 1.9.3