[ob] Fix recent solib-svr4 changes for Thumb and descriptors

Daniel Jacobowitz drow@false.org
Sat Feb 23 03:11:00 GMT 2008


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,
+							      &current_target));
+
       os = find_pc_section (sym_addr);
       if (os != NULL)
 	{



More information about the Gdb-patches mailing list