aboutsummaryrefslogtreecommitdiff
path: root/gdb/f-lang.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-06-01 15:31:15 -0600
committerTom Tromey <tom@tromey.com>2022-08-04 13:28:04 -0600
commitcb275538dbddfbb3c2c372a665ac48e6f617ea33 (patch)
tree7bc54ff4fc92c9b1cee74c2d7b9ae452b5ffec8b /gdb/f-lang.h
parent8b1540430107b0752485ab9e6a841dbbacd45681 (diff)
downloadfsf-binutils-gdb-cb275538dbddfbb3c2c372a665ac48e6f617ea33.zip
fsf-binutils-gdb-cb275538dbddfbb3c2c372a665ac48e6f617ea33.tar.gz
fsf-binutils-gdb-cb275538dbddfbb3c2c372a665ac48e6f617ea33.tar.bz2
Use registry in gdbarch
gdbarch implements its own registry-like approach. This patch changes it to instead use registry.h. It's a rather large patch but largely uninteresting -- it's mostly a straightforward conversion from the old approach to the new one. The main benefit of this change is that it introduces type safety to the gdbarch registry. It also removes a bunch of code. One possible drawback is that, previously, the gdbarch registry differentiated between pre- and post-initialization setup. This doesn't seem very important to me, though.
Diffstat (limited to 'gdb/f-lang.h')
-rw-r--r--gdb/f-lang.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/gdb/f-lang.h b/gdb/f-lang.h
index aebd45d..181f837 100644
--- a/gdb/f-lang.h
+++ b/gdb/f-lang.h
@@ -317,22 +317,22 @@ extern int calc_f77_array_dims (struct type *);
struct builtin_f_type
{
- struct type *builtin_character;
- struct type *builtin_integer_s1;
- struct type *builtin_integer_s2;
- struct type *builtin_integer;
- struct type *builtin_integer_s8;
- struct type *builtin_logical_s1;
- struct type *builtin_logical_s2;
- struct type *builtin_logical;
- struct type *builtin_logical_s8;
- struct type *builtin_real;
- struct type *builtin_real_s8;
- struct type *builtin_real_s16;
- struct type *builtin_complex;
- struct type *builtin_complex_s8;
- struct type *builtin_complex_s16;
- struct type *builtin_void;
+ struct type *builtin_character = nullptr;
+ struct type *builtin_integer_s1 = nullptr;
+ struct type *builtin_integer_s2 = nullptr;
+ struct type *builtin_integer = nullptr;
+ struct type *builtin_integer_s8 = nullptr;
+ struct type *builtin_logical_s1 = nullptr;
+ struct type *builtin_logical_s2 = nullptr;
+ struct type *builtin_logical = nullptr;
+ struct type *builtin_logical_s8 = nullptr;
+ struct type *builtin_real = nullptr;
+ struct type *builtin_real_s8 = nullptr;
+ struct type *builtin_real_s16 = nullptr;
+ struct type *builtin_complex = nullptr;
+ struct type *builtin_complex_s8 = nullptr;
+ struct type *builtin_complex_s16 = nullptr;
+ struct type *builtin_void = nullptr;
};
/* Return the Fortran type table for the specified architecture. */