aboutsummaryrefslogtreecommitdiff
path: root/gdb/ia64-libunwind-tdep.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/ia64-libunwind-tdep.h
parent8b1540430107b0752485ab9e6a841dbbacd45681 (diff)
downloadgdb-cb275538dbddfbb3c2c372a665ac48e6f617ea33.zip
gdb-cb275538dbddfbb3c2c372a665ac48e6f617ea33.tar.gz
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/ia64-libunwind-tdep.h')
-rw-r--r--gdb/ia64-libunwind-tdep.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/ia64-libunwind-tdep.h b/gdb/ia64-libunwind-tdep.h
index 2484ea8..56425d0 100644
--- a/gdb/ia64-libunwind-tdep.h
+++ b/gdb/ia64-libunwind-tdep.h
@@ -40,11 +40,11 @@ struct frame_unwind;
struct libunwind_descr
{
- int (*gdb2uw) (int);
- int (*uw2gdb) (int);
- int (*is_fpreg) (int);
- void *accessors;
- void *special_accessors;
+ int (*gdb2uw) (int) = nullptr;
+ int (*uw2gdb) (int) = nullptr;
+ int (*is_fpreg) (int) = nullptr;
+ void *accessors = nullptr;
+ void *special_accessors = nullptr;
};
int libunwind_frame_sniffer (const struct frame_unwind *self,