aboutsummaryrefslogtreecommitdiff
path: root/gdb/cris-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-12-19 14:14:52 +0000
committerAndrew Cagney <cagney@redhat.com>2001-12-19 14:14:52 +0000
commitfb6ecb0ffc17d5942c04c8c6fc0abeefd7e93e54 (patch)
tree707988e347077b91873d97caf4b393c8249081fd /gdb/cris-tdep.c
parenta5eb27e6ff61757fc74229dce1f8864262a51fbe (diff)
downloadgdb-fb6ecb0ffc17d5942c04c8c6fc0abeefd7e93e54.zip
gdb-fb6ecb0ffc17d5942c04c8c6fc0abeefd7e93e54.tar.gz
gdb-fb6ecb0ffc17d5942c04c8c6fc0abeefd7e93e54.tar.bz2
Add function gdbarch_info_init() replaces memset().
Diffstat (limited to 'gdb/cris-tdep.c')
-rw-r--r--gdb/cris-tdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index d3376b5..d9175b0 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -3615,7 +3615,7 @@ cris_version_update (char *ignore_args, int from_tty,
usr_cmd_cris_version_valid = 1;
/* Update the current architecture, if needed. */
- memset (&info, 0, sizeof info);
+ gdbarch_info_init (&info);
if (!gdbarch_update_p (info))
internal_error (__FILE__, __LINE__, "cris_gdbarch_update: failed to update architecture.");
}
@@ -3633,7 +3633,7 @@ cris_mode_update (char *ignore_args, int from_tty,
usr_cmd_cris_mode_valid = 1;
/* Update the current architecture, if needed. */
- memset (&info, 0, sizeof info);
+ gdbarch_info_init (&info);
if (!gdbarch_update_p (info))
internal_error (__FILE__, __LINE__, "cris_gdbarch_update: failed to update architecture.");
}
@@ -3651,7 +3651,7 @@ cris_abi_update (char *ignore_args, int from_tty,
usr_cmd_cris_abi_valid = 1;
/* Update the current architecture, if needed. */
- memset (&info, 0, sizeof info);
+ gdbarch_info_init (&info);
if (!gdbarch_update_p (info))
internal_error (__FILE__, __LINE__, "cris_gdbarch_update: failed to update architecture.");
}