summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2018-07-16 19:30:05 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-07-16 19:30:05 +0200
commit97d37aeb0bb1ed2997eddb3b7f8ef53cd04f10ef (patch)
tree889820d6b9e044d8d762543c50088893596453ea /compiler
parent217a2cf0982302b9d89d2c06fc96eaf72f0518fe (diff)
downloadNim-97d37aeb0bb1ed2997eddb3b7f8ef53cd04f10ef.tar.gz
Gdb pretty printers (#8263)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/astalgo.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim
index f474ca65e..333376f6a 100644
--- a/compiler/astalgo.nim
+++ b/compiler/astalgo.nim
@@ -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):