From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66734 invoked by alias); 18 Aug 2015 15:53:26 -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 66724 invoked by uid 89); 18 Aug 2015 15:53:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f52.google.com Received: from mail-pa0-f52.google.com (HELO mail-pa0-f52.google.com) (209.85.220.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 18 Aug 2015 15:53:24 +0000 Received: by pacgr6 with SMTP id gr6so135468828pac.2 for ; Tue, 18 Aug 2015 08:53:23 -0700 (PDT) X-Received: by 10.68.135.66 with SMTP id pq2mr14691124pbb.29.1439913203050; Tue, 18 Aug 2015 08:53:23 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id fn15sm18590925pdb.50.2015.08.18.08.53.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Aug 2015 08:53:22 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH 00/13] [aarch64] Share more code between GDB and GDBserver Date: Tue, 18 Aug 2015 15:53:00 -0000 Message-Id: <1439913199-22882-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00470.txt.bz2 This patch series makes more aarch64-linux code shared between GDB and GDBserver. These shared code are about HW watchpoint handling and aarch64_linux_new_thread. The first several small patches make code in two sides identical, and then the following patches move them into nat/ directory. The while series is tested aarch64-linux. *** BLURB HERE *** Yao Qi (13): [gdbserver] Use iterate_over_lwps in aarch64_notify_debug_reg_change Re-indent the code Remove some comments in debug_reg_change_callback Get pid rather than lwpid Use phex debug_reg_change_callback Use debug_printf in debug_reg_change_callback Make aarch64_notify_debug_reg_change the same on GDB and GDBserver Make debug_reg_change_callback the same on GDB and GDBserver Move debug_reg_change_callback and aarch64_notify_debug_reg_change to nat/aarch64-linux-hw-point.c Add pid argument in aarch64_get_debug_reg_state Make aarch64_linux_prepare_to_resume the same on GDB and GDBserver Move aarch64_linux_prepare_to_resume to nat/aarch64-linux.c Move aarch64_linux_new_thread to nat/aarch64-linux.c gdb/Makefile.in | 6 +- gdb/aarch64-linux-nat.c | 144 +---------------------------- gdb/config/aarch64/linux.mh | 3 +- gdb/gdbserver/Makefile.in | 3 + gdb/gdbserver/configure.srv | 1 + gdb/gdbserver/linux-aarch64-low.c | 188 +++----------------------------------- gdb/nat/aarch64-linux-hw-point.c | 88 ++++++++++++++++++ gdb/nat/aarch64-linux-hw-point.h | 5 +- gdb/nat/aarch64-linux.c | 80 ++++++++++++++++ gdb/nat/aarch64-linux.h | 26 ++++++ 10 files changed, 222 insertions(+), 322 deletions(-) create mode 100644 gdb/nat/aarch64-linux.c create mode 100644 gdb/nat/aarch64-linux.h -- 1.9.1