aboutsummaryrefslogtreecommitdiff
path: root/src/monkey/gnunet_monkey_action.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/monkey/gnunet_monkey_action.h')
-rw-r--r--src/monkey/gnunet_monkey_action.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/src/monkey/gnunet_monkey_action.h b/src/monkey/gnunet_monkey_action.h
index da8f85396..8430c9f88 100644
--- a/src/monkey/gnunet_monkey_action.h
+++ b/src/monkey/gnunet_monkey_action.h
@@ -26,6 +26,8 @@
26#ifndef GNUNET_MONKEY_ACTION_H 26#ifndef GNUNET_MONKEY_ACTION_H
27#define GNUNET_MONKEY_ACTION_H 27#define GNUNET_MONKEY_ACTION_H
28 28
29#include "gdbmi.h"
30
29#ifdef __cplusplus 31#ifdef __cplusplus
30extern "C" 32extern "C"
31{ 33{
@@ -34,10 +36,26 @@ extern "C"
34#endif 36#endif
35#endif 37#endif
36 38
37int GNUNET_MONKEY_ACTION_report_file(); 39
38int GNUNET_MONKEY_ACTION_report_email(); 40/**
41 * Context for the Action API
42 */
43struct GNUNET_MONKEY_ACTION_Context
44{
45 const char* binary_name;
46 int debug_mode;
47 char* debug_report;
48
49 /* gdb debugging attributes */
50 mi_stop* gdb_stop_reason;
51 mi_frames* gdb_frames;
52};
53
54int GNUNET_MONKEY_ACTION_report_file(struct GNUNET_MONKEY_ACTION_Context* cntxt, const char* dumpFileName);
55int GNUNET_MONKEY_ACTION_report_email(struct GNUNET_MONKEY_ACTION_Context* cntxt);
39int GNUNET_MONKEY_ACTION_rerun_with_valgrind(); 56int GNUNET_MONKEY_ACTION_rerun_with_valgrind();
40int GNUNET_MONKEY_ACTION_rerun_with_gdb(); 57int GNUNET_MONKEY_ACTION_rerun_with_gdb(struct GNUNET_MONKEY_ACTION_Context* cntxt);
58int GNUNET_MONKEY_ACTION_format_report(struct GNUNET_MONKEY_ACTION_Context* cntxt);
41int GNUNET_MONKEY_ACTION_check_bug_redundancy(); 59int GNUNET_MONKEY_ACTION_check_bug_redundancy();
42 60
43 61