aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-svr4.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2008-02-22 19:48:05 +0000
committerDaniel Jacobowitz <drow@false.org>2008-02-22 19:48:05 +0000
commitb36ec657cd23f023a9462170c2c5b2ad553bb3d9 (patch)
tree419d8767881911ef3a1425252bbf74b94634063e /gdb/solib-svr4.c
parent584206dbd54bfbeed7e3d5943d796272b6c552b7 (diff)
downloadgdb-b36ec657cd23f023a9462170c2c5b2ad553bb3d9.zip
gdb-b36ec657cd23f023a9462170c2c5b2ad553bb3d9.tar.gz
gdb-b36ec657cd23f023a9462170c2c5b2ad553bb3d9.tar.bz2
* solib-svr4.c (enable_break): Convert r_brk to a code address.
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r--gdb/solib-svr4.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index c71f26b..d71f177 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,
+ &current_target));
+
os = find_pc_section (sym_addr);
if (os != NULL)
{