From 6b6142747f1340b3cd2e1baf95723d641418afc7 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 7 May 2009 14:50:41 +0000 Subject: [PATCH] * gdbarch.h (target_gdbarch): Add comment documenting this global. --- gdb/ChangeLog | 8 ++++++-- gdb/gdbarch.h | 11 +++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8271e5a5112..39500304e50 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,10 +1,14 @@ -2009-05-06 Joel Brobecker +2009-05-07 Joel Brobecker + + * gdbarch.h (target_gdbarch): Add comment documenting this global. + +2009-05-06 Joel Brobecker * acinclude.m4 (AM_ICONV): Prefer in-tree libiconv if present over system iconv. * configure: Regenerate. -2009-05-06 Joel Brobecker +2009-05-06 Joel Brobecker * utils.c: Add include of gdb_usleep.h. (defaulted_query): Detect false EOF conditions that happen diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 5e508d7bd01..e844f52d638 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; -- 2.30.2