* solib-svr4.c (enable_break): Convert r_brk to a code address.
authorDaniel Jacobowitz <drow@false.org>
Fri, 22 Feb 2008 19:48:05 +0000 (19:48 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 22 Feb 2008 19:48:05 +0000 (19:48 +0000)
gdb/ChangeLog
gdb/solib-svr4.c

index ed388e6264b77b1e6688df478ac9978c85490c32..05896bef9a0d57f46ab50714b9a6eedfc8124536 100644 (file)
@@ -1,3 +1,7 @@
+2008-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * solib-svr4.c (enable_break): Convert r_brk to a code address.
+
 2008-02-21  Pedro Alves  <pedro@codesourcery.com>
 
        * remote.c (extended_remote_attach_1): Set attach_flag.
index c71f26b75783ba0542b62c86ac504c60158953f7..d71f1778b8c1c96a6a9a67ed9365a6b3c82d232d 100644 (file)
@@ -998,6 +998,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)
        {