From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9654 invoked by alias); 23 Apr 2012 06:35:47 -0000 Received: (qmail 9639 invoked by uid 22791); 23 Apr 2012 06:35:45 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,SUBJ_OBFU_PUNCT_FEW,SUBJ_OBFU_PUNCT_MANY X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Apr 2012 06:35:31 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1SMCrz-0003Ei-3P from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Sun, 22 Apr 2012 23:35:31 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sun, 22 Apr 2012 23:35:30 -0700 Received: from localhost.localdomain (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.1.289.1; Sun, 22 Apr 2012 23:35:30 -0700 From: Yao Qi To: Subject: [PATCH] ep_is_catchpoint -> is_catchpoint Date: Mon, 23 Apr 2012 06:49:00 -0000 Message-ID: <1335162987-2234-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes 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 X-SW-Source: 2012-04/txt/msg00732.txt.bz2 This patch is to rename ep_is_catchpoint to is_catchpoint, like its friends, is_watchpoint and is_tracepoint. It is obvious, and I'll commit it tomorrow. gdb: 2012-04-23 Yao Qi * breakpoint.c (ep_is_catchpoint): Renamed to ... (is_catchpoint): ... it. (print_one_breakpoint_location): Caller update. * breakpoint.h: Update declaration. --- gdb/breakpoint.c | 4 ++-- gdb/breakpoint.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index be536bc..ceca221 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -3635,7 +3635,7 @@ breakpoint_thread_match (struct address_space *aspace, CORE_ADDR pc, in breakpoint.h. */ int -ep_is_catchpoint (struct breakpoint *ep) +is_catchpoint (struct breakpoint *ep) { return (ep->type == bp_catchpoint); } @@ -5600,7 +5600,7 @@ print_one_breakpoint_location (struct breakpoint *b, if (!part_of_multiple && b->hit_count) { /* FIXME should make an annotation for this. */ - if (ep_is_catchpoint (b)) + if (is_catchpoint (b)) ui_out_text (uiout, "\tcatchpoint"); else if (is_tracepoint (b)) ui_out_text (uiout, "\ttracepoint"); diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index e0eeeaa..e676659 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -1365,7 +1365,7 @@ extern void remove_thread_event_breakpoints (void); extern void disable_breakpoints_in_shlibs (void); /* This function returns TRUE if ep is a catchpoint. */ -extern int ep_is_catchpoint (struct breakpoint *); +extern int is_catchpoint (struct breakpoint *); /* Enable breakpoints and delete when hit. Called with ARG == NULL deletes all breakpoints. */ -- 1.7.0.4