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 @@ -67,7 +67,7 @@ void gdb_value_extractort::analyze_symbol(const irep_idt &symbol_name)
67
67
68
68
add_assignment (symbol_expr, target_expr);
69
69
}
70
- catch (gdb_interaction_exceptiont e)
70
+ catch (gdb_interaction_exceptiont & e)
71
71
{
72
72
throw analysis_exceptiont (e.what ());
73
73
}
@@ -292,7 +292,9 @@ exprt gdb_value_extractort::get_non_char_pointer_value(
292
292
}
293
293
else
294
294
{
295
- return it->second ;
295
+ const symbol_exprt typed_symbol_value = symbol_exprt{
296
+ to_symbol_expr (it->second ).get_identifier (), expr.type ().subtype ()};
297
+ return typed_symbol_value;
296
298
}
297
299
}
298
300
@@ -348,7 +350,9 @@ exprt gdb_value_extractort::get_pointer_value(
348
350
}
349
351
else
350
352
{
351
- return address_of_exprt (target_expr);
353
+ const auto result_expr = address_of_exprt (target_expr);
354
+ CHECK_RETURN (result_expr.type () == zero_expr.type ());
355
+ return result_expr;
352
356
}
353
357
}
354
358
}
You can’t perform that action at this time.
0 commit comments