FreeBASIC  0.91.0
edbg_stab.bas File Reference
#include "fb.bi"
#include "fbint.bi"
#include "lex.bi"
#include "ir.bi"
#include "emit.bi"
#include "emitdbg.bi"
#include "stabs.bi"
Include dependency graph for edbg_stab.bas:

Go to the source code of this file.

Data Structures

class  EDBGCTX
 

Functions

sub hDeclUDT (byval_as_FBSYMBOL_ptr sym)
 
sub hDeclENUM (byval_as_FBSYMBOL_ptr sym)
 
function_as_string hDeclPointer (byref_as_integer dtype)
 
function_as_string hDeclArrayDims (byval_as_FBSYMBOL_ptr sym)
 
function_as_string hGetDataType (byval_as_FBSYMBOL_ptr sym, byval_as_integer do_array_typing=FALSE)
 
sub edbgInit ()
 
private sub hEmitSTABS (byval_as_integer _type, byval_as_const_zstring_ptr _string, byval_as_integer _other=0, byval_as_integer _desc=0, byval_as_const_zstring_ptr _value=@"0")
 
private function_as_zstring_ptr hMakeSTABN (byval_as_integer _type, byval_as_integer _other=0, byval_as_integer _desc=0, byval_as_const_zstring_ptr _value=0)
 
private sub hEmitSTABN (byval_as_integer _type, byval_as_integer _other=0, byval_as_integer _desc=0, byval_as_const_zstring_ptr _value=@"0")
 
private sub hEmitSTABD (byval_as_integer _type, byval_as_integer _other=0, byval_as_integer _desc=0)
 
private sub hLABEL (byval_as_zstring_ptr label)
 
sub edbgEmitHeader (byval_as_zstring_ptr filename)
 
sub edbgEmitFooter ()
 
sub edbgLineBegin (byval_as_FBSYMBOL_ptr proc, byval_as_integer lnum, byval_as_integer pos_)
 
sub edbgLineEnd (byval_as_FBSYMBOL_ptr proc, byval_as_integer lnum, byval_as_integer pos_)
 
sub edbgEmitLine (byval_as_FBSYMBOL_ptr proc, byval_as_integer lnum, byval_as_FBSYMBOL_ptr label)
 
sub edbgEmitLineFlush (byval_as_FBSYMBOL_ptr proc, byval_as_integer lnum, byval_as_FBSYMBOL_ptr label)
 
sub edbgScopeBegin (byval_as_FBSYMBOL_ptr s)
 
sub edbgScopeEnd (byval_as_FBSYMBOL_ptr s)
 
sub edbgEmitScopeINI (byval_as_FBSYMBOL_ptr s)
 
sub edbgEmitScopeEND (byval_as_FBSYMBOL_ptr s)
 
sub edbgProcBegin (byval_as_FBSYMBOL_ptr proc)
 
sub edbgProcEnd (byval_as_FBSYMBOL_ptr proc)
 
sub edbgProcEmitBegin (byval_as_FBSYMBOL_ptr proc)
 
private sub hDeclArgs (byval_as_FBSYMBOL_ptr proc)
 
sub edbgEmitProcHeader (byval_as_FBSYMBOL_ptr proc)
 
private sub hDeclLocalVars (byval_as_FBSYMBOL_ptr proc, byval_as_FBSYMBOL_ptr blk, byval_as_FBSYMBOL_ptr inilabel, byval_as_FBSYMBOL_ptr endlabel)
 
sub edbgEmitProcFooter (byval_as_FBSYMBOL_ptr proc, byval_as_FBSYMBOL_ptr initlabel, byval_as_FBSYMBOL_ptr exitlabel)
 
private function_as_string hDeclUdtField (byval_as_FBSYMBOL_ptr fld, byval_as_zstring_ptr stypeopt=NULL, byval_as_zstring_ptr idprefix=NULL, byval_as_integer baseoffset=0)
 
private function_as_string hDeclDynArray (byval_as_FBSYMBOL_ptr sym)
 
sub edbgEmitGlobalVar (byval_as_FBSYMBOL_ptr sym, byval_as_integer section)
 
sub edbgEmitLocalVar (byval_as_FBSYMBOL_ptr sym, byval_as_integer isstatic)
 
sub edbgEmitProcArg (byval_as_FBSYMBOL_ptr sym)
 
sub edbgInclude (byval_as_zstring_ptr incfile)
 

Variables

EDBGCTX ctx
 
integer remapTB [toFB_DATATYPES+1] =
 
const_zstring_ptr stabsTb [to+1] =
 

Function Documentation

sub edbgEmitFooter ( )

Definition at line 247 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgEmitGlobalVar ( byval_as_FBSYMBOL_ptr  sym,
byval_as_integer  section 
)

Definition at line 947 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgEmitHeader ( byval_as_zstring_ptr  filename)

Definition at line 207 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgEmitLine ( byval_as_FBSYMBOL_ptr  proc,
byval_as_integer  lnum,
byval_as_FBSYMBOL_ptr  label 
)

Definition at line 319 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgEmitLineFlush ( byval_as_FBSYMBOL_ptr  proc,
byval_as_integer  lnum,
byval_as_FBSYMBOL_ptr  label 
)

Definition at line 349 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgEmitLocalVar ( byval_as_FBSYMBOL_ptr  sym,
byval_as_integer  isstatic 
)

Definition at line 1018 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgEmitProcArg ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 1075 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgEmitProcFooter ( byval_as_FBSYMBOL_ptr  proc,
byval_as_FBSYMBOL_ptr  initlabel,
byval_as_FBSYMBOL_ptr  exitlabel 
)

Definition at line 619 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgEmitProcHeader ( byval_as_FBSYMBOL_ptr  proc)

Definition at line 480 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgEmitScopeEND ( byval_as_FBSYMBOL_ptr  s)

Definition at line 416 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgEmitScopeINI ( byval_as_FBSYMBOL_ptr  s)

Definition at line 402 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgInclude ( byval_as_zstring_ptr  incfile)

Definition at line 1105 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgInit ( )

Definition at line 97 of file edbg_stab.bas.

Here is the caller graph for this function:

sub edbgLineBegin ( byval_as_FBSYMBOL_ptr  proc,
byval_as_integer  lnum,
byval_as_integer  pos_ 
)

Definition at line 266 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgLineEnd ( byval_as_FBSYMBOL_ptr  proc,
byval_as_integer  lnum,
byval_as_integer  pos_ 
)

Definition at line 296 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgProcBegin ( byval_as_FBSYMBOL_ptr  proc)

Definition at line 430 of file edbg_stab.bas.

Here is the caller graph for this function:

sub edbgProcEmitBegin ( byval_as_FBSYMBOL_ptr  proc)

Definition at line 454 of file edbg_stab.bas.

Here is the caller graph for this function:

sub edbgProcEnd ( byval_as_FBSYMBOL_ptr  proc)

Definition at line 442 of file edbg_stab.bas.

Here is the caller graph for this function:

sub edbgScopeBegin ( byval_as_FBSYMBOL_ptr  s)

Definition at line 368 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub edbgScopeEnd ( byval_as_FBSYMBOL_ptr  s)

Definition at line 385 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub hDeclArgs ( byval_as_FBSYMBOL_ptr  proc)

Definition at line 465 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_string hDeclArrayDims ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 780 of file edbg_stab.bas.

Here is the caller graph for this function:

private function_as_string hDeclDynArray ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 687 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub hDeclENUM ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 918 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub hDeclLocalVars ( byval_as_FBSYMBOL_ptr  proc,
byval_as_FBSYMBOL_ptr  blk,
byval_as_FBSYMBOL_ptr  inilabel,
byval_as_FBSYMBOL_ptr  endlabel 
)

Definition at line 541 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_string hDeclPointer ( byref_as_integer  dtype)

Definition at line 761 of file edbg_stab.bas.

Here is the caller graph for this function:

private sub hDeclUDT ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 891 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_string hDeclUdtField ( byval_as_FBSYMBOL_ptr  fld,
byval_as_zstring_ptr  stypeopt = NULL,
byval_as_zstring_ptr  idprefix = NULL,
byval_as_integer  baseoffset = 0 
)

Definition at line 652 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub hEmitSTABD ( byval_as_integer  _type,
byval_as_integer  _other = 0,
byval_as_integer  _desc = 0 
)

Definition at line 174 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub hEmitSTABN ( byval_as_integer  _type,
byval_as_integer  _other = 0,
byval_as_integer  _desc = 0,
byval_as_const_zstring_ptr  _value = @"0" 
)

Definition at line 160 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub hEmitSTABS ( byval_as_integer  _type,
byval_as_const_zstring_ptr  _string,
byval_as_integer  _other = 0,
byval_as_integer  _desc = 0,
byval_as_const_zstring_ptr  _value = @"0" 
)

Definition at line 109 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_string hGetDataType ( byval_as_FBSYMBOL_ptr  sym,
byval_as_integer  do_array_typing = FALSE 
)

Definition at line 804 of file edbg_stab.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub hLABEL ( byval_as_zstring_ptr  label)

Definition at line 195 of file edbg_stab.bas.

Here is the caller graph for this function:

private function_as_zstring_ptr hMakeSTABN ( byval_as_integer  _type,
byval_as_integer  _other = 0,
byval_as_integer  _desc = 0,
byval_as_const_zstring_ptr  _value = 0 
)

Definition at line 136 of file edbg_stab.bas.

Here is the caller graph for this function:

Variable Documentation

EDBGCTX ctx

Definition at line 53 of file edbg_stab.bas.

integer remapTB[toFB_DATATYPES+1] =

Definition at line 55 of file edbg_stab.bas.

const_zstring_ptr stabsTb[to+1] =

Definition at line 78 of file edbg_stab.bas.