File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ void gdb_value_extractort::analyze_symbol(const irep_idt &symbol_name)
6868
6969 add_assignment (symbol_expr, target_expr);
7070 }
71- catch (gdb_interaction_exceptiont e)
71+ catch (gdb_interaction_exceptiont & e)
7272 {
7373 throw analysis_exceptiont (e.what ());
7474 }
@@ -294,7 +294,9 @@ exprt gdb_value_extractort::get_non_char_pointer_value(
294294 }
295295 else
296296 {
297- return it->second ;
297+ const symbol_exprt typed_symbol_value = symbol_exprt{
298+ to_symbol_expr (it->second ).get_identifier (), expr.type ().subtype ()};
299+ return typed_symbol_value;
298300 }
299301}
300302
@@ -350,7 +352,9 @@ exprt gdb_value_extractort::get_pointer_value(
350352 }
351353 else
352354 {
353- return address_of_exprt (target_expr);
355+ const auto result_expr = address_of_exprt (target_expr);
356+ CHECK_RETURN (result_expr.type () == zero_expr.type ());
357+ return result_expr;
354358 }
355359 }
356360 }
You can’t perform that action at this time.
0 commit comments