aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-08-11 01:30:11 +0000
committerAndrew Cagney <cagney@redhat.com>2000-08-11 01:30:11 +0000
commit16f33e29665bda543991f02b53da05d7e6486f13 (patch)
tree7e64424379d575a729dac47add70b3eb3532dd4b /gdb/arch-utils.c
parent63872f9d95e101df1f08422179d1d676a2f10b9a (diff)
downloadgdb-16f33e29665bda543991f02b53da05d7e6486f13.zip
gdb-16f33e29665bda543991f02b53da05d7e6486f13.tar.gz
gdb-16f33e29665bda543991f02b53da05d7e6486f13.tar.bz2
Rename gdbarch_update() to gdbarch_update_p()
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 862b283..5c9f070 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -298,7 +298,10 @@ set_endian (char *ignore_args, int from_tty, struct cmd_list_element *c)
struct gdbarch_info info;
memset (&info, 0, sizeof info);
info.byte_order = LITTLE_ENDIAN;
- gdbarch_update (info);
+ if (! gdbarch_update_p (info))
+ {
+ printf_unfiltered ("Little endian target not supported by GDB\n");
+ }
}
else
{
@@ -313,7 +316,10 @@ set_endian (char *ignore_args, int from_tty, struct cmd_list_element *c)
struct gdbarch_info info;
memset (&info, 0, sizeof info);
info.byte_order = BIG_ENDIAN;
- gdbarch_update (info);
+ if (! gdbarch_update_p (info))
+ {
+ printf_unfiltered ("Big endian target not supported by GDB\n");
+ }
}
else
{
@@ -484,7 +490,7 @@ set_architecture (char *ignore_args, int from_tty, struct cmd_list_element *c)
info.bfd_arch_info = bfd_scan_arch (set_architecture_string);
if (info.bfd_arch_info == NULL)
internal_error ("set_architecture: bfd_scan_arch failed");
- if (gdbarch_update (info))
+ if (gdbarch_update_p (info))
target_architecture_auto = 0;
else
printf_unfiltered ("Architecture `%s' not reconized.\n",
@@ -546,7 +552,8 @@ set_gdbarch_from_file (bfd *abfd)
struct gdbarch_info info;
memset (&info, 0, sizeof info);
info.abfd = abfd;
- gdbarch_update (info);
+ if (! gdbarch_update_p (info))
+ error ("Architecture of file not reconized.\n");
}
else
{
@@ -641,7 +648,10 @@ initialize_current_architecture (void)
if (GDB_MULTI_ARCH)
{
- gdbarch_update (info);
+ if (! gdbarch_update_p (info))
+ {
+ internal_error ("initialize_current_architecture: Selection of initial architecture failed");
+ }
}
/* Create the ``set architecture'' command appending ``auto'' to the