diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-11-10 04:39:17 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-11-10 04:39:17 +0000 |
commit | a4be445201963e679f7a744faed644505fd10c0a (patch) | |
tree | dfe6dc976d64b4502dab511dabc71a9eef3fd1b7 /gdb/gdbarch.h | |
parent | a01a3246763a669ce54e5c9f1f87d3ee4c1b3a1e (diff) | |
download | gdb-a4be445201963e679f7a744faed644505fd10c0a.tar.gz |
2003-11-09 Andrew Cagney <cagney@redhat.com>
* arch-utils.c (gdbarch_update_p): New function.
* gdbarch.sh (gdbarch_update_p): Delete function.
(find_arch_by_info, gdbarch_find_by_info): New functions.
(deprecated_current_gdbarch_set_hack): New function.
* gdbarch.c: Re-generate.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 05fb41f9b01..766c20cef7d 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -2555,6 +2555,27 @@ extern void *gdbarch_obstack_zalloc (struct gdbarch *gdbarch, long size); extern int gdbarch_update_p (struct gdbarch_info info); +/* Helper function. Find an architecture matching info. + + INFO should be initialized using gdbarch_info_init, relevant fields + 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. */ + +extern struct gdbarch *gdbarch_find_by_info (struct gdbarch_info info); + + +/* Helper function. Set the global "current_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_current_gdbarch_select_hack (struct gdbarch *gdbarch); + /* Register per-architecture data-pointer. |