From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4697 invoked by alias); 28 May 2010 22:37:23 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 4681 invoked by uid 22791); 28 May 2010 22:37:22 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,KAM_STOCKGEN,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TRACKER_ID,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Date: Fri, 28 May 2010 22:37:00 -0000 From: Jan Kratochvil To: archer@sourceware.org Subject: [next-over-throw2] Removed find_function_start_pc call Message-ID: <20100528223708.GA26567@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) X-SW-Source: 2010-q2/txt/msg00031.txt.bz2 61603267beb2b3840ef536f0340e65911199a093 Remove find_function_start_pc call. It has been removed in FSF GDB 46ccfdba5c26799db48495f85350da16417c901a and bp_exception_master does not need any specific address to set. No regressions on {x86_64,x86_64-m32,i686}-fedora13-linux-gnu. gdb/ * breakpoint.c (create_exception_master_breakpoint): Remove find_function_start_pc call. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 8c31bcf..fe7302c 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -2249,14 +2249,11 @@ create_exception_master_breakpoint (void) debug_hook = lookup_minimal_symbol_text ("_Unwind_DebugHook", objfile); if (debug_hook != NULL) { - CORE_ADDR pc; struct breakpoint *b; - pc = find_function_start_pc (get_objfile_arch (objfile), - SYMBOL_VALUE_ADDRESS (debug_hook), - SYMBOL_OBJ_SECTION (debug_hook)); b = create_internal_breakpoint (get_objfile_arch (objfile), - pc, bp_exception_master); + SYMBOL_VALUE_ADDRESS (debug_hook), + bp_exception_master); b->addr_string = xstrdup ("_Unwind_DebugHook"); b->enable_state = bp_disabled; }