@@ -106,7 +106,8 @@ declare sub hFlushDBG _
106106 ( _
107107 byval op as integer , _
108108 byval proc as FBSYMBOL ptr, _
109- byval ex as integer _
109+ byval ex as Integer , _
110+ ByVal filename As ZString Ptr _
110111 )
111112
112113declare sub hFlushLIT( byval op as integer , byval text as zstring ptr )
@@ -294,7 +295,8 @@ private sub _emit _
294295 byval v2 as IRVREG ptr, _
295296 byval vr as IRVREG ptr, _
296297 byval ex1 as FBSYMBOL ptr = NULL, _
297- byval ex2 as integer = 0 _
298+ byval ex2 as integer = 0 , _
299+ byval ex3 as ZString Ptr = 0 _
298300 ) static
299301
300302 dim as IRTAC ptr t
@@ -317,7 +319,8 @@ private sub _emit _
317319
318320 t->ex1 = ex1
319321 t->ex2 = ex2
320-
322+ t->ex3 = ex3
323+
321324 ctx.taccnt += 1
322325
323326end sub
@@ -679,10 +682,11 @@ private sub _emitDBG _
679682 ( _
680683 byval op as integer , _
681684 byval proc as FBSYMBOL ptr, _
682- byval ex as integer _
685+ byval ex As Integer , _
686+ ByVal filename As ZString Ptr _
683687 )
684688
685- _emit( op, NULL, NULL, NULL, proc, ex )
689+ _emit( op, NULL, NULL, NULL, proc, ex, filename )
686690
687691end sub
688692
@@ -1361,7 +1365,7 @@ private sub _flush static
13611365 hFlushMEM( op, v1, v2, t->ex2, t->ex1 )
13621366
13631367 case AST_NODECLASS_DBG
1364- hFlushDBG( op, t->ex1, t->ex2 )
1368+ hFlushDBG( op, t->ex1, t->ex2, t->ex3 )
13651369
13661370 case AST_NODECLASS_LIT
13671371 hFlushLIT( op, cast( any ptr, t->ex1 ) )
@@ -2397,12 +2401,13 @@ private sub hFlushDBG _
23972401 ( _
23982402 byval op as integer , _
23992403 byval proc as FBSYMBOL ptr, _
2400- byval ex as integer _
2404+ byval ex as Integer , _
2405+ ByVal filename As ZString Ptr _
24012406 )
24022407
24032408 select case as const op
24042409 case AST_OP_DBG_LINEINI
2405- emitDBGLineBegin( proc, ex )
2410+ emitDBGLineBegin( proc, ex, filename )
24062411
24072412 case AST_OP_DBG_LINEEND
24082413 emitDBGLineEnd( proc, ex )
0 commit comments