From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120091 invoked by alias); 18 Sep 2015 12:02:51 -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 120076 invoked by uid 89); 18 Sep 2015 12:02:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 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; Fri, 18 Sep 2015 12:02:49 +0000 Received: from EUSAAHC004.ericsson.se (Unknown_Domain [147.117.188.84]) by usevmg20.ericsson.net (Symantec Mail Security) with SMTP id 8E.48.32596.28E9BF55; Fri, 18 Sep 2015 07:17:54 +0200 (CEST) Received: from elxa4wqvvz1.dyn.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.84) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 18 Sep 2015 08:02:46 -0400 From: Antoine Tremblay To: Subject: [PATCH 0/5] Software breakpoints support for ARM linux. Date: Fri, 18 Sep 2015 12:02:00 -0000 Message-ID: <1442577749-6650-1-git-send-email-antoine.tremblay@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg00448.txt.bz2 This patch series adds software breakpoint support for ARM on linux. This is a subset of a previous patchset : https://sourceware.org/ml/gdb-patches/2015-09/msg00221.html Other patches in that previous patchset will be sent after. The problematic with ARM software breakpoints is that it can have 3 different breakpoints one for each instruction set : arm, thumb, thumb2. In order to allow that the patches : "Support multiple breakpoint types per target in GDBServer." and "Make breakpoint and breakpoint_len local variables in GDBServer." Allow multiple breakpoints types to be used based on a target specific function given the current PC. The ARM implementation of this function is handled by the next patch : "Add support for ARM breakpoint types in GDBServer." Also as software breakpoints can have a arch specific encoded length called the breakpoint kind like it is the case for ARM, GDBServer needs to take this into account when inserting/removing or reinserting a breakpoint this is handled by : "Handle breakpoint kinds for software breakpoints in GDBServer." And finally software breakpoints via Z0 packets are enabled for ARM in : "Support software breakpoints for ARM on linux." This patchset has no 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 breakpoints was done for thumv1 instructions.