From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23888 invoked by alias); 9 Oct 2014 10:21:42 -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 23878 invoked by uid 89); 9 Oct 2014 10:21:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 09 Oct 2014 10:21:41 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s999qs5i007066 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 9 Oct 2014 05:52:54 -0400 Received: from blade.nx (ovpn-116-100.ams2.redhat.com [10.36.116.100]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s999qraK004106 for ; Thu, 9 Oct 2014 05:52:54 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id C669B2626CA for ; Thu, 9 Oct 2014 10:52:48 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [PATCH 08/13 v2] Rename gdbserver's low-level Linux x86 debug register accessors Date: Thu, 09 Oct 2014 10:21:00 -0000 Message-Id: <1412848358-9958-9-git-send-email-gbenson@redhat.com> In-Reply-To: <1412848358-9958-1-git-send-email-gbenson@redhat.com> References: <1412848358-9958-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00192.txt.bz2 This commit renames gdbserver's low-level Linux x86 debug register accessors to the same names used by GDB. gdb/gdbserver/ChangeLog: * linux-x86-low.c (x86_dr_low_set_addr): Renamed as... (x86_linux_dr_set_addr): New function. (x86_dr_low_get_addr): Renamed as... (x86_linux_dr_get_addr): New function. (x86_dr_low_set_control): Renamed as... (x86_linux_dr_set_control): New function. (x86_dr_low_get_control): Renamed as... (x86_linux_dr_get_control): New function. (x86_dr_low_get_status): Renamed as... (x86_linux_dr_get_status): New function. (x86_dr_low): Updated with new function names. --- gdb/gdbserver/ChangeLog | 14 ++++++++++++++ gdb/gdbserver/linux-x86-low.c | 20 ++++++++++---------- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c index 445a07e..e5257a3 100644 --- a/gdb/gdbserver/linux-x86-low.c +++ b/gdb/gdbserver/linux-x86-low.c @@ -572,7 +572,7 @@ update_debug_registers_callback (struct lwp_info *lwp, void *arg) /* Update the inferior's debug register REGNUM from STATE. */ static void -x86_dr_low_set_addr (int regnum, CORE_ADDR addr) +x86_linux_dr_set_addr (int regnum, CORE_ADDR addr) { /* Only update the threads of this process. */ ptid_t pid_ptid = pid_to_ptid (ptid_get_pid (current_lwp_ptid ())); @@ -585,7 +585,7 @@ x86_dr_low_set_addr (int regnum, CORE_ADDR addr) /* Return the inferior's debug register REGNUM. */ static CORE_ADDR -x86_dr_low_get_addr (int regnum) +x86_linux_dr_get_addr (int regnum) { gdb_assert (DR_FIRSTADDR <= regnum && regnum <= DR_LASTADDR); @@ -595,7 +595,7 @@ x86_dr_low_get_addr (int regnum) /* Update the inferior's DR7 debug control register from STATE. */ static void -x86_dr_low_set_control (unsigned long control) +x86_linux_dr_set_control (unsigned long control) { /* Only update the threads of this process. */ ptid_t pid_ptid = pid_to_ptid (ptid_get_pid (current_lwp_ptid ())); @@ -606,7 +606,7 @@ x86_dr_low_set_control (unsigned long control) /* Return the inferior's DR7 debug control register. */ static unsigned long -x86_dr_low_get_control (void) +x86_linux_dr_get_control (void) { return x86_linux_dr_get (current_lwp_ptid (), DR_CONTROL); } @@ -615,7 +615,7 @@ x86_dr_low_get_control (void) and record it in STATE. */ static unsigned long -x86_dr_low_get_status (void) +x86_linux_dr_get_status (void) { return x86_linux_dr_get (current_lwp_ptid (), DR_STATUS); } @@ -623,11 +623,11 @@ x86_dr_low_get_status (void) /* Low-level function vector. */ struct x86_dr_low_type x86_dr_low = { - x86_dr_low_set_control, - x86_dr_low_set_addr, - x86_dr_low_get_addr, - x86_dr_low_get_status, - x86_dr_low_get_control, + x86_linux_dr_set_control, + x86_linux_dr_set_addr, + x86_linux_dr_get_addr, + x86_linux_dr_get_status, + x86_linux_dr_get_control, sizeof (void *), }; -- 1.7.1