aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index f317927..ab0092a 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -2515,16 +2515,17 @@ linux_nat_target::stopped_by_watchpoint ()
return lp->stop_reason == TARGET_STOPPED_BY_WATCHPOINT;
}
-bool
-linux_nat_target::stopped_data_address (CORE_ADDR *addr_p)
+std::vector<CORE_ADDR>
+linux_nat_target::stopped_data_addresses ()
{
struct lwp_info *lp = find_lwp_pid (inferior_ptid);
gdb_assert (lp != NULL);
- *addr_p = lp->stopped_data_address;
+ if (lp->stopped_data_address_p)
+ return { lp->stopped_data_address };
- return lp->stopped_data_address_p;
+ return {};
}
/* Commonly any breakpoint / watchpoint generate only SIGTRAP. */