aboutsummaryrefslogtreecommitdiff
path: root/gdb/nto-tdep.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-05-01 15:21:36 -0600
committerTom Tromey <tom@tromey.com>2019-05-08 16:01:53 -0600
commitbdb3ed9e634d3db8164d90dee12bc8b5e2458786 (patch)
treed1b744dd2e3842c92217e6398861e451490988aa /gdb/nto-tdep.h
parentf37b313d5cafbed4e724db4724d1ab567b373be4 (diff)
downloadgdb-bdb3ed9e634d3db8164d90dee12bc8b5e2458786.zip
gdb-bdb3ed9e634d3db8164d90dee12bc8b5e2458786.tar.gz
gdb-bdb3ed9e634d3db8164d90dee12bc8b5e2458786.tar.bz2
Convert nto-tdep.c to type-safe registry API
This changes nto-tdep.c to use the type-safe registry API. gdb/ChangeLog 2019-05-08 Tom Tromey <tom@tromey.com> * nto-tdep.c (nto_inferior_data_reg): Change type. (nto_inferior_data): Update. (nto_inferior_data_cleanup, nto_new_inferior_data) (_initialize_nto_tdep): Remove. * nto-tdep.h (struct nto_inferior_data): Add initializers.
Diffstat (limited to 'gdb/nto-tdep.h')
-rw-r--r--gdb/nto-tdep.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/nto-tdep.h b/gdb/nto-tdep.h
index 5127ab3..2410a03 100644
--- a/gdb/nto-tdep.h
+++ b/gdb/nto-tdep.h
@@ -152,10 +152,10 @@ get_nto_thread_info (thread_info *thread)
struct nto_inferior_data
{
/* Last stopped flags result from wait function */
- unsigned int stopped_flags;
+ unsigned int stopped_flags = 0;
/* Last known stopped PC */
- CORE_ADDR stopped_pc;
+ CORE_ADDR stopped_pc = 0;
};
/* Generic functions in nto-tdep.c. */