libyasm
Data Structures | Functions
dbgfmt.h File Reference

YASM debug format interface. More...

Go to the source code of this file.

Data Structures

struct  yasm_dbgfmt_module
 Debug format module interface. More...
 

Functions

const char * yasm_dbgfmt_keyword (const yasm_dbgfmt *dbgfmt)
 Get the keyword used to select a debug format. More...
 
yasm_dbgfmtyasm_dbgfmt_create (const yasm_dbgfmt_module *module, yasm_object *object)
 Initialize debug output for use. More...
 
void yasm_dbgfmt_destroy (yasm_dbgfmt *dbgfmt)
 Cleans up any allocated debug format memory. More...
 
void yasm_dbgfmt_generate (yasm_object *object, yasm_linemap *linemap, yasm_errwarns *errwarns)
 Generate debugging information bytecodes. More...
 

Detailed Description

YASM debug format interface.

Definition in file dbgfmt.h.

Function Documentation

yasm_dbgfmt* yasm_dbgfmt_create ( const yasm_dbgfmt_module module,
yasm_object object 
)

Initialize debug output for use.

Must call before any other debug format functions. The filenames are provided solely for informational purposes.

Parameters
moduledebug format module
objectobject to generate debugging information for
Returns
NULL if object format does not provide needed support.
void yasm_dbgfmt_destroy ( yasm_dbgfmt dbgfmt)

Cleans up any allocated debug format memory.

Parameters
dbgfmtdebug format
void yasm_dbgfmt_generate ( yasm_object object,
yasm_linemap linemap,
yasm_errwarns errwarns 
)

Generate debugging information bytecodes.

Parameters
objectobject
linemapvirtual/physical line mapping
errwarnserror/warning set
Note
Errors and warnings are stored into errwarns.
const char* yasm_dbgfmt_keyword ( const yasm_dbgfmt dbgfmt)

Get the keyword used to select a debug format.

Parameters
dbgfmtdebug format
Returns
keyword