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