# HG changeset patch
# User laurent
# Date 1305717624 -7200
# Node ID 092a6fa4926fe29ade96dd1153eb90314117f32e
# Parent  de1be61482fae13f62bc5557d0992535b1c0d495
Fix bug when debugging located variables of type memory (%M) for all variable classes

diff -r de1be61482fa -r 092a6fa4926f stage4/generate_c/generate_var_list.cc
--- a/stage4/generate_c/generate_var_list.cc	Tue May 17 10:35:12 2011 +0100
+++ b/stage4/generate_c/generate_var_list.cc	Wed May 18 13:20:24 2011 +0200
@@ -316,6 +316,8 @@
         locationtype_t location_type = search_location_type.get_location_type(symbol->location);
         if (location_type == input_lt)
           this->current_var_type_category = located_input_vtc;
+        else if (location_type == memory_lt)
+          this->current_var_type_category = located_memory_vtc;
         else if (location_type == output_lt)
           this->current_var_type_category = located_output_vtc;
 
@@ -341,6 +343,8 @@
         locationtype_t location_type = search_location_type.get_location_type(symbol->incompl_location);
         if (location_type == input_lt)
           this->current_var_type_category = located_input_vtc;
+        else if (location_type == memory_lt)
+          this->current_var_type_category = located_memory_vtc;
         else if (location_type == output_lt)
           this->current_var_type_category = located_output_vtc;