From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 681 invoked by alias); 29 Jun 2013 03:11:12 -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 497 invoked by uid 89); 29 Jun 2013 03:11:00 -0000 X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 29 Jun 2013 03:10:58 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1UslYu-0006c9-QN from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Fri, 28 Jun 2013 20:10:56 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 28 Jun 2013 20:10:56 -0700 Received: from qiyao.dyndns.org.dyndns.org (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Fri, 28 Jun 2013 20:10:56 -0700 From: Yao Qi To: Subject: [PATCH v2 0/5] mips hardware watchpoint support in gdbserver Date: Sat, 29 Jun 2013 03:11:00 -0000 Message-ID: <1372475427-24862-1-git-send-email-yao@codesourcery.com> In-Reply-To: <1369881867-11372-1-git-send-email-yao@codesourcery.com> References: <1369881867-11372-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-06/txt/msg00928.txt.bz2 Here is the V2 of this patch series which is to post Jie and Dan's work to support mips hardware watchpoint in gdbserver. There are several changes compared with V1: - Keep these watchpoint-related structures as the fall back when PTRACE_GET_WATCH_REGS is not defined. - Re-org the patch series as Maciej suggested, split the function renaming patch out of the function moving patch. - Share 'enum target_hw_bp_type' in GDB and GDBserver, so that a new file common/break-common.h is created. - Some typos and code format issues are fixed. - Rename 'debug register' to 'watch register' in comments and code. Patch 1/5 is to share 'enum target_hw_bp_type' and patch 2/5 is to include asm/ptrace.h in mips-linux-nat.c, but keep watchpoint related structures as a fall back. Patch 3/5 is to refactor mips-linux-nat.c, rename functions and update comments, etc. Patch 4/5 is to move mips h/w wathcpoint stuff to common, and Patch 5/5 is to support h/w watchpoint in gdbserver for MIPS. The whole series is tested on a MIPS board with only one hardware watchpoint register. I pick this patch up during the test, because it fixes an internal error, so this patch series depend on it. [RFC] Catch exception after stepped over watchpoint. http://sourceware.org/ml/gdb-patches/2013-06/msg00866.html *** BLURB HERE *** Yao Qi (5): Share 'enum target_hw_bp_type' in GDB and GDBserver. Include asm/ptrace.h in mips-linux-nat.c Refactor in mips-linux-nat.c Move mips hardware watchpoint stuff to common/ MIPS GDBserver watchpoint gdb/Makefile.in | 6 +- gdb/NEWS | 3 + gdb/breakpoint.h | 10 +- gdb/common/break-common.h | 30 +++ gdb/common/mips-linux-watch.c | 352 ++++++++++++++++++++++++++++++++ gdb/common/mips-linux-watch.h | 129 ++++++++++++ gdb/config/mips/linux.mh | 2 +- gdb/gdbserver/Makefile.in | 7 +- gdb/gdbserver/configure.srv | 1 + gdb/gdbserver/i386-low.c | 9 +- gdb/gdbserver/linux-mips-low.c | 366 +++++++++++++++++++++++++++++++++ gdb/mips-linux-nat.c | 439 +++------------------------------------ 12 files changed, 929 insertions(+), 425 deletions(-) create mode 100644 gdb/common/break-common.h create mode 100644 gdb/common/mips-linux-watch.c create mode 100644 gdb/common/mips-linux-watch.h -- 1.7.7.6