public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
* [next-over-throw2] Removed find_function_start_pc call
@ 2010-05-28 22:37 Jan Kratochvil
  0 siblings, 0 replies; only message in thread
From: Jan Kratochvil @ 2010-05-28 22:37 UTC (permalink / raw)
  To: archer

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-28 22:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-28 22:37 [next-over-throw2] Removed find_function_start_pc call Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).