0a064776ae
Entirely implemented on top of the public <debugger.h> API, but more convenient to use. Lives in a separate library libdebug.so. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11925 a95241bf-73f2-0310-859d-f6bbb57e9c96
42 lines
995 B
C
42 lines
995 B
C
/*
|
|
* Copyright 2005, Ingo Weinhold, bonefish@users.sf.net.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _DEBUG_SUPPORT_H
|
|
#define _DEBUG_SUPPORT_H
|
|
|
|
#include <debugger.h>
|
|
#include <OS.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct debug_context {
|
|
port_id nub_port;
|
|
port_id reply_port;
|
|
} debug_context;
|
|
|
|
|
|
status_t init_debug_context(debug_context *context, port_id nubPort);
|
|
void destroy_debug_context(debug_context *context);
|
|
|
|
status_t send_debug_message(debug_context *context, int32 messageCode,
|
|
const void *message, int32 messageSize, void *reply,
|
|
int32 replySize);
|
|
|
|
ssize_t debug_read_memory_partial(debug_context *context, const void *address,
|
|
void *buffer, size_t size);
|
|
ssize_t debug_read_memory(debug_context *context, const void *address,
|
|
void *buffer, size_t size);
|
|
ssize_t debug_read_string(debug_context *context, const void *_address,
|
|
char *buffer, size_t size);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
|
|
#endif // _DEBUG_SUPPORT_H
|