* gdbarch.h (target_gdbarch): Add comment documenting this global.
authorJoel Brobecker <brobecker@gnat.com>
Thu, 7 May 2009 14:50:41 +0000 (14:50 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 7 May 2009 14:50:41 +0000 (14:50 +0000)
gdb/ChangeLog
gdb/gdbarch.h

index 8271e5a511285cdf9678db05f06c42e9f279024b..39500304e50ca14e18904af8021387942cb11221 100644 (file)
@@ -1,10 +1,14 @@
-2009-05-06  Joel Brobecker   <brobecker@adacore.com>
+2009-05-07  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdbarch.h (target_gdbarch): Add comment documenting this global.
+
+2009-05-06  Joel Brobecker  <brobecker@adacore.com>
 
        * acinclude.m4 (AM_ICONV): Prefer in-tree libiconv if present over
        system iconv.
        * configure: Regenerate.
 
-2009-05-06  Joel Brobecker   <brobecker@adacore.com>
+2009-05-06  Joel Brobecker  <brobecker@adacore.com>
 
        * utils.c: Add include of gdb_usleep.h.
        (defaulted_query): Detect false EOF conditions that happen
index 5e508d7bd01fe0e468811fc5ec3113818af2f276..e844f52d6387e436cb16e7c453c9514682bdc8dd 100644 (file)
@@ -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;
 
 
This page took 0.029322 seconds and 4 git commands to generate.