From b36ec657cd23f023a9462170c2c5b2ad553bb3d9 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 22 Feb 2008 19:48:05 +0000 Subject: [PATCH] * solib-svr4.c (enable_break): Convert r_brk to a code address. --- gdb/ChangeLog | 4 ++++ gdb/solib-svr4.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ed388e6264b..05896bef9a0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-02-22 Daniel Jacobowitz + + * solib-svr4.c (enable_break): Convert r_brk to a code address. + 2008-02-21 Pedro Alves * remote.c (extended_remote_attach_1): Set attach_flag. diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index c71f26b7578..d71f1778b8c 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -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, + ¤t_target)); + os = find_pc_section (sym_addr); if (os != NULL) { -- 2.30.2