This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch 1/2] DW_OP_call: Provide per_cu in the batons
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 07 Jun 2010 11:44:03 -0600
- Subject: Re: [patch 1/2] DW_OP_call: Provide per_cu in the batons
- References: <20100607115641.GB24148@host0.dyn.jankratochvil.net>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> provide per_cu in the batons as required by the patch 2/2.
Jan> 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
Jan> * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
Jan> (dwarf_expr_tls_address): Use per_cu instead of objfile.
Jan> (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
Jan> Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
Jan> this change.
Jan> (struct needs_frame_baton): New field per_cu.
Jan> (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
Jan> * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
Ok with one nit fixed:
Jan> + /* Set no non-NULL iff this CU is currently loaded. When it gets freed out
s/no/to/
thanks,
Tom