From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97119 invoked by alias); 23 Nov 2015 14:14:11 -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 97084 invoked by uid 89); 23 Nov 2015 14:14:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: usevmg20.ericsson.net Received: from usevmg20.ericsson.net (HELO usevmg20.ericsson.net) (198.24.6.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 23 Nov 2015 14:14:09 +0000 Received: from EUSAAHC001.ericsson.se (Unknown_Domain [147.117.188.75]) by usevmg20.ericsson.net (Symantec Mail Security) with SMTP id 48.BA.03778.25DC2565; Mon, 23 Nov 2015 09:24:50 +0100 (CET) Received: from elxa4wqvvz1.dyn.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.75) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 23 Nov 2015 09:14:06 -0500 From: Antoine Tremblay To: Subject: [PATCH v3 0/10] Support software single step and conditional breakpoints on ARM in GDBServer. Date: Mon, 23 Nov 2015 14:14:00 -0000 Message-ID: <1448287968-12907-1-git-send-email-antoine.tremblay@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00466.txt.bz2 In this v3: * Refactored the get_next_pcs call in GDBServer as such : VEC (CORE_ADDR) *(*get_next_pcs) (CORE_ADDR pc, struct regcache *regcache); This allows the removal of the get_next_pcs base structure that was in common/get-next-pcs.h, in fact it removes the whole file. The common arm_get_next_pcs call has also been refactored the same way like so : VEC (CORE_ADDR) *arm_get_next_pcs (struct arm_get_next_pcs *self, CORE_ADDR pc); * Use ctor functions to construct gdb|gdbserver_get_next_pcs context. * Some style fixes. Patches 1 to 3: are OK already. Patch 4: Needs v3 review. Patch 5: is OK. Patch 6 to 8: Needs v3 review. Patch 9 and 10: are OK. ---- This patch series adds support for software single step and conditional breakpoints on ARM in GDBServer. Patches 1 and 2 fix general issues in the software single step control flow. Patches 3 to 5 Removes the too simple implementations of software single step that were in place and paves to way for full software single step to be implemented. Patches 6 and 7 Prepares the sharing of the software single step code for ARM in GDB with GDBServer. Patch 8 Implements the support for ARM software single step. Patch 9 Adds support for while-stepping actions. Patch 10 Adds supports for conditional breakpoints in GDBServer. This patchset has no observed regressions, tested on ubuntu 14.04 ARMv7 and x86. With gdbserver-{native,extended} / { -marm -mthumb } Note also that while I could not test directly thumbv1 instructions with gcc -marmv4t , manual testing of the software single step was done for thumv1 instructions.