diff options
Diffstat (limited to 'gdb/ada-exp.y')
-rw-r--r-- | gdb/ada-exp.y | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y index 7b1b60f..3652376 100644 --- a/gdb/ada-exp.y +++ b/gdb/ada-exp.y @@ -891,7 +891,11 @@ primary : FLOAT ; primary : NULL_PTR - { write_int (pstate, 0, type_int (pstate)); } + { + struct type *null_ptr_type + = lookup_pointer_type (parse_type (pstate)->builtin_int0); + write_int (pstate, 0, null_ptr_type); + } ; primary : STRING |