* fixes #21461; Move nim-gdb.py and add nim-lldb.py * fixes bad path for nim-gdb.py
This commit is contained in:
parent
2e2affb13c
commit
b2c5f8a05f
7 changed files with 1044 additions and 5 deletions
|
|
@ -14,7 +14,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Find out where the pretty printer Python module is
|
# Find out where the pretty printer Python module is
|
||||||
GDB_PYTHON_MODULE_PATH="$NIM_SYSROOT/tools/nim-gdb.py"
|
GDB_PYTHON_MODULE_PATH="$NIM_SYSROOT/tools/debug/nim-gdb.py"
|
||||||
|
|
||||||
# Run GDB with the additional arguments that load the pretty printers
|
# Run GDB with the additional arguments that load the pretty printers
|
||||||
# Set the environment variable `NIM_GDB` to overwrite the call to a
|
# Set the environment variable `NIM_GDB` to overwrite the call to a
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ for %%i in (nim.exe) do (set NIM_BIN=%%~dp$PATH:i)
|
||||||
|
|
||||||
for %%i in ("%NIM_BIN%\..\") do (set NIM_ROOT=%%~fi)
|
for %%i in ("%NIM_BIN%\..\") do (set NIM_ROOT=%%~fi)
|
||||||
|
|
||||||
set @GDB_PYTHON_MODULE_PATH=%NIM_ROOT%\tools\nim-gdb.py
|
set @GDB_PYTHON_MODULE_PATH=%NIM_ROOT%\tools\debug\nim-gdb.py
|
||||||
set @NIM_GDB=gdb.exe
|
set @NIM_GDB=gdb.exe
|
||||||
|
|
||||||
@echo source %@GDB_PYTHON_MODULE_PATH%> wingdbcommand.txt
|
@echo source %@GDB_PYTHON_MODULE_PATH%> wingdbcommand.txt
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ Files: "compiler"
|
||||||
Files: "doc"
|
Files: "doc"
|
||||||
Files: "doc/html"
|
Files: "doc/html"
|
||||||
Files: "tools"
|
Files: "tools"
|
||||||
Files: "tools/nim-gdb.py"
|
Files: "tools/debug/nim-gdb.py"
|
||||||
Files: "nimpretty"
|
Files: "nimpretty"
|
||||||
Files: "testament"
|
Files: "testament"
|
||||||
Files: "nimsuggest"
|
Files: "nimsuggest"
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ What to install:
|
||||||
|
|
||||||
- The expected stdlib location is `/usr/lib/nim/lib`, previously it was just `/usr/lib/nim`
|
- The expected stdlib location is `/usr/lib/nim/lib`, previously it was just `/usr/lib/nim`
|
||||||
- `nimdoc.css` and `nimdoc.cls` from the `doc` folder should go into `/usr/lib/nim/doc/`
|
- `nimdoc.css` and `nimdoc.cls` from the `doc` folder should go into `/usr/lib/nim/doc/`
|
||||||
- `tools/nim-gdb.py` should go into `/usr/lib/nim/tools/`
|
- `tools/debug/nim-gdb.py` should go into `/usr/lib/nim/tools/`
|
||||||
- `tools/dochack/dochack.js` should be installed to `/usr/lib/nim/tools/dochack/`
|
- `tools/dochack/dochack.js` should be installed to `/usr/lib/nim/tools/dochack/`
|
||||||
- Global configuration files under `/etc/nim`
|
- Global configuration files under `/etc/nim`
|
||||||
- Optionally: manpages, documentation, shell completion
|
- Optionally: manpages, documentation, shell completion
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import sys
|
||||||
# frontends might still be broken.
|
# frontends might still be broken.
|
||||||
|
|
||||||
gdb.execute("set python print-stack full")
|
gdb.execute("set python print-stack full")
|
||||||
gdb.execute("source ../../../tools/nim-gdb.py")
|
gdb.execute("source ../../../tools/debug/nim-gdb.py")
|
||||||
# debug all instances of the generic function `myDebug`, should be 14
|
# debug all instances of the generic function `myDebug`, should be 14
|
||||||
gdb.execute("rbreak myDebug")
|
gdb.execute("rbreak myDebug")
|
||||||
gdb.execute("run")
|
gdb.execute("run")
|
||||||
|
|
|
||||||
1039
tools/debug/nim-lldb.py
Normal file
1039
tools/debug/nim-lldb.py
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue