This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Eliminate implicit current_gdbarch use in dwarf2_read_address
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: uweigand at de dot ibm dot com (Ulrich Weigand)
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 5 Sep 2008 13:41:25 +0200 (CEST)
- Subject: Re: [rfc] Eliminate implicit current_gdbarch use in dwarf2_read_address
> ChangeLog:
>
> * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
> * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
> Call gdbarch_integer_to_address directly instead of converting
> to value and back. Update comment.
> (execute_stack_op): Update call site.
> * dwarf2loc.c (find_location_expression): Likewise.
> (locexpr_describe_location): Update
>
> * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
> * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
> * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
> (dwarf2_loc_desc_needs_frame): Likewise.
I've checked this in as well.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com