diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-02 17:29:17 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-02 17:29:17 +0000 |
commit | 59837fe086d095b2ce147ac6e3539f6843007f4f (patch) | |
tree | bda93985ec4a97fa9e42b3aee3d0db43e920d061 /gdb/gdbarch.h | |
parent | e17a4113357102b55cfa5b80557d590a46a43300 (diff) | |
download | fsf-binutils-gdb-59837fe086d095b2ce147ac6e3539f6843007f4f.zip fsf-binutils-gdb-59837fe086d095b2ce147ac6e3539f6843007f4f.tar.gz fsf-binutils-gdb-59837fe086d095b2ce147ac6e3539f6843007f4f.tar.bz2 |
* gdbarch.sh (current_gdbarch): Remove global variable.
(find_arch_by_info): Remove, inline into ...
(gdbarch_find_by_info): ... this. Remove current_gdbarch swapping.
(deprecated_current_gdbarch_select_hack): Rename to ...
(deprecated_target_gdbarch_select_hack): ... this. Do not set
or access current_gdbarch.
* gdbarch.c, gdbarch.h: Regenerate.
* arch-utils.c (gdbarch_update_p): Update call.
(set_gdbarch_from_file): Likewise.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 4b64af8..9ffef7e 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -53,8 +53,6 @@ struct target_desc; struct displaced_step_closure; struct core_regset_section; -extern struct gdbarch *current_gdbarch; - /* The architecture associated with the connection to the target. The architecture vector provides some information that is really @@ -919,8 +917,7 @@ extern struct gdbarch_tdep *gdbarch_tdep (struct gdbarch *gdbarch); of all the previously created architures for this architecture family. The (possibly NULL) ARCHES->gdbarch can used to access values from the previously selected architecture for this - architecture family. The global ``current_gdbarch'' shall not be - used. + architecture family. The INIT function shall return any of: NULL - indicating that it doesn't recognize the selected architecture; an existing ``struct @@ -1029,12 +1026,12 @@ extern int gdbarch_update_p (struct gdbarch_info info); set, and then finished using gdbarch_info_fill. Returns the corresponding architecture, or NULL if no matching - architecture was found. "current_gdbarch" is not updated. */ + architecture was found. */ extern struct gdbarch *gdbarch_find_by_info (struct gdbarch_info info); -/* Helper function. Set the global "current_gdbarch" to "gdbarch". +/* Helper function. Set the global "target_gdbarch" to "gdbarch". FIXME: kettenis/20031124: Of the functions that follow, only gdbarch_from_bfd is supposed to survive. The others will @@ -1042,7 +1039,7 @@ extern struct gdbarch *gdbarch_find_by_info (struct gdbarch_info info); multi-arch. However, for now we're still stuck with the concept of a single active architecture. */ -extern void deprecated_current_gdbarch_select_hack (struct gdbarch *gdbarch); +extern void deprecated_target_gdbarch_select_hack (struct gdbarch *gdbarch); /* Register per-architecture data-pointer. |