Skip to content

Commit

Permalink
Generated locals require extra gdb line output.
Browse files Browse the repository at this point in the history
  • Loading branch information
woollybah committed Apr 5, 2016
1 parent 87766f2 commit aaa3a7c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions translator.bmx
Expand Up @@ -647,6 +647,9 @@ End Rem
Local tmp:TLocalDecl=New TLocalDecl.Create( "",expr.exprType,expr, True )
MungDecl tmp
Emit TransLocalDecl( tmp,expr, True )+";"

EmitGDBDebug(_errInfo)

Return tmp.munged
End Method

Expand Down Expand Up @@ -1730,6 +1733,10 @@ End Rem
Local decl:TDecl = TDecl(obj)
Local infoArray:String[] = decl.errInfo[1..decl.errInfo.length-1].Split(";")
Emit "#line " + infoArray[1] + " " + Enquote(infoArray[0])
Else If String(obj) Then
Local errInfo:String = String(obj)
Local infoArray:String[] = errInfo[1..errInfo.length-1].Split(";")
Emit "#line " + infoArray[1] + " " + Enquote(infoArray[0])
End If
End If
End Method
Expand Down

0 comments on commit aaa3a7c

Please sign in to comment.