aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-06-07 19:42:58 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-06-07 19:42:58 +0000
commit17ea53c331199c560a28089d4c5757caa1517d33 (patch)
treed2ec71898484304332fba8252f01c70a8586e9ad /gdb/dwarf2read.c
parent245040d756e6e32bb26e82597834ea6aa1546da8 (diff)
downloadgdb-17ea53c331199c560a28089d4c5757caa1517d33.zip
gdb-17ea53c331199c560a28089d4c5757caa1517d33.tar.gz
gdb-17ea53c331199c560a28089d4c5757caa1517d33.tar.bz2
gdb/
* dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu. (dwarf_expr_tls_address): Use per_cu instead of objfile. (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE. Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for this change. (struct needs_frame_baton): New field per_cu. (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU. * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 6115939..6a6f1cb 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -337,7 +337,8 @@ struct dwarf2_per_cu_data
Otherwise it's from .debug_info. */
unsigned int from_debug_types : 1;
- /* Set iff currently read in. */
+ /* Set to non-NULL iff this CU is currently loaded. When it gets freed out
+ of the CU cache it gets reset to NULL again. */
struct dwarf2_cu *cu;
/* If full symbols for this CU have been read in, then this field