From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46311 invoked by alias); 14 Nov 2016 17:43:09 -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 46288 invoked by uid 89); 14 Nov 2016 17:43:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=moxie, 1.9.1, ppctdeph, UD:mips-tdep.h X-HELO: mail-pg0-f66.google.com Received: from mail-pg0-f66.google.com (HELO mail-pg0-f66.google.com) (74.125.83.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 14 Nov 2016 17:42:58 +0000 Received: by mail-pg0-f66.google.com with SMTP id e9so9127587pgc.1 for ; Mon, 14 Nov 2016 09:42:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=IN4Tv40+CpUhDBogWlN85mfxcs66NcJP948PkK45EyU=; b=HfibnLRQcDd0cvrXIaOfmsn3U0C8mAqDE7OXQ1bc8H9uG4SFMsHN1D0PJWouCVyN9A IHwMzCQvvRh8oKS7RZgyLRbeNxbKC4hDwOAUCN28XLxUdrZpDvncR2ApkWwVc7mVhIXA XMvmgJ8BA92a5PiRPVrmofUxrKGR28NNKd4PVJSNWSh53fN5+3MjFrC976owc/QFsydg oKrKGhEPB10/5ml0KafPibMN0NfUaFm/HZYXEWPCezWB5bhL2tstYmqLPXhdObrc9Xy8 4My4i87wbvHKQDieK6AFgjPk/tI4fSdbyTz/+eCXr/kbKI3MvqyjwhaI3d52Mx/q56T9 ychg== X-Gm-Message-State: ABUngvcKCPlhK5/Dg2YnceLnF14VPVfGoIyNr+1tlKpv+/20a8u855zEHv0W7f5Occ9DBQ== X-Received: by 10.99.56.82 with SMTP id h18mr69645785pgn.55.1479145377037; Mon, 14 Nov 2016 09:42:57 -0800 (PST) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id y29sm36696024pfd.63.2016.11.14.09.42.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Nov 2016 09:42:56 -0800 (PST) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH 00/13] Change gdbarch software_single_step frame_info to regcache Date: Mon, 14 Nov 2016 17:43:00 -0000 Message-Id: <1479145370-11432-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00345.txt.bz2 Hi, We use regcache for arm software single step after we shared arm software single step code in both GDB and GDBserver. This patch series converts the rest arches to using regcache instead of frame_info, because we always do single step in innermost frame, which is equivalent to regcache. Patch #1 adds regcache_raw_get_signed, which is used the in following patches as an replacement to get_frame_register_signed. The following 11 patches convert each arch one by one to using regcache. Each patch does the following changes, - use current regcache, and stop using frame, - replace get_frame_register_{un,}signed with regcache_raw_get_{un,}signed, - get gdbarch from get_regcache_arch instead of get_frame_arch, - get pc from regcache_read_pc instead of get_frame_pc, - still current frame some places in order to get the next pc of syscall, The last patch change the software_single_step interface finally. Regression tested on x86_64-linux and ppc64-linux. If people want to test on their own arch, just need to apply patch #1, patch for the arch, and the last one. *** BLURB HERE *** Yao Qi (13): New regcache_raw_get_signed gdbarch software_single_step frame_info to regcache: aarch64 gdbarch software_single_step frame_info to regcache: alpha gdbarch software_single_step frame_info to regcache: cris gdbarch software_single_step frame_info to regcache: mips gdbarch software_single_step frame_info to regcache: moxie gdbarch software_single_step frame_info to regcache: nios2 gdbarch software_single_step frame_info to regcache: sparc gdbarch software_single_step frame_info to regcache: s390 gdbarch software_single_step frame_info to regcache: rs6000 gdbarch software_single_step frame_info to regcache: tic6x gdbarch software_single_step frame_info to regcache: spu Change gdbarch software_single_step frame_info to regcache gdb/aarch64-tdep.c | 6 +-- gdb/alpha-tdep.c | 22 ++++---- gdb/alpha-tdep.h | 2 +- gdb/arm-linux-tdep.c | 3 +- gdb/arm-tdep.c | 3 +- gdb/arm-tdep.h | 2 +- gdb/breakpoint.c | 5 +- gdb/cris-tdep.c | 14 ++--- gdb/gdbarch.c | 4 +- gdb/gdbarch.h | 4 +- gdb/gdbarch.sh | 2 +- gdb/mips-tdep.c | 141 +++++++++++++++++++++++++------------------------- gdb/mips-tdep.h | 2 +- gdb/moxie-tdep.c | 7 ++- gdb/nios2-tdep.c | 26 +++++----- gdb/ppc-tdep.h | 2 +- gdb/regcache.c | 13 +++++ gdb/regcache.h | 3 ++ gdb/rs6000-aix-tdep.c | 35 +++++++------ gdb/rs6000-tdep.c | 7 ++- gdb/s390-linux-tdep.c | 7 ++- gdb/sparc-tdep.c | 18 ++++--- gdb/spu-tdep.c | 10 ++-- gdb/tic6x-tdep.c | 24 ++++----- 24 files changed, 190 insertions(+), 172 deletions(-) -- 1.9.1