Change jit.c to use type-safe registry
authorTom Tromey <tromey@adacore.com>
Wed, 26 Jun 2019 18:47:44 +0000 (12:47 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 10 Jul 2019 18:43:35 +0000 (12:43 -0600)
commitcb60f4208b2b920614306937b62bf15700824ee0
treed686075cb4f43950a729d594db8fc1695532266f
parent51df2ae3029caafd2b832e19d2978114a7e25a8a
Change jit.c to use type-safe registry

This changes jit.c to use the type-safe registry.  Only one of the
registry keys in jit.c is converted; the other is trickier and so I've
left it be for now.

gdb/ChangeLog
2019-07-10  Tom Tromey  <tromey@adacore.com>

* jit.c (jit_program_space_key): Change type.  Move lower.
(get_jit_program_space_data): Update.
(jit_program_space_data_cleanup): Remove.
(jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
Update.
(struct jit_program_space_data): Add initializers.
gdb/ChangeLog
gdb/jit.c