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.h File Reference
#include "common.h"
Include dependency graph for debug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  mrb_irep_debug_info_line
struct  mrb_irep_debug_info_file
struct  mrb_irep_debug_info


typedef enum mrb_debug_line_type mrb_debug_line_type
typedef struct mrb_irep_debug_info_line mrb_irep_debug_info_line
typedef struct mrb_irep_debug_info_file mrb_irep_debug_info_file
typedef struct mrb_irep_debug_info mrb_irep_debug_info


enum  mrb_debug_line_type { mrb_debug_line_ary = 0 , mrb_debug_line_flat_map = 1 }


const char * mrb_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 *info, 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)

Detailed Description

  • mruby debug info

See Copyright Notice in mruby.h

Definition in file debug.h.

Typedef Documentation

◆ mrb_debug_line_type

MRuby Debugging.

◆ mrb_irep_debug_info

◆ mrb_irep_debug_info_file

◆ mrb_irep_debug_info_line

Enumeration Type Documentation

◆ mrb_debug_line_type

MRuby Debugging.


Definition at line 17 of file debug.h.

Function Documentation

◆ 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 info,
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().