GDB (xrefs)
|
#include "defs.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "gdbcore.h"
#include "value.h"
#include "gdbcmd.h"
#include "inferior.h"
#include "gdbarch.h"
#include <sys/sysctl.h>
#include "darwin-nat.h"
#include <mach/thread_info.h>
#include <mach/thread_act.h>
#include <mach/task.h>
#include <mach/vm_map.h>
#include <mach/mach_port.h>
#include <mach/mach_init.h>
#include <mach/mach_vm.h>
Go to the source code of this file.
Macros | |
#define | CHECK_ARGS(what, args) |
#define | PRINT_FIELD(structure, field) gdb_printf(_(#field":\t%#lx\n"), (unsigned long) (structure)->field) |
#define | PRINT_TV_FIELD(structure, field) |
#define | task_self mach_task_self |
#define | task_by_unix_pid task_for_pid |
#define | port_name_array_t mach_port_array_t |
#define | port_type_array_t mach_port_array_t |
Functions | |
static void | info_mach_tasks_command (const char *args, int from_tty) |
static task_t | get_task_from_args (const char *args) |
static void | info_mach_task_command (const char *args, int from_tty) |
static void | info_mach_ports_command (const char *args, int from_tty) |
static void | darwin_debug_port_info (task_t task, mach_port_t port) |
static void | info_mach_port_command (const char *args, int from_tty) |
static void | info_mach_threads_command (const char *args, int from_tty) |
static void | info_mach_thread_command (const char *args, int from_tty) |
static const char * | unparse_protection (vm_prot_t p) |
static const char * | unparse_inheritance (vm_inherit_t i) |
static const char * | unparse_share_mode (unsigned char p) |
static const char * | unparse_user_tag (unsigned int tag) |
static void | darwin_debug_regions (task_t task, mach_vm_address_t address, int max) |
static void | darwin_debug_regions_recurse (task_t task) |
static void | darwin_debug_region (task_t task, mach_vm_address_t address) |
static void | info_mach_regions_command (const char *args, int from_tty) |
static void | info_mach_regions_recurse_command (const char *args, int from_tty) |
static void | info_mach_region_command (const char *exp, int from_tty) |
static void | disp_exception (const darwin_exception_info *info) |
static void | info_mach_exceptions_command (const char *args, int from_tty) |
void | _initialize_darwin_info_commands () |
#define CHECK_ARGS | ( | what, | |
args ) |
Definition at line 51 of file darwin-nat-info.c.
Referenced by info_mach_port_command(), and info_mach_thread_command().
#define port_name_array_t mach_port_array_t |
Definition at line 66 of file darwin-nat-info.c.
Referenced by info_mach_ports_command().
#define port_type_array_t mach_port_array_t |
Definition at line 67 of file darwin-nat-info.c.
Referenced by info_mach_ports_command().
#define PRINT_FIELD | ( | structure, | |
field ) gdb_printf(_(#field":\t%#lx\n"), (unsigned long) (structure)->field) |
Definition at line 56 of file darwin-nat-info.c.
Referenced by info_mach_task_command(), and info_mach_thread_command().
#define PRINT_TV_FIELD | ( | structure, | |
field ) |
Definition at line 59 of file darwin-nat-info.c.
Referenced by info_mach_task_command().
#define task_by_unix_pid task_for_pid |
Definition at line 65 of file darwin-nat-info.c.
Referenced by info_mach_tasks_command().
#define task_self mach_task_self |
Definition at line 64 of file darwin-nat-info.c.
Referenced by info_mach_ports_command(), and info_mach_threads_command().
void _initialize_darwin_info_commands | ( | ) |
Definition at line 843 of file darwin-nat-info.c.
References add_info(), info_mach_exceptions_command(), info_mach_port_command(), info_mach_ports_command(), info_mach_region_command(), info_mach_regions_command(), info_mach_regions_recurse_command(), info_mach_task_command(), info_mach_tasks_command(), info_mach_thread_command(), and info_mach_threads_command().
|
static |
Definition at line 303 of file darwin-nat-info.c.
References gdb_printf(), MACH_CHECK_ERROR, and status.
Referenced by info_mach_port_command().
|
static |
Definition at line 689 of file darwin-nat-info.c.
References darwin_debug_regions().
Referenced by info_mach_region_command().
|
static |
Definition at line 511 of file darwin-nat-info.c.
References gdb_printf(), paddress(), size, target_gdbarch(), unparse_inheritance(), and unparse_protection().
Referenced by darwin_debug_region(), and info_mach_regions_command().
|
static |
Definition at line 609 of file darwin-nat-info.c.
References current_uiout, ui_out::field_core_addr(), ui_out::field_signed(), ui_out::field_string(), gdbarch_addr_bit(), ui_out::table_body(), ui_out::table_header(), target_gdbarch(), ui_out::text(), ui_left, ui_noalign, unparse_inheritance(), unparse_protection(), unparse_share_mode(), and unparse_user_tag().
Referenced by info_mach_regions_recurse_command().
|
static |
Definition at line 742 of file darwin-nat-info.c.
References gdb_printf().
Referenced by info_mach_exceptions_command().
|
static |
Definition at line 113 of file darwin-nat-info.c.
References current_inferior(), gdb_printf(), get_darwin_inferior(), inferior_ptid, and darwin_inferior::task.
Referenced by info_mach_ports_command(), info_mach_regions_command(), info_mach_regions_recurse_command(), info_mach_task_command(), and info_mach_threads_command().
|
static |
Definition at line 792 of file darwin-nat-info.c.
References inferior::args(), current_inferior(), darwin_host_self, disp_exception(), gdb_printf(), get_darwin_inferior(), inferior_ptid, MACH_CHECK_ERROR, and inferior::priv.
Referenced by _initialize_darwin_info_commands().
|
static |
Definition at line 328 of file darwin-nat-info.c.
References inferior::args(), CHECK_ARGS, and darwin_debug_port_info().
Referenced by _initialize_darwin_info_commands().
|
static |
Definition at line 196 of file darwin-nat-info.c.
References current_inferior(), darwin_ex_port, darwin_host_self, darwin_port_set, gdb_printf(), get_darwin_inferior(), get_task_from_args(), inferior_ptid, MACH_CHECK_ERROR, name, port_name_array_t, port_type_array_t, inferior::priv, task_self, and type.
Referenced by _initialize_darwin_info_commands().
|
static |
Definition at line 719 of file darwin-nat-info.c.
References value::address, current_inferior(), darwin_debug_region(), get_darwin_inferior(), inferior_ptid, parse_expression(), inferior::priv, value::type(), TYPE_IS_REFERENCE, value_as_address(), and value_ind().
Referenced by _initialize_darwin_info_commands().
|
static |
Definition at line 695 of file darwin-nat-info.c.
References darwin_debug_regions(), and get_task_from_args().
Referenced by _initialize_darwin_info_commands().
|
static |
Definition at line 707 of file darwin-nat-info.c.
References darwin_debug_regions_recurse(), and get_task_from_args().
Referenced by _initialize_darwin_info_commands().
|
static |
Definition at line 139 of file darwin-nat-info.c.
References gdb_printf(), get_task_from_args(), MACH_CHECK_ERROR, PRINT_FIELD, and PRINT_TV_FIELD.
Referenced by _initialize_darwin_info_commands().
|
static |
Definition at line 70 of file darwin-nat-info.c.
References gdb_printf(), task_by_unix_pid, xfree(), and xmalloc().
Referenced by _initialize_darwin_info_commands().
|
static |
Definition at line 367 of file darwin-nat-info.c.
References CHECK_ARGS, flags, gdb_printf(), MACH_CHECK_ERROR, PRINT_FIELD, and thread_info.
Referenced by _initialize_darwin_info_commands().
|
static |
Definition at line 340 of file darwin-nat-info.c.
References inferior::args(), gdb_printf(), get_task_from_args(), MACH_CHECK_ERROR, task_self, thread_count(), and inferior::threads().
Referenced by _initialize_darwin_info_commands().
|
static |
Definition at line 427 of file darwin-nat-info.c.
Referenced by darwin_debug_regions(), and darwin_debug_regions_recurse().
|
static |
Definition at line 401 of file darwin-nat-info.c.
Referenced by darwin_debug_regions(), and darwin_debug_regions_recurse().
|
static |
Definition at line 443 of file darwin-nat-info.c.
Referenced by darwin_debug_regions_recurse().
|
static |
Definition at line 467 of file darwin-nat-info.c.
Referenced by darwin_debug_regions_recurse().