From 2d33f7b84c60fc8fa2c9913d754edc54163355d6 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 4 Feb 2010 12:45:49 +0000 Subject: 2010-02-04 Tristan Gingold * machoread.c (macho_add_oso): Renamed to macho_register_oso. (macho_symtab_read): Adjust calls to macho_add_oso. (macho_oso_symfile): Renamed to macho_symfile_read_all_oso. (macho_symfile_read): Adjust call to macho_oso_symfile. (macho_new_init): Move this function after declarations. (macho_symfile_init): Ditto. * darwin-nat-info.c (darwin_lib_gdb_ports): Remove. * darwin-nat.c (darwin_lookup_task): Remove unused prototype. --- gdb/darwin-nat-info.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'gdb/darwin-nat-info.c') diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c index a0f4fbe..4bcb88a 100644 --- a/gdb/darwin-nat-info.c +++ b/gdb/darwin-nat-info.c @@ -843,32 +843,6 @@ info_mach_exceptions_command (char *args, int from_tty) } } -static void -darwin_list_gdb_ports (const char *msg) -{ - mach_port_name_array_t names; - mach_port_type_array_t types; - unsigned int name_count, type_count; - kern_return_t result; - int i; - - result = mach_port_names (mach_task_self (), - &names, &name_count, &types, &type_count); - MACH_CHECK_ERROR (result); - - gdb_assert (name_count == type_count); - - printf_unfiltered (_("Ports for %s:"), msg); - for (i = 0; i < name_count; ++i) - printf_unfiltered (_(" 0x%04x"), names[i]); - printf_unfiltered (_("\n")); - - vm_deallocate (mach_task_self (), (vm_address_t) names, - (name_count * sizeof (mach_port_t))); - vm_deallocate (mach_task_self (), (vm_address_t) types, - (type_count * sizeof (mach_port_type_t))); -} - void _initialize_darwin_info_commands (void) { -- cgit v1.1