mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-23 11:29:44 +00:00
First Version of the KDBG Command. It uses log2lines to output the stuff coming from the pipe \\.\pipe\kdbg.
If you add the command "writelog", you will get a log in the format DBG-%date%-%time%.txt in the folder you are in right now. if %2 is declared, it will use this path for the log. Plz test. If you have suggetions or bugs, plz tell me. PS1 Port will follow later. svn path=/trunk/tools/RosBE/; revision=1158
This commit is contained in:
parent
0f8180bca4
commit
5626845c47
@ -52,6 +52,11 @@ if "%1" == "" (
|
||||
echo help [COMMAND] - Display the available commands or give help on a
|
||||
echo specific command.
|
||||
|
||||
if exist "%_ROSBE_BASEDIR%\kdbg.cmd" (
|
||||
echo kdbg [OPTIONS] - Outputs KDBG Debug Output and lets you give
|
||||
echo debug commands to it.
|
||||
)
|
||||
|
||||
if exist "%_ROSBE_BASEDIR%\raddr2line.cmd" (
|
||||
echo raddr2line [OPTIONS] - Translates program addresses into file names and
|
||||
echo line numbers to assist developers with finding
|
||||
@ -177,6 +182,14 @@ if "%1" == "" (
|
||||
) else if /i "%1" == "help" (
|
||||
echo Usage: help [COMMAND]
|
||||
echo Shows help for the specified command or lists all available commands.
|
||||
) else if /i "%1" == "kdbg" (
|
||||
if exist "%_ROSBE_BASEDIR%\kdbg.cmd" (
|
||||
echo Usage: kdbg [LOGFILE] [PIPE]
|
||||
echo Outputs KDBG Debug Output and lets you give debug commands to it.
|
||||
echo.
|
||||
echo WRITELOG - Outputs the Log File to ".\DBG-%DATE%-%TIME%.txt".
|
||||
echo.
|
||||
)
|
||||
) else if /i "%1" == "raddr2line" (
|
||||
if exist "%_ROSBE_BASEDIR%\raddr2line.cmd" (
|
||||
echo Usage: raddr2line [FILE] [ADDRESS]
|
||||
|
34
RosBE-Windows/Root/kdbg.cmd
Normal file
34
RosBE-Windows/Root/kdbg.cmd
Normal file
@ -0,0 +1,34 @@
|
||||
::
|
||||
:: PROJECT: RosBE - ReactOS Build Environment for Windows
|
||||
:: LICENSE: GNU General Public License v2. (see LICENSE.txt)
|
||||
:: FILE: Root/kdbg.cmd
|
||||
:: PURPOSE: Displays a KDBG Session Interactively.
|
||||
:: COPYRIGHT: Copyright 2010 Daniel Reimer <reimer.daniel@freenet.de>
|
||||
::
|
||||
|
||||
@echo off
|
||||
if not defined _ROSBE_DEBUG set _ROSBE_DEBUG=0
|
||||
if %_ROSBE_DEBUG% == 1 (
|
||||
@echo on
|
||||
)
|
||||
|
||||
call "%_ROSBE_BASEDIR%\TimeDate.cmd"
|
||||
|
||||
title kdbg Session...
|
||||
|
||||
if "%1" == "writelog" (
|
||||
if "%2" == "" (
|
||||
set LOGFILE=-l DBG-%datename%-%timename%.txt
|
||||
) else (
|
||||
set LOGFILE=-l %2
|
||||
)
|
||||
) else (
|
||||
set LOGFILE=
|
||||
)
|
||||
|
||||
echo Now Start your VM with COM1 set to \\.\pipe\kdbg
|
||||
pause
|
||||
|
||||
log2lines -c %LOGFILE% < \\.\pipe\kdbg
|
||||
|
||||
title ReactOS Build Environment %_ROSBE_VERSION%
|
Loading…
Reference in New Issue
Block a user