aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index adb44f4..f62f075 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -4278,7 +4278,8 @@ wait_again:
then remove it. See comments in procfs_init_inferior()
for more details. */
if (dbx_link_bpt_addr != 0
- && dbx_link_bpt_addr == read_pc ())
+ && dbx_link_bpt_addr
+ == regcache_read_pc (get_current_regcache ()))
remove_dbx_link_breakpoint ();
wstat = (SIGTRAP << 8) | 0177;