X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fdarwin-nat-info.c;h=4bcb88abc64a547f8732afec56e3fe0ca8f300aa;hb=37cc8bfee6166ea05f1fa2e7d9f0f4d90663b7fc;hp=a0f4fbe3b844d3443c4d4492bc5142f0092b7062;hpb=4c38e0a4fcb69f8586d8db0b9cdb8dbab5980811;p=binutils-gdb.git diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c index a0f4fbe3b84..4bcb88abc64 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) {