nim-gdb.bat 355 B

123456789101112131415
  1. @echo off
  2. for %%i in (nim.exe) do (set NIM_BIN=%%~dp$PATH:i)
  3. for %%i in ("%NIM_BIN%\..\") do (set NIM_ROOT=%%~fi)
  4. set @GDB_PYTHON_MODULE_PATH=%NIM_ROOT%\tools\nim-gdb.py
  5. set @NIM_GDB=gdb.exe
  6. @echo source %@GDB_PYTHON_MODULE_PATH%> wingdbcommand.txt
  7. %@NIM_GDB% --command="wingdbcommand.txt" %*
  8. del wingdbcommand.txt /f /q
  9. EXIT /B %ERRORLEVEL%
  10. @echo on