/usr/include/libanjuta-3.0/libanjuta/interfaces/ianjuta-debugger.h is in libanjuta-dev 2:3.28.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
* ianjuta-debugger.h -- Autogenerated from libanjuta.idl
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef _IANJUTA_DEBUGGER_H_
#define _IANJUTA_DEBUGGER_H_
#include <glib-object.h>
#include <libanjuta/interfaces/ianjuta-message-view.h>
#include <sys/types.h>
#include <gio/gio.h>
G_BEGIN_DECLS
#define IANJUTA_TYPE_DEBUGGER (ianjuta_debugger_get_type ())
#define IANJUTA_DEBUGGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IANJUTA_TYPE_DEBUGGER, IAnjutaDebugger))
#define IANJUTA_IS_DEBUGGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IANJUTA_TYPE_DEBUGGER))
#define IANJUTA_DEBUGGER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), IANJUTA_TYPE_DEBUGGER, IAnjutaDebuggerIface))
#define IANJUTA_TYPE_DEBUGGER_ERROR (ianjuta_debugger_error_get_type())
#define IANJUTA_TYPE_DEBUGGER_OUTPUT_TYPE (ianjuta_debugger_output_type_get_type())
#define IANJUTA_TYPE_DEBUGGER_STATE (ianjuta_debugger_state_get_type())
#define IANJUTA_DEBUGGER_ERROR ianjuta_debugger_error_quark()
typedef struct _IAnjutaDebugger IAnjutaDebugger;
typedef struct _IAnjutaDebuggerIface IAnjutaDebuggerIface;
/* Types */
/**
* IAnjutaDebuggerError:
* @IANJUTA_DEBUGGER_OK: No error
* @IANJUTA_DEBUGGER_NOT_READY: Debugger is not ready to execute the command
* @IANJUTA_DEBUGGER_NOT_RUNNING: Debugger is not is running state
* @IANJUTA_DEBUGGER_NOT_STOPPED: Debugger is not is stopped state
* @IANJUTA_DEBUGGER_NOT_LOADED: Debugger is not is loaded state
* @IANJUTA_DEBUGGER_NOT_STARTED: Debugger is not in started state
* @IANJUTA_DEBUGGER_NOT_CONNECTED: Debugger is not connected:
* @IANJUTA_DEBUGGER_NOT_IMPLEMENTED: Corresponding function is not implemented
* @IANJUTA_DEBUGGER_CANCEL: Operation has been cancelled
* @IANJUTA_DEBUGGER_UNABLE_TO_CREATE_VARIABLE: Debugger cannot create variable
* @IANJUTA_DEBUGGER_UNABLE_TO_ACCESS_MEMORY: Debugger cannot access memory
* @IANJUTA_DEBUGGER_UNABLE_TO_OPEN_FILE: Debugger cannot open file
* @IANJUTA_DEBUGGER_UNSUPPORTED_FILE_TYPE: Debugger cannot debug such file
* @IANJUTA_DEBUGGER_UNSUPPORTED_VERSION: Debugger is too old
* @IANJUTA_DEBUGGER_UNABLE_TO_FIND_DEBUGGER: Debugger cannot be found
* @IANJUTA_DEBUGGER_ALREADY_DONE: Command has already been executed
* @IANJUTA_DEBUGGER_PROGRAM_NOT_FOUND: Program cannot be found
* @IANJUTA_DEBUGGER_UNABLE_TO_CONNECT: Unable to connect to debugger
* @IANJUTA_DEBUGGER_UNKNOWN_ERROR: Unknown error
* @IANJUTA_DEBUGGER_OTHER_ERROR: other error
*
* This enumeration is used to defined the error returned by the debugger
* backend.
*/
typedef enum {
IANJUTA_DEBUGGER_OK = 0,
IANJUTA_DEBUGGER_NOT_READY,
IANJUTA_DEBUGGER_NOT_RUNNING,
IANJUTA_DEBUGGER_NOT_STOPPED,
IANJUTA_DEBUGGER_NOT_LOADED,
IANJUTA_DEBUGGER_NOT_STARTED,
IANJUTA_DEBUGGER_NOT_CONNECTED,
IANJUTA_DEBUGGER_NOT_IMPLEMENTED,
IANJUTA_DEBUGGER_CANCEL,
IANJUTA_DEBUGGER_UNABLE_TO_CREATE_VARIABLE,
IANJUTA_DEBUGGER_UNABLE_TO_ACCESS_MEMORY,
IANJUTA_DEBUGGER_UNABLE_TO_OPEN_FILE,
IANJUTA_DEBUGGER_UNSUPPORTED_FILE_TYPE,
IANJUTA_DEBUGGER_UNSUPPORTED_VERSION,
IANJUTA_DEBUGGER_UNABLE_TO_FIND_DEBUGGER,
IANJUTA_DEBUGGER_ALREADY_DONE,
IANJUTA_DEBUGGER_PROGRAM_NOT_FOUND,
IANJUTA_DEBUGGER_UNABLE_TO_CONNECT,
IANJUTA_DEBUGGER_UNKNOWN_ERROR,
IANJUTA_DEBUGGER_OTHER_ERROR
} IAnjutaDebuggerError;
/**
* IAnjutaDebuggerOutputType:
* @IANJUTA_DEBUGGER_OUTPUT: Output from debugger
* @IANJUTA_DEBUGGER_WARNING_OUTPUT: Warning from debugger
* @IANJUTA_DEBUGGER_ERROR_OUTPUT: Error from debugger
* @IANJUTA_DEBUGGER_INFO_OUTPUT: Additional message from debugger
*
* This enumeration is used to defined the kind of output in
* #IAnjutaDebuggerOutputCallback
*/
typedef enum {
IANJUTA_DEBUGGER_OUTPUT,
IANJUTA_DEBUGGER_WARNING_OUTPUT,
IANJUTA_DEBUGGER_ERROR_OUTPUT,
IANJUTA_DEBUGGER_INFO_OUTPUT
} IAnjutaDebuggerOutputType;
/**
* IAnjutaDebuggerState:
* @IANJUTA_DEBUGGER_BUSY: Debugger is executing a command, it can enter in another
* at the end of the command.
* @IANJUTA_DEBUGGER_STOPPED: Debugger is stopped.
* @IANJUTA_DEBUGGER_STARTED: Debugger is started but no program is loaded.
* @IANJUTA_DEBUGGER_PROGRAM_LOADED: Debugger is started and has a program loaded.
* @IANJUTA_DEBUGGER_PROGRAM_STOPPED: Debugger is started and has a program stopped.
* @IANJUTA_DEBUGGER_PROGRAM_RUNNING: Debugger is started and has a program running.
*
* This enumeration is used to defined the different state of the debugger.
*/
typedef enum {
IANJUTA_DEBUGGER_BUSY,
IANJUTA_DEBUGGER_STOPPED,
IANJUTA_DEBUGGER_STARTED,
IANJUTA_DEBUGGER_PROGRAM_LOADED,
IANJUTA_DEBUGGER_PROGRAM_STOPPED,
IANJUTA_DEBUGGER_PROGRAM_RUNNING
} IAnjutaDebuggerState;
/**
* IAnjutaDebuggerFrame:
* @thread: Thread identifier.
* @level: Level of the frame, 0 is the topmost one.
* @args: List of argument of the caller.
* @file: Source file name where is the program counter.
* @line: Line number in the file above.
* @function: Function name where is the program counter.
* @library: Library name where is the program counter.
* @address: Address of the program counter.
*
* This structure keeps all information about a stack frame.
*/
typedef struct _IAnjutaDebuggerFrame IAnjutaDebuggerFrame;
struct _IAnjutaDebuggerFrame {
gint thread;
guint level;
gchar *args;
gchar *file;
guint line;
gchar *function;
gchar *library;
gulong address;
};
/**
* IAnjutaDebuggerCallback:
* @data: data
* @user_data: user data passed to the function
* @err: error
*
* This callback function is used only by #ianjuta_debugger_callback with a
* NULL data.
*/
typedef void (*IAnjutaDebuggerCallback) (const gpointer data, gpointer user_data, GError* err);
/**
* IAnjutaDebuggerGListCallback:
* @list: (element-type any): list of data
* @user_data: user data passed to the function
* @err: error
*
* This callback function is used by several debugger functions. Depending on
* the function, the kind of elements in the list is different. It is a string
* for #ianjuta_debugger_list_local or a #IAnjutaDebuggerFrame for
* #ianjuta_debugger_list_frame.
*/
typedef void (*IAnjutaDebuggerGListCallback) (const GList* list, gpointer user_data, GError* err);
/**
* IAnjutaDebuggerGCharCallback:
* @value: string
* @user_data: user data
* @err: error
*
* This callback function is used by several debugger functions. The data is
* a string
*/
typedef void (*IAnjutaDebuggerGCharCallback) (const gchar *value, gpointer user_data, GError* err);
/**
* IAnjutaDebuggerOutputCallback:
* @type: kind of output
* @output: string
* @user_data: user data
*
* This callback function is used only by #ianjuta_debugger_callback with a
* NULL data.
*/
typedef void (*IAnjutaDebuggerOutputCallback) (IAnjutaDebuggerOutputType type, const gchar *output, gpointer user_data);
struct _IAnjutaDebuggerIface {
GTypeInterface g_iface;
/* Signal */
void (*debugger_ready) (IAnjutaDebugger *obj, IAnjutaDebuggerState state);
/* Signal */
void (*debugger_started) (IAnjutaDebugger *obj);
/* Signal */
void (*debugger_stopped) (IAnjutaDebugger *obj, GError *err);
/* Signal */
void (*frame_changed) (IAnjutaDebugger *obj, guint frame, gint thread);
/* Signal */
void (*program_exited) (IAnjutaDebugger *obj);
/* Signal */
void (*program_loaded) (IAnjutaDebugger *obj);
/* Signal */
void (*program_moved) (IAnjutaDebugger *obj, gint pid, gint tid, gulong address, const gchar* file, guint line);
/* Signal */
void (*program_running) (IAnjutaDebugger *obj);
/* Signal */
void (*program_stopped) (IAnjutaDebugger *obj);
/* Signal */
void (*sharedlib_event) (IAnjutaDebugger *obj);
/* Signal */
void (*signal_received) (IAnjutaDebugger *obj, const gchar* name, const gchar* description);
gboolean (*abort) (IAnjutaDebugger *obj, GError **err);
gboolean (*attach) (IAnjutaDebugger *obj, pid_t pid, const GList* source_search_directories, GError **err);
gboolean (*callback) (IAnjutaDebugger *obj, IAnjutaDebuggerCallback callback, gpointer user_data, GError **err);
gboolean (*connect) (IAnjutaDebugger *obj, const gchar *server, const gchar *args, gboolean terminal, gboolean stop, GError **err);
void (*disable_log) (IAnjutaDebugger *obj, GError **err);
gboolean (*dump_stack_trace) (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
void (*enable_log) (IAnjutaDebugger *obj, IAnjutaMessageView *log, GError **err);
gboolean (*evaluate) (IAnjutaDebugger *obj, const gchar* name, const gchar* value, IAnjutaDebuggerGCharCallback callback, gpointer user_data, GError **err);
gboolean (*exit) (IAnjutaDebugger *obj, GError **err);
IAnjutaDebuggerState (*get_state) (IAnjutaDebugger *obj, GError **err);
gboolean (*handle_signal) (IAnjutaDebugger *obj, const gchar *name, gboolean stop, gboolean print, gboolean ignore, GError **err);
gboolean (*info_args) (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean (*info_frame) (IAnjutaDebugger *obj, guint frame, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean (*info_program) (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean (*info_sharedlib) (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean (*info_signal) (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean (*info_target) (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean (*info_thread) (IAnjutaDebugger *obj, gint thread, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean (*info_udot) (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean (*info_variables) (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean (*inspect) (IAnjutaDebugger *obj, const gchar* name, IAnjutaDebuggerGCharCallback callback, gpointer user_data, GError **err);
gboolean (*interrupt) (IAnjutaDebugger *obj, GError **err);
gboolean (*list_argument) (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean (*list_frame) (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean (*list_local) (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean (*list_thread) (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean (*load) (IAnjutaDebugger *obj, const gchar *file, const gchar *mime_type, const GList* source_search_directories, GError **err);
gboolean (*print) (IAnjutaDebugger *obj, const gchar *name, IAnjutaDebuggerGCharCallback callback, gpointer user_data, GError **err);
gboolean (*quit) (IAnjutaDebugger *obj, GError **err);
gboolean (*run) (IAnjutaDebugger *obj, GError **err);
gboolean (*run_from) (IAnjutaDebugger *obj, const gchar *file, gint line, GError **err);
gboolean (*run_to) (IAnjutaDebugger *obj, const gchar* file, gint line, GError **err);
gboolean (*send_command) (IAnjutaDebugger *obj, const gchar *command, GError **err);
gboolean (*set_environment) (IAnjutaDebugger *obj, gchar **env, GError **err);
gboolean (*set_frame) (IAnjutaDebugger *obj, guint frame, GError **err);
gboolean (*set_thread) (IAnjutaDebugger *obj, gint thread, GError **err);
gboolean (*set_working_directory) (IAnjutaDebugger *obj, const gchar *dir, GError **err);
gboolean (*start) (IAnjutaDebugger *obj, const gchar *args, gboolean terminal, gboolean stop, GError **err);
gboolean (*step_in) (IAnjutaDebugger *obj, GError **err);
gboolean (*step_out) (IAnjutaDebugger *obj, GError **err);
gboolean (*step_over) (IAnjutaDebugger *obj, GError **err);
gboolean (*unload) (IAnjutaDebugger *obj, GError **err);
};
GType ianjuta_debugger_error_get_type (void);
GType ianjuta_debugger_output_type_get_type (void);
GType ianjuta_debugger_state_get_type (void);
GQuark ianjuta_debugger_error_quark (void);
GType ianjuta_debugger_get_type (void);
gboolean ianjuta_debugger_abort (IAnjutaDebugger *obj, GError **err);
gboolean ianjuta_debugger_attach (IAnjutaDebugger *obj, pid_t pid, const GList* source_search_directories, GError **err);
gboolean ianjuta_debugger_callback (IAnjutaDebugger *obj, IAnjutaDebuggerCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_connect (IAnjutaDebugger *obj, const gchar *server, const gchar *args, gboolean terminal, gboolean stop, GError **err);
void ianjuta_debugger_disable_log (IAnjutaDebugger *obj, GError **err);
gboolean ianjuta_debugger_dump_stack_trace (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
void ianjuta_debugger_enable_log (IAnjutaDebugger *obj, IAnjutaMessageView *log, GError **err);
gboolean ianjuta_debugger_evaluate (IAnjutaDebugger *obj, const gchar* name, const gchar* value, IAnjutaDebuggerGCharCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_exit (IAnjutaDebugger *obj, GError **err);
IAnjutaDebuggerState ianjuta_debugger_get_state (IAnjutaDebugger *obj, GError **err);
gboolean ianjuta_debugger_handle_signal (IAnjutaDebugger *obj, const gchar *name, gboolean stop, gboolean print, gboolean ignore, GError **err);
gboolean ianjuta_debugger_info_args (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_info_frame (IAnjutaDebugger *obj, guint frame, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_info_program (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_info_sharedlib (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_info_signal (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_info_target (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_info_thread (IAnjutaDebugger *obj, gint thread, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_info_udot (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_info_variables (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_inspect (IAnjutaDebugger *obj, const gchar* name, IAnjutaDebuggerGCharCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_interrupt (IAnjutaDebugger *obj, GError **err);
gboolean ianjuta_debugger_list_argument (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_list_frame (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_list_local (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_list_thread (IAnjutaDebugger *obj, IAnjutaDebuggerGListCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_load (IAnjutaDebugger *obj, const gchar *file, const gchar *mime_type, const GList* source_search_directories, GError **err);
gboolean ianjuta_debugger_print (IAnjutaDebugger *obj, const gchar *name, IAnjutaDebuggerGCharCallback callback, gpointer user_data, GError **err);
gboolean ianjuta_debugger_quit (IAnjutaDebugger *obj, GError **err);
gboolean ianjuta_debugger_run (IAnjutaDebugger *obj, GError **err);
gboolean ianjuta_debugger_run_from (IAnjutaDebugger *obj, const gchar *file, gint line, GError **err);
gboolean ianjuta_debugger_run_to (IAnjutaDebugger *obj, const gchar* file, gint line, GError **err);
gboolean ianjuta_debugger_send_command (IAnjutaDebugger *obj, const gchar *command, GError **err);
gboolean ianjuta_debugger_set_environment (IAnjutaDebugger *obj, gchar **env, GError **err);
gboolean ianjuta_debugger_set_frame (IAnjutaDebugger *obj, guint frame, GError **err);
gboolean ianjuta_debugger_set_thread (IAnjutaDebugger *obj, gint thread, GError **err);
gboolean ianjuta_debugger_set_working_directory (IAnjutaDebugger *obj, const gchar *dir, GError **err);
gboolean ianjuta_debugger_start (IAnjutaDebugger *obj, const gchar *args, gboolean terminal, gboolean stop, GError **err);
gboolean ianjuta_debugger_step_in (IAnjutaDebugger *obj, GError **err);
gboolean ianjuta_debugger_step_out (IAnjutaDebugger *obj, GError **err);
gboolean ianjuta_debugger_step_over (IAnjutaDebugger *obj, GError **err);
gboolean ianjuta_debugger_unload (IAnjutaDebugger *obj, GError **err);
G_END_DECLS
#endif
|