Author: dreimer
Date: Tue Jan 19 16:51:20 2010
New Revision: 45151
URL:
http://svn.reactos.org/svn/reactos?rev=45151&view=rev
Log:
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.
Added:
trunk/tools/RosBE/RosBE-Windows/Root/kdbg.cmd (with props)
Modified:
trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd
Modified: trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Hel…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd [iso-8859-1] Tue Jan 19 16:51:20 2010
@@ -52,6 +52,11 @@
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 @@
) 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]
Added: trunk/tools/RosBE/RosBE-Windows/Root/kdbg.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/kdb…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/kdbg.cmd (added)
+++ trunk/tools/RosBE/RosBE-Windows/Root/kdbg.cmd [iso-8859-1] Tue Jan 19 16:51:20 2010
@@ -1,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(a)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%
Propchange: trunk/tools/RosBE/RosBE-Windows/Root/kdbg.cmd
------------------------------------------------------------------------------
svn:eol-style = native