This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] One more current_gdbarch regression
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 29 Jun 2009 15:15:24 +0200 (CEST)
- Subject: [commit] One more current_gdbarch regression
Hello,
it seems another use of current_gdbarch crept in recently. Fixed by
the following patch.
Committed to mainline.
Bye,
Ulrich
ChangeLog:
* darwin-nat-info.c (darwin_debug_regions_recurse): Use
target_gdbarch instead of current_gdbarch.
Index: gdb-head/gdb/darwin-nat-info.c
===================================================================
--- gdb-head.orig/gdb/darwin-nat-info.c
+++ gdb-head/gdb/darwin-nat-info.c
@@ -625,7 +625,7 @@ darwin_debug_regions_recurse (task_t tas
table_chain = make_cleanup_ui_out_table_begin_end (uiout, 9, -1, "regions");
- if (gdbarch_addr_bit (current_gdbarch) <= 32)
+ if (gdbarch_addr_bit (target_gdbarch) <= 32)
{
ui_out_table_header (uiout, 10, ui_left, "start", "Start");
ui_out_table_header (uiout, 10, ui_left, "end", "End");
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com