Skip to content

Commit b2c5f8a

Browse files
authored
fixes #21461 (#21463)
* fixes #21461; Move nim-gdb.py and add nim-lldb.py * fixes bad path for nim-gdb.py
1 parent 2e2affb commit b2c5f8a

File tree

7 files changed

+1044
-5
lines changed

7 files changed

+1044
-5
lines changed

bin/nim-gdb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ else
1414
fi
1515

1616
# Find out where the pretty printer Python module is
17-
GDB_PYTHON_MODULE_PATH="$NIM_SYSROOT/tools/nim-gdb.py"
17+
GDB_PYTHON_MODULE_PATH="$NIM_SYSROOT/tools/debug/nim-gdb.py"
1818

1919
# Run GDB with the additional arguments that load the pretty printers
2020
# Set the environment variable `NIM_GDB` to overwrite the call to a

bin/nim-gdb.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ for %%i in (nim.exe) do (set NIM_BIN=%%~dp$PATH:i)
33

44
for %%i in ("%NIM_BIN%\..\") do (set NIM_ROOT=%%~fi)
55

6-
set @GDB_PYTHON_MODULE_PATH=%NIM_ROOT%\tools\nim-gdb.py
6+
set @GDB_PYTHON_MODULE_PATH=%NIM_ROOT%\tools\debug\nim-gdb.py
77
set @NIM_GDB=gdb.exe
88

99
@echo source %@GDB_PYTHON_MODULE_PATH%> wingdbcommand.txt

compiler/installer.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Files: "compiler"
6565
Files: "doc"
6666
Files: "doc/html"
6767
Files: "tools"
68-
Files: "tools/nim-gdb.py"
68+
Files: "tools/debug/nim-gdb.py"
6969
Files: "nimpretty"
7070
Files: "testament"
7171
Files: "nimsuggest"

doc/packaging.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ What to install:
7171

7272
- The expected stdlib location is `/usr/lib/nim/lib`, previously it was just `/usr/lib/nim`
7373
- `nimdoc.css` and `nimdoc.cls` from the `doc` folder should go into `/usr/lib/nim/doc/`
74-
- `tools/nim-gdb.py` should go into `/usr/lib/nim/tools/`
74+
- `tools/debug/nim-gdb.py` should go into `/usr/lib/nim/tools/`
7575
- `tools/dochack/dochack.js` should be installed to `/usr/lib/nim/tools/dochack/`
7676
- Global configuration files under `/etc/nim`
7777
- Optionally: manpages, documentation, shell completion

tests/untestable/gdb/gdb_pretty_printer_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# frontends might still be broken.
99

1010
gdb.execute("set python print-stack full")
11-
gdb.execute("source ../../../tools/nim-gdb.py")
11+
gdb.execute("source ../../../tools/debug/nim-gdb.py")
1212
# debug all instances of the generic function `myDebug`, should be 14
1313
gdb.execute("rbreak myDebug")
1414
gdb.execute("run")
File renamed without changes.

0 commit comments

Comments
 (0)