This is the mail archive of the mailing list for the Archer project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[next-over-throw2] Removed find_function_start_pc call


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.

	* 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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]