* ppc-linux-nat.c (create_watchpoint_request): Only use ranged

watchpoints when supported.
This commit is contained in:
Andreas Schwab 2011-12-21 15:27:29 +00:00
parent 4ac39b9724
commit f16c4e8bdd
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-12-21 Andreas Schwab <schwab@linux-m68k.org>
* ppc-linux-nat.c (create_watchpoint_request): Only use ranged
watchpoints when supported.
2011-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
* symfile.c (objfilep): New typedef and new DEF_VEC_P.

View File

@ -2010,7 +2010,8 @@ create_watchpoint_request (struct ppc_hw_breakpoint *p, CORE_ADDR addr,
int len, int rw, struct expression *cond,
int insert)
{
if (len == 1)
if (len == 1
|| !(booke_debug_info.features & PPC_DEBUG_FEATURE_DATA_BP_RANGE))
{
int use_condition;
CORE_ADDR data_value;