macosx-nat-inferior-debug.h   [plain text]


#ifndef __GDB_MACOSX_NAT_INFERIOR_DEBUG_H__
#define __GDB_MACOSX_NAT_INFERIOR_DEBUG_H__

#include <stdio.h>
#include <mach/mach.h>

#include "defs.h"

extern FILE *inferior_stderr;
extern int inferior_debug_flag;

struct macosx_inferior_status;

void inferior_debug (int level, const char *fmt, ...);
void macosx_debug_port_info (task_t task, mach_port_t port);
void macosx_debug_task_port_info (mach_port_t task);
void macosx_debug_inferior_status (struct macosx_inferior_status *s);
void macosx_debug_message (mach_msg_header_t * msg);
void macosx_debug_notification_message (struct macosx_inferior_status *inferior,
                                        mach_msg_header_t * msg);
void macosx_debug_region (task_t task, mach_vm_address_t address);
void macosx_debug_regions (task_t task, mach_vm_address_t address, int max);

const char *unparse_exception_type (unsigned int i);
const char *unparse_protection (vm_prot_t p);
const char *unparse_inheritance (vm_inherit_t i);

#endif /* __GDB_MACOSX_NAT_INFERIOR_DEBUG_H__ */