From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: archer@sourceware.org
Subject: [next-over-throw2] Removed find_function_start_pc call
Date: Fri, 28 May 2010 22:37:00 -0000 [thread overview]
Message-ID: <20100528223708.GA26567@host0.dyn.jankratochvil.net> (raw)
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;
}
reply other threads:[~2010-05-28 22:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100528223708.GA26567@host0.dyn.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=archer@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).