aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.h
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-05-07 14:50:41 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-05-07 14:50:41 +0000
commit6b6142747f1340b3cd2e1baf95723d641418afc7 (patch)
treef3d41c92fefd1026923bee88df7cf8cc0de3286b /gdb/gdbarch.h
parente7a2059d2adeba4cf7676a3e43e4a9cd7a366345 (diff)
downloadgdb-6b6142747f1340b3cd2e1baf95723d641418afc7.zip
gdb-6b6142747f1340b3cd2e1baf95723d641418afc7.tar.gz
gdb-6b6142747f1340b3cd2e1baf95723d641418afc7.tar.bz2
* gdbarch.h (target_gdbarch): Add comment documenting this global.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r--gdb/gdbarch.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index 5e508d7..e844f52 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -54,6 +54,17 @@ 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
+ a property of the target: The layout of certain packets, for instance;
+ or the solib_ops vector. Etc. To differentiate architecture accesses
+ to per-target properties from per-thread/per-frame/per-objfile properties,
+ accesses to per-target properties should be made through target_gdbarch.
+
+ Eventually, when support for multiple targets is implemented in
+ GDB, this global should be made target-specific. */
extern struct gdbarch *target_gdbarch;