Author: peterw
Date: Thu Oct 25 07:50:41 2007
New Revision: 29865
URL:
http://svn.reactos.org/svn/reactos?rev=29865&view=rev
Log:
Silence an error msg I missed and make reladdr2line.cmd display the binary it's
reading from.
Modified:
trunk/tools/RosBE-Windows/Root/reladdr2line.cmd
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 Thu Oct 25 07:50:41 2007
@@ -49,6 +49,7 @@
echo ERROR: The path specified doesn't seem to exist.
goto :EOC
)
+echo %_1%
for /f "tokens=2" %%i in ('"objdump -p %_1% 2>NUL | findstr
ImageBase"') do set baseaddr=0x%%i
if %%i lss %_2% (
raddr2line "%_1%" "%_2%"
@@ -80,7 +81,7 @@
:CHECKPATH
chkslash %_1%
if errorlevel 2 (
- for /f "usebackq" %%i in (`"dir /a:-d /s /b %_1% | findstr
"%_1%""`) do set _1=%%i
+ for /f "usebackq" %%i in (`"dir /a:-d /s /b %_1% 2>NUL |
findstr "%_1%""`) do set _1=%%i
)
goto :EOF