This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[next-over-throw2] Removed find_function_start_pc call
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: archer at sourceware dot org
- Date: Sat, 29 May 2010 00:37:08 +0200
- Subject: [next-over-throw2] Removed find_function_start_pc call
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;
}