aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-05-14 19:16:28 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-05-14 19:16:28 +0000
commit9e2ace22e39209df7db5bd386107bab3cae32cb4 (patch)
tree63b21ab06df2029c04c85b21290e74eff8b450cd /gdb
parent335bd8f20567e11b0ab3932b317a93d05363be4c (diff)
downloadgdb-9e2ace22e39209df7db5bd386107bab3cae32cb4.zip
gdb-9e2ace22e39209df7db5bd386107bab3cae32cb4.tar.gz
gdb-9e2ace22e39209df7db5bd386107bab3cae32cb4.tar.bz2
* gdbarch.sh: Add comment documenting the target_gdbarch global.
gdbarch.h does NOT need to be regenerated as the corresponding change has already been made in a previous commit.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rwxr-xr-xgdb/gdbarch.sh11
2 files changed, 17 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8c60e85..8bff539 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2009-05-14 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbarch.sh: Add comment documenting the target_gdbarch global.
+ gdbarch.h does NOT need to be regenerated as the corresponding
+ change has already been made in a previous commit.
+
2009-05-14 Pierre Muller <muller.u-strasbg.fr>
Remove all i386 debug register low level macros in config nm files.
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index ee0efa8..7e0d657 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -850,6 +850,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;
EOF