summaryrefslogtreecommitdiff
path: root/src/debug.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.cc')
-rw-r--r--src/debug.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.cc b/src/debug.cc
index 6bddb48..ac0daec 100644
--- a/src/debug.cc
+++ b/src/debug.cc
@@ -60,7 +60,7 @@ void gpgpu_debug()
if( b.is_watchpoint() ) {
unsigned addr = b.get_addr();
unsigned new_value = read_location(addr);
- if( new_value != b.get_value() ) {
+ if( new_value != b.get_value() || g_watchpoint_hits.find(num) != g_watchpoint_hits.end() ) {
printf( "GPGPU-Sim PTX DBG: watch point %u triggered (old value=%x, new value=%x)\n",
num,b.get_value(),new_value );
std::map<unsigned,watchpoint_event>::iterator w=g_watchpoint_hits.find(num);