This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] Fix recent solib-svr4 changes for Thumb and descriptors
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Fri, 22 Feb 2008 14:49:52 -0500
- Subject: [ob] Fix recent solib-svr4 changes for Thumb and descriptors
Committed as obvious; this is the same way we treat e.g. the entry
point address. The interpreter most likely sets r_brk using something
like "_r_debug.r_brk = &_dl_debug_state;" so it will be a function
pointer rather than a breakpoint address.
--
Daniel Jacobowitz
CodeSourcery
2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
* solib-svr4.c (enable_break): Convert r_brk to a code address.
Index: solib-svr4.c
===================================================================
--- solib-svr4.c (revision 193580)
+++ solib-svr4.c (working copy)
@@ -1000,6 +1000,11 @@ enable_break (void)
{
struct obj_section *os;
+ sym_addr = gdbarch_addr_bits_remove
+ (current_gdbarch, gdbarch_convert_from_func_ptr_addr (current_gdbarch,
+ sym_addr,
+ ¤t_target));
+
os = find_pc_section (sym_addr);
if (os != NULL)
{