Index: gdb/darwin-nat-info.c |
diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c |
index 9741538f91873122fe17f0467e420725286a0f49..bdc288977771a2dabb5eb341a6219dd734e8e3d9 100644 |
--- a/gdb/darwin-nat-info.c |
+++ b/gdb/darwin-nat-info.c |
@@ -1,5 +1,5 @@ |
/* Darwin support for GDB, the GNU debugger. |
- Copyright 1997-2002, 2008-2012 Free Software Foundation, Inc. |
+ Copyright (C) 1997-2013 Free Software Foundation, Inc. |
Contributed by Apple Computer, Inc. |
@@ -35,7 +35,6 @@ |
#include "gdbcmd.h" |
#include "inferior.h" |
-#include <sys/param.h> |
#include <sys/sysctl.h> |
#include "darwin-nat.h" |
@@ -573,8 +572,8 @@ darwin_debug_regions (task_t task, mach_vm_address_t address, int max) |
if (print) |
{ |
printf_filtered (_("%s-%s %s/%s %s %s %s"), |
- paddress (target_gdbarch, prev_address), |
- paddress (target_gdbarch, prev_address + prev_size), |
+ paddress (target_gdbarch (), prev_address), |
+ paddress (target_gdbarch (), prev_address + prev_size), |
unparse_protection (prev_info.protection), |
unparse_protection (prev_info.max_protection), |
unparse_inheritance (prev_info.inheritance), |
@@ -623,7 +622,7 @@ darwin_debug_regions_recurse (task_t task) |
table_chain = make_cleanup_ui_out_table_begin_end (uiout, 9, -1, "regions"); |
- if (gdbarch_addr_bit (target_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"); |
@@ -659,8 +658,8 @@ darwin_debug_regions_recurse (task_t task) |
break; |
row_chain = make_cleanup_ui_out_tuple_begin_end (uiout, "regions-row"); |
- ui_out_field_core_addr (uiout, "start", target_gdbarch, r_start); |
- ui_out_field_core_addr (uiout, "end", target_gdbarch, r_start + r_size); |
+ ui_out_field_core_addr (uiout, "start", target_gdbarch (), r_start); |
+ ui_out_field_core_addr (uiout, "end", target_gdbarch (), r_start + r_size); |
ui_out_field_string (uiout, "min-prot", |
unparse_protection (r_info.protection)); |
ui_out_field_string (uiout, "max-prot", |