From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 40C643870903 for ; Thu, 14 May 2020 14:09:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 40C643870903 Received: from pn-All-Series.dorsal.polymtl.ca (dyn38.dorsal.polymtl.ca [132.207.72.38]) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 04EE9O7i022013; Thu, 14 May 2020 10:09:56 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 04EE9O7i022013 From: paul-naert To: gdb-patches@sourceware.org Cc: paul-naert Subject: [RFC][PATCH 3/7] Make create_sals_from_location_default non static Date: Thu, 14 May 2020 10:08:45 -0400 Message-Id: <20200514140849.31845-4-paul_naert@hotmail.fr> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200514140849.31845-1-paul_naert@hotmail.fr> References: <20200514140849.31845-1-paul_naert@hotmail.fr> X-Poly-FromMTA: (dyn38.dorsal.polymtl.ca [132.207.72.38]) at Thu, 14 May 2020 14:09:24 +0000 X-Spam-Status: No, score=-9.8 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2020 14:09:59 -0000 This function can be used to translate a location to SAL in other files. --- gdb/breakpoint.c | 10 ++-------- gdb/breakpoint.h | 5 +++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index c9587ff..4f90d42 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -88,11 +88,6 @@ static void map_breakpoint_numbers (const char *, static void breakpoint_re_set_default (struct breakpoint *); -static void - create_sals_from_location_default (const struct event_location *location, - struct linespec_result *canonical, - enum bptype type_wanted); - static void create_breakpoints_sal_default (struct gdbarch *, struct linespec_result *, gdb::unique_xmalloc_ptr, @@ -13640,10 +13635,9 @@ breakpoint_re_set_default (struct breakpoint *b) update_breakpoint_locations (b, filter_pspace, expanded, expanded_end); } -/* Default method for creating SALs from an address string. It basically - calls parse_breakpoint_sals. Return 1 for success, zero for failure. */ +/* See breakpoint.h. */ -static void +void create_sals_from_location_default (const struct event_location *location, struct linespec_result *canonical, enum bptype type_wanted) diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index da26f64..378283c 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -648,6 +648,11 @@ struct breakpoint_ops void (*after_condition_true) (struct bpstats *bs); }; +/* Create SALs from location, storing the result in linespec_result. */ +void create_sals_from_location_default (const struct event_location *location, + struct linespec_result *canonical, + enum bptype type_wanted); + /* Helper for breakpoint_ops->print_recreate implementations. Prints the "thread" or "task" condition of B, and then a newline. -- 2.7.4