Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLDB Pretty Printing #156

Draft
wants to merge 2 commits into
base: devel
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions a.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
type
Referencia = ref object
Ponteiro = ptr object
NaoRef = object
a: int

proc fn( a : int , b : any) : int =

let r = Referencia()
let n = NaoRef()
var v = NaoRef()

echo repr r
echo repr n
return a + 2

const a = (2 + 2 )

echo fn(a , Referencia() );

1 change: 0 additions & 1 deletion bin/empty.txt

This file was deleted.

25 changes: 0 additions & 25 deletions bin/nim-gdb

This file was deleted.

14 changes: 0 additions & 14 deletions bin/nim-gdb.bat

This file was deleted.

2 changes: 1 addition & 1 deletion compiler/docgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ proc exportSym(d: PDoc; s: PSym) =
changeFileExt(external, "html"),
symbolOrId])

proc documentNewEffect(cache: IdentCache; n: PNode): PNode =
proc documentNewEffect(cache: f; n: PNode): PNode =
let s = n[namePos].sym
if tfReturnsNew in s.typ.flags:
result = newIdentNode(getIdent(cache, "new"), n.info)
Expand Down
4 changes: 2 additions & 2 deletions compiler/vm.nim
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import ast except getstr
from semfold import leValueConv, ordinalValToString
from evaltempl import evalTemplate
from magicsys import getSysType

from astalgo import debug
const
traceCode = defined(nimVMDebug)

Expand Down Expand Up @@ -2287,7 +2287,7 @@ const evalMacroLimit = 1000
proc evalMacroCall*(module: PSym; idgen: IdGenerator; g: ModuleGraph; templInstCounter: ref int;
n, nOrig: PNode, sym: PSym): PNode =
#if g.config.errorCounter > 0: return errorNode(idgen, module, n)

debug( module )
# XXX globalError() is ugly here, but I don't know a better solution for now
inc(g.config.evalMacroCounter)
if g.config.evalMacroCounter > evalMacroLimit:
Expand Down
2 changes: 1 addition & 1 deletion koch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python

# Script to bootstrap `koch` if necessary
#
Expand Down
Loading