About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

debug.c File Reference
#include <string.h>
#include <mruby.h>
#include <mruby/irep.h>
#include <mruby/debug.h>
Include dependency graph for debug.c:

Go to the source code of this file.


static mrb_irep_debug_info_fileget_file (mrb_irep_debug_info *info, uint32_t pc)
static mrb_debug_line_type select_line_type (const uint16_t *lines, size_t lines_len)
char constmrb_debug_get_filename (mrb_state *mrb, const mrb_irep *irep, uint32_t pc)
int32_t mrb_debug_get_line (mrb_state *mrb, const mrb_irep *irep, uint32_t pc)
mrb_irep_debug_infomrb_debug_info_alloc (mrb_state *mrb, mrb_irep *irep)
mrb_irep_debug_info_filemrb_debug_info_append_file (mrb_state *mrb, mrb_irep_debug_info *d, const char *filename, uint16_t *lines, uint32_t start_pos, uint32_t end_pos)
void mrb_debug_info_free (mrb_state *mrb, mrb_irep_debug_info *d)

Function Documentation

◆ get_file()

static mrb_irep_debug_info_file* get_file ( mrb_irep_debug_info info,
uint32_t  pc 

Definition at line 7 of file debug.c.

References count, info, mrb_assert, NULL, pc, ret, and step().

Referenced by mrb_debug_get_filename(), and mrb_debug_get_line().

◆ mrb_debug_get_filename()

◆ mrb_debug_get_line()

◆ mrb_debug_info_alloc()

mrb_irep_debug_info* mrb_debug_info_alloc ( mrb_state mrb,
mrb_irep irep 

Definition at line 112 of file debug.c.

References mrb_irep::debug_info, mrb_assert, mrb_malloc(), NULL, and ret.

Referenced by scope_new().

◆ mrb_debug_info_append_file()

mrb_irep_debug_info_file* mrb_debug_info_append_file ( mrb_state mrb,
mrb_irep_debug_info d,
const char *  filename,
uint16_t lines,
uint32_t  start_pos,
uint32_t  end_pos 

◆ mrb_debug_info_free()

void mrb_debug_info_free ( mrb_state mrb,
mrb_irep_debug_info d 

Definition at line 201 of file debug.c.

References d, i, and mrb_free().

Referenced by mrb_irep_free().

◆ select_line_type()

static mrb_debug_line_type select_line_type ( const uint16_t lines,
size_t  lines_len 

Definition at line 39 of file debug.c.

References i, line_count, lines, mrb_debug_line_ary, and mrb_debug_line_flat_map.

Referenced by mrb_debug_info_append_file().