mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 04:27:44 +00:00
* fixes #21461; Move nim-gdb.py and add nim-lldb.py * fixes bad path for nim-gdb.py
This commit is contained in:
@@ -14,7 +14,7 @@ else
|
||||
fi
|
||||
|
||||
# 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
|
||||
# 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)
|
||||
|
||||
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
|
||||
|
||||
@echo source %@GDB_PYTHON_MODULE_PATH%> wingdbcommand.txt
|
||||
|
||||
@@ -65,7 +65,7 @@ Files: "compiler"
|
||||
Files: "doc"
|
||||
Files: "doc/html"
|
||||
Files: "tools"
|
||||
Files: "tools/nim-gdb.py"
|
||||
Files: "tools/debug/nim-gdb.py"
|
||||
Files: "nimpretty"
|
||||
Files: "testament"
|
||||
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`
|
||||
- `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/`
|
||||
- Global configuration files under `/etc/nim`
|
||||
- Optionally: manpages, documentation, shell completion
|
||||
|
||||
@@ -8,7 +8,7 @@ import sys
|
||||
# frontends might still be broken.
|
||||
|
||||
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
|
||||
gdb.execute("rbreak myDebug")
|
||||
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
Reference in New Issue
Block a user