From 5e8eced64a8262b0190c4014e59b93c37ba3af9c Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Mon, 23 Aug 2010 09:39:43 -0800 Subject: - add '-keep' option to keep intermediate files (used for OpenCL only right now) - remove redundant initialization code of options (which confuses new users) - make bool option variables bool type - remove some more extern decls [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7247] --- src/debug.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/debug.cc') 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::iterator w=g_watchpoint_hits.find(num); -- cgit v1.3