Author: dreimer
Date: Tue Jun 19 01:49:44 2007
New Revision: 27231
URL: http://svn.reactos.org/svn/reactos?rev=27231&view=rev
Log:
I don't know if it is a common phenomenon, but everytime I commit stuff, I IMMEDIATELY find things to fix/change afterwards....
- Added ability to set non, only executable or both parameters. Missing stuff will be asked for then.
- Added Comments
Modified:
trunk/tools/RosBE-Windows/Root/RAddr.cmd
Modified: trunk/tools/RosBE-Windows/Root/RAddr.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/RAddr.cmd…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/RAddr.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/RAddr.cmd Tue Jun 19 01:49:44 2007
@@ -10,17 +10,23 @@
title RAddr2Line...
+::
+:: Receive the Parameters and decide what to do.
+::
if "%1" == "" (
goto :MAN
)
if not "%1" == "" (
if "%2" == "" (
- echo No Address Set.
- goto :EOF
+ goto :AUTO1
) else (
- goto :AUTO
+ goto :AUTO2
+ )
)
+::
+:: If Parameters were set, parse them, if not, ask the user to add them.
+::
:MAN
echo Set the Path to the Executable to be examined.
SET /P EXE=
@@ -29,6 +35,14 @@
echo.
echo.
"%ROSBEBASEDIR%\Tools\raddr2line.exe" %EXE% %ADDR%
+goto :EOF
-:AUTO
-"%ROSBEBASEDIR%\Tools\raddr2line.exe" %1 %2
+:AUTO1
+echo Set the Address you wanna analyze inside the Executable.
+SET /P ADDR=
+"%ROSBEBASEDIR%\Tools\raddr2line.exe" %1 %ADDR%
+goto :EOF
+
+:AUTO2
+"%ROSBEBASEDIR%\Tools\raddr2line.exe" %1 %2
+goto :EOF
Author: dreimer
Date: Tue Jun 19 01:08:09 2007
New Revision: 27229
URL: http://svn.reactos.org/svn/reactos?rev=27229&view=rev
Log:
- Head0rz t0 teh masses.
- Fix a typo in Help.cmd
Modified:
trunk/tools/RosBE-Windows/Root/Help.cmd
trunk/tools/RosBE-Windows/Root/reladdr2line.cmd
Modified: trunk/tools/RosBE-Windows/Root/Help.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/Help.cmd?…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/Help.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/Help.cmd Tue Jun 19 01:08:09 2007
@@ -25,7 +25,7 @@
echo RosBE build logs.
echo help [COMMAND] - Display the available commands or help on a
echo specific command.
- echo svn [OPTIONS] - Create, Update or clean up your ReactOS Source
+ echo svn [OPTIONS] - Create, Update or Clean-up your ReactOS Source
echo Tree or show the Status.
echo config [OPTIONS]- Configures the way, ReactOS will be built.
echo.
Modified: trunk/tools/RosBE-Windows/Root/reladdr2line.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/reladdr2l…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/reladdr2line.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/reladdr2line.cmd Tue Jun 19 01:08:09 2007
@@ -1,4 +1,13 @@
+::
+:: PROJECT: RosBE - ReactOS Build Environment for Windows
+:: LICENSE: GPL - See COPYING in the top level directory
+:: FILE: Root/reladdr2line.cmd
+:: PURPOSE: Converts a value to hex and displays it
+:: COPYRIGHT: Copyright 2007 Christoph von Wittich <Christoph_vW(a)reactos.org>
+::
+::
@echo off
+
for /f "tokens=2" %%i in ('"objdump -p %1 2>NUL | findstr ImageBase"') do SET baseaddr=0x%%i
set /a baseaddr += 0x%2
for /f %%i in ('"%ROSBEBASEDIR%\Tools\echoh %baseaddr%"') do set relbase=%%i