syslog-ng source
debugger.c File Reference
#include "debugger/debugger.h"
#include "debugger/tracer.h"
#include "logmsg/logmsg.h"
#include "logpipe.h"
#include "apphook.h"
#include "mainloop.h"
#include "timeutils/misc.h"
#include "compat/time.h"
#include "scratch-buffers.h"
#include <iv_signal.h>
#include <stdio.h>
#include <unistd.h>
Include dependency graph for debugger.c:

Classes

struct  Debugger
 

Typedefs

typedef gboolean(* DebuggerCommandFunc) (Debugger *self, gint argc, gchar *argv[])
 

Functions

gchar * debugger_builtin_fetch_command (void)
 
void debugger_register_command_fetcher (FetchCommandFunc fetcher)
 
void debugger_start_console (Debugger *self)
 
gboolean debugger_stop_at_breakpoint (Debugger *self, LogPipe *pipe_, LogMessage *msg)
 
gboolean debugger_perform_tracing (Debugger *self, LogPipe *pipe_, LogMessage *msg)
 
void debugger_exit (Debugger *self)
 
Debugger * debugger_new (MainLoop *main_loop, GlobalConfig *cfg)
 
void debugger_free (Debugger *self)
 

Variables

struct {
   const gchar *   name
 
   DebuggerCommandFunc   command
 
   gboolean   requires_breakpoint_site
 
command_table []
 
FetchCommandFunc fetch_command_func = debugger_builtin_fetch_command
 

Typedef Documentation

◆ DebuggerCommandFunc

typedef gboolean(* DebuggerCommandFunc) (Debugger *self, gint argc, gchar *argv[])

Function Documentation

◆ debugger_builtin_fetch_command()

gchar* debugger_builtin_fetch_command ( void  )

◆ debugger_exit()

void debugger_exit ( Debugger *  self)

◆ debugger_free()

void debugger_free ( Debugger *  self)

◆ debugger_new()

Debugger* debugger_new ( MainLoop *  main_loop,
GlobalConfig *  cfg 
)

◆ debugger_perform_tracing()

gboolean debugger_perform_tracing ( Debugger *  self,
LogPipe *  pipe_,
LogMessage *  msg 
)

◆ debugger_register_command_fetcher()

void debugger_register_command_fetcher ( FetchCommandFunc  fetcher)

◆ debugger_start_console()

void debugger_start_console ( Debugger *  self)

◆ debugger_stop_at_breakpoint()

gboolean debugger_stop_at_breakpoint ( Debugger *  self,
LogPipe *  pipe_,
LogMessage *  msg 
)

Variable Documentation

◆ command

◆ 

struct { ... } command_table[]
Initial value:
=
{
{ "help", _cmd_help },
{ "h", _cmd_help },
{ "?", _cmd_help },
{ "continue", _cmd_continue },
{ "c", _cmd_continue },
{ "print", _cmd_print, .requires_breakpoint_site = TRUE },
{ "p", _cmd_print, .requires_breakpoint_site = TRUE },
{ "display", _cmd_display },
{ "drop", _cmd_drop, .requires_breakpoint_site = TRUE },
{ "d", _cmd_drop, .requires_breakpoint_site = TRUE },
{ "quit", _cmd_quit },
{ "q", _cmd_quit },
{ "trace", _cmd_trace, .requires_breakpoint_site = TRUE },
{ "t", _cmd_trace, .requires_breakpoint_site = TRUE },
{ "info", _cmd_info, .requires_breakpoint_site = TRUE },
{ "i", _cmd_info, .requires_breakpoint_site = TRUE },
{ NULL, NULL }
}

◆ fetch_command_func

◆ name

const gchar* name

◆ requires_breakpoint_site

gboolean requires_breakpoint_site