From: Andreas Schwab Date: Wed, 21 Dec 2011 15:27:29 +0000 (+0000) Subject: * ppc-linux-nat.c (create_watchpoint_request): Only use ranged X-Git-Tag: sid-snapshot-20120101~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f16c4e8bddf8d339e0cfacca6348c45d20e94c43;p=platform%2Fupstream%2Fbinutils.git * ppc-linux-nat.c (create_watchpoint_request): Only use ranged watchpoints when supported. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3145bf9..78bc56c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-12-21 Andreas Schwab + + * ppc-linux-nat.c (create_watchpoint_request): Only use ranged + watchpoints when supported. + 2011-12-21 Jan Kratochvil * symfile.c (objfilep): New typedef and new DEF_VEC_P. diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index dc7f152..cc29ad8 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -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;