2016-04-21 15:19:32 +03:00
|
|
|
//
|
|
|
|
// debug.h: Debugging code for MonoTouch
|
|
|
|
//
|
|
|
|
// Authors:
|
|
|
|
// Geoff Norton
|
|
|
|
// Rolf Bjarne Kvinge <rolf@xamarin.com>
|
|
|
|
//
|
|
|
|
// Copyright 2009 Novell, Inc.
|
|
|
|
// Copyright 2011-2012 Xamarin Inc.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef __MONOTOUCH_DEBUG_H__
|
|
|
|
#define __MONOTOUCH_DEBUG_H__
|
|
|
|
|
|
|
|
#include "runtime-internal.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void monotouch_configure_debugging ();
|
|
|
|
void monotouch_start_debugging ();
|
|
|
|
void monotouch_start_profiling ();
|
|
|
|
|
|
|
|
void monotouch_set_connection_mode (const char *mode);
|
2019-12-12 06:17:29 +03:00
|
|
|
void monotouch_set_monodevelop_port (int port);
|
2016-04-21 15:19:32 +03:00
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
const char *name;
|
|
|
|
void (*connect) (const char *address);
|
|
|
|
void (*close1) (void);
|
|
|
|
void (*close2) (void);
|
2019-11-20 21:42:51 +03:00
|
|
|
gboolean (*send) (void *buf, size_t len);
|
|
|
|
ssize_t (*recv) (void *buf, size_t len);
|
2016-04-21 15:19:32 +03:00
|
|
|
} DebuggerTransport;
|
|
|
|
|
|
|
|
void mono_debugger_agent_parse_options (const char *options);
|
|
|
|
gboolean mono_debugger_agent_transport_handshake (void);
|
|
|
|
void mono_debugger_agent_register_transport (DebuggerTransport *trans);
|
2016-08-05 17:15:19 +03:00
|
|
|
bool xamarin_is_native_debugger_attached ();
|
2016-04-21 15:19:32 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __MONOTOUCH_DEBUG_H__ */
|