* gdbarch.h, gdbarch.c: Rebuild.

* gdbarch.sh (set_target_gdbarch): Rename from
	deprecated_target_gdbarch_select_hack.
	* arch-utils.c (gdbarch_update_p): Update.
	(set_gdbarch_from_file): Update.
This commit is contained in:
Tom Tromey 2012-11-14 15:40:35 +00:00
parent f7c93334db
commit aff68abbd7
5 changed files with 16 additions and 20 deletions

View File

@ -1,3 +1,11 @@
2012-11-13 Tom Tromey <tromey@redhat.com>
* gdbarch.h, gdbarch.c: Rebuild.
* gdbarch.sh (set_target_gdbarch): Rename from
deprecated_target_gdbarch_select_hack.
* arch-utils.c (gdbarch_update_p): Update.
(set_gdbarch_from_file): Update.
2012-11-05 Pierre Muller <muller@sourceware.org>
* MAINTAINERS (Responsible Maintainers/misc): Add myself

View File

@ -522,7 +522,7 @@ gdbarch_update_p (struct gdbarch_info info)
"New architecture %s (%s) selected\n",
host_address_to_string (new_gdbarch),
gdbarch_bfd_arch_info (new_gdbarch)->printable_name);
deprecated_target_gdbarch_select_hack (new_gdbarch);
set_target_gdbarch (new_gdbarch);
return 1;
}
@ -556,7 +556,7 @@ set_gdbarch_from_file (bfd *abfd)
if (gdbarch == NULL)
error (_("Architecture of file not recognized."));
deprecated_target_gdbarch_select_hack (gdbarch);
set_target_gdbarch (gdbarch);
}
/* Initialize the current architecture. Update the ``set

View File

@ -4666,7 +4666,7 @@ gdbarch_find_by_info (struct gdbarch_info info)
/* Make the specified architecture current. */
void
deprecated_target_gdbarch_select_hack (struct gdbarch *new_gdbarch)
set_target_gdbarch (struct gdbarch *new_gdbarch)
{
gdb_assert (new_gdbarch != NULL);
gdb_assert (new_gdbarch->initialized_p);

View File

@ -1382,15 +1382,9 @@ extern int gdbarch_update_p (struct gdbarch_info info);
extern struct gdbarch *gdbarch_find_by_info (struct gdbarch_info info);
/* Helper function. Set the global "target_gdbarch" to "gdbarch".
/* Helper function. Set the target gdbarch to "gdbarch". */
FIXME: kettenis/20031124: Of the functions that follow, only
gdbarch_from_bfd is supposed to survive. The others will
dissappear since in the future GDB will (hopefully) be truly
multi-arch. However, for now we're still stuck with the concept of
a single active architecture. */
extern void deprecated_target_gdbarch_select_hack (struct gdbarch *gdbarch);
extern void set_target_gdbarch (struct gdbarch *gdbarch);
/* Register per-architecture data-pointer.

View File

@ -1331,15 +1331,9 @@ extern int gdbarch_update_p (struct gdbarch_info info);
extern struct gdbarch *gdbarch_find_by_info (struct gdbarch_info info);
/* Helper function. Set the global "target_gdbarch" to "gdbarch".
/* Helper function. Set the target gdbarch to "gdbarch". */
FIXME: kettenis/20031124: Of the functions that follow, only
gdbarch_from_bfd is supposed to survive. The others will
dissappear since in the future GDB will (hopefully) be truly
multi-arch. However, for now we're still stuck with the concept of
a single active architecture. */
extern void deprecated_target_gdbarch_select_hack (struct gdbarch *gdbarch);
extern void set_target_gdbarch (struct gdbarch *gdbarch);
/* Register per-architecture data-pointer.
@ -2281,7 +2275,7 @@ gdbarch_find_by_info (struct gdbarch_info info)
/* Make the specified architecture current. */
void
deprecated_target_gdbarch_select_hack (struct gdbarch *new_gdbarch)
set_target_gdbarch (struct gdbarch *new_gdbarch)
{
gdb_assert (new_gdbarch != NULL);
gdb_assert (new_gdbarch->initialized_p);