Author: dreimer Date: Sat Jul 14 18:35:00 2007 New Revision: 27658
URL: http://svn.reactos.org/svn/reactos?rev=27658&view=rev Log: Fix a typo in RosBE.cmd. Simplify RAddr.cmd. Start to modify reladdr2line.cmd With some luck its already working
Modified: trunk/tools/RosBE-Windows/Root/RAddr.cmd trunk/tools/RosBE-Windows/Root/RosBE.cmd trunk/tools/RosBE-Windows/Root/reladdr2line.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 Sat Jul 14 18:35:00 2007 @@ -11,17 +11,20 @@
title RAddr2Line...
+set 1 = %1 +set 2 = %2 + :: :: Receive the Parameters and decide what to do. :: -if "%1" == "" ( +if "%1%" == "" ( goto :MAN ) -if not "%1" == "" ( - if "%2" == "" ( +if not "%1%" == "" ( + if "%2%" == "" ( goto :AUTO1 ) else ( - goto :AUTO2 + goto :EOC ) )
@@ -30,23 +33,18 @@ :: :MAN echo Set the Path to the Executable to be examined. -SET /P EXE= +SET /P 1 = echo Set the Address you wanna analyze inside the Executable. -SET /P ADDR= +SET /P 2 = echo. -echo. -raddr2line "%EXE%" "%ADDR%" goto :EOC
:AUTO1 echo Set the Address you wanna analyze inside the Executable. -SET /P ADDR= -raddr2line "%1" "%ADDR%" -goto :EOC - -:AUTO2 -raddr2line "%1" "%2" +echo. +SET /P 2 = goto :EOC
:EOC +raddr2line "%1%" "%2%" title ReactOS Build Environment %_VER%
Modified: trunk/tools/RosBE-Windows/Root/RosBE.cmd URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/RosBE.cmd?... ============================================================================== --- trunk/tools/RosBE-Windows/Root/RosBE.cmd (original) +++ trunk/tools/RosBE-Windows/Root/RosBE.cmd Sat Jul 14 18:35:00 2007 @@ -62,7 +62,7 @@ :: dir /b "%_ROSSOURCEDIR%" 2>nul|grep -e ".*" >nul if errorlevel 1 ( - echo No ReactOS Source detected. Please use "svn create" to download it. + echo No ReactOS Source detected. Please use "ssvn create" to download it. goto :ExitRosBE ) else ( goto :ExitRosBE
Modified: trunk/tools/RosBE-Windows/Root/reladdr2line.cmd URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/reladdr2li... ============================================================================== --- trunk/tools/RosBE-Windows/Root/reladdr2line.cmd (original) +++ trunk/tools/RosBE-Windows/Root/reladdr2line.cmd Sat Jul 14 18:35:00 2007 @@ -10,9 +10,49 @@
title relAddr2Line...
-for /f "tokens=2" %%i in ('"objdump -p %1 2>NUL | findstr ImageBase"') do SET baseaddr=0x%%i -set /a baseaddr += 0x%2 +set 1 = %1 +set 2 = %2 + +:: +:: Receive the Parameters and decide what to do. +:: +if "%1%" == "" ( + goto :MAN +) +if not "%1%" == "" ( + if "%2%" == "" ( + goto :AUTO1 + ) else ( + goto :EOC + ) +) + +:: +:: 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 1 = +echo Set the Address you wanna analyze inside the Executable. +SET /P 2 = +echo. +goto :EOC + +:AUTO1 +echo Set the Address you wanna analyze inside the Executable. +echo. +SET /P 2 = +goto :EOC + +:EOC +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 ('"echoh %baseaddr%"') do set relbase=%%i -raddr2line "%1" "%relbase%" 2>NUL +raddr2line "%1%" "%relbase%" 2>NUL
title ReactOS Build Environment %_VER% + +::%1 Dateiname +::%2 Adresse +::%%i das was objdump rausfindet +::baseaddr = %%i + Adresse