Gdb pretty printers (#8263)
This commit is contained in:
parent
217a2cf098
commit
97d37aeb0b
7 changed files with 638 additions and 3 deletions
|
|
@ -27,9 +27,9 @@ proc lineInfoToStr*(conf: ConfigRef; info: TLineInfo): Rope
|
|||
when declared(echo):
|
||||
# these are for debugging only: They are not really deprecated, but I want
|
||||
# the warning so that release versions do not contain debugging statements:
|
||||
proc debug*(n: PSym; conf: ConfigRef = nil) {.deprecated.}
|
||||
proc debug*(n: PType; conf: ConfigRef = nil) {.deprecated.}
|
||||
proc debug*(n: PNode; conf: ConfigRef = nil) {.deprecated.}
|
||||
proc debug*(n: PSym; conf: ConfigRef = nil) {.exportc: "debugSym", deprecated.}
|
||||
proc debug*(n: PType; conf: ConfigRef = nil) {.exportc: "debugType", deprecated.}
|
||||
proc debug*(n: PNode; conf: ConfigRef = nil) {.exportc: "debugNode", deprecated.}
|
||||
|
||||
template debug*(x: PSym|PType|PNode) {.deprecated.} =
|
||||
when compiles(c.config):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue