Help - Search - Members - Calendar
Full Version: Request: Windbg Plugin
The CD Forum > Bart's PE Builder > Plugins
Reg
does anyone have plugin for the windows debugging tool Windbg.exe? This is part of the debugging tools for windows off the MS website.

Could be useful to analyse dump files and minidump files on crashed systems..perfect for Bartpe.
natcom
I will love a plug-in of that my self cause i used that program all the time
Reg
How Does this look...its a bit fat..but it works. Feel free to cut it down.

Ideally i would like to use batch file to prompt for input for all the required paramaters..thats is 1) Getting access to internet (check for proxy), 2) path for Dump file, 3) location to I386....ect similar to the one used in the stinger plugin that way it can launch

windbg -y SRV*c:\symbols*http://msdl.microsoft.com/download/symbols -i c:\i386 -z c:\dumps\minidump.dmp

Windebug.inf
CODE
; PE Builder v3 plug-in INF file for windebug
; Created by Administrator
; This inf-file was generated by the PluginBuilder
; Copyright by PapaTomTom Software

[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="windebug"
Enable=1
Help="windebug.htm"

; Sherpya's XPE-Support begin
[Software.AddReg]
0x2, "Sherpya\XPEinit\Programs", "Windbg", "%SystemDrive%\Programs\windebug\windbg.exe"
; Sherpya's XPE-Support end


[WinntDirectories]
a="Programs\windebug",2
b="Programs\windebug\1394",2
c="Programs\windebug\clr10",2
d="Programs\windebug\nt4chk",2
e="Programs\windebug\nt4fre",2
f="Programs\windebug\triage",2
g="Programs\windebug\usb",2
h="Programs\windebug\w2kchk",2
i="Programs\windebug\w2kfre",2
j="Programs\windebug\winext",2
k="Programs\windebug\winext\manifest",2
l="Programs\windebug\winxp",2

[SourceDisksFiles]
files\adplus.vbs=a,,3
files\breakin.exe=a,,3
files\cdb.exe=a,,3
files\dbengprx.exe=a,,3
files\dbgeng.dll=a,,3
files\dbghelp.dll=a,,3
files\dbgrpc.exe=a,,3
files\dbgsrv.exe=a,,3
files\debugger.chi=a,,3
files\debugger.chm=a,,3
files\decem.dll=a,,3
files\dumpchk.exe=a,,3
files\dumpexam.exe=a,,3
files\gflags.exe=a,,3
files\i386kd.exe=a,,3
files\ia64kd.exe=a,,3
files\kd.exe=a,,3
files\kdbgctrl.exe=a,,3
files\kdsrv.exe=a,,3
files\kill.exe=a,,3
files\license.txt=a,,3
files\list.exe=a,,3
files\logger.exe=a,,3
files\logviewer.exe=a,,3
files\ntsd.exe=a,,3
files\redist.txt=a,,3
files\relnotes.txt=a,,3
files\remote.exe=a,,3
files\srcsrv.dll=a,,3
files\symbolcheck.dll=a,,3
files\symchk.exe=a,,3
files\symsrv.dll=a,,3
files\symsrv.yes=a,,3
files\symstore.exe=a,,3
files\tlist.exe=a,,3
files\umdh.exe=a,,3
files\windbg.exe=a,,3
files\1394\*.*=b
files\clr10\*.*=c
files\nt4chk\*.*=d
files\nt4fre\*.*=e
files\triage\*.*=f
files\usb\*.*=g
files\w2kchk\*.*=h
files\w2kfre\*.*=i
files\winext\*.*=j
files\winext\manifest\*.*=k
files\winxp\*.*=l

[Append]
nu2menu.xml,windebug_nu2menu.xml


CODE
<!-- Nu2Menu entry for windebug -->
<NU2MENU>
   <MENU ID="Programs">
       <MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\windebug\windbg.exe))" CMD="RUN" FUNC="@GetProgramDrive()\Programs\windebug\windbg.exe">Windbg</MITEM>
</MENU>
</NU2MENU>
Reg
I'm not very good and bat files, but these can help windbg to be easier to use.

Windbg.cmd
CODE
@Echo Off
SET /p DUMPLOCATION=Enter the name and location of the Dump File (e.g C:\WINNT\Memory.DMP)
Start Dump.bat %DUMPLOCATION%


Dump.bat
CODE
@Echo Off
SET /p SYMBOLS=Enter the folder for Symbols to be saved(e.g B:\SYMBOLS)
SET /p Source=Enter the location of the I386 Source(e.g D:\I386)
windbg -y SRV*%SYMBOLS%*http://msdl.microsoft.com/download/symbols -i %SOURCE% -z %1
natcom
Those the plugin works ?
Reg
QUOTE (natcom @ Dec 26 2004, 03:37 AM)
Those the plugin works ?

Yeh..the plugin works for me biggrin.gif
natcom
what files do i need on the files dir ?
Reg
QUOTE (natcom @ Dec 28 2004, 02:47 AM)
what files do i need on the files dir ?

should have explained this a bit better, copy the contents of the program directory out of the "Windows Debugging Tools" folder.

I think windbg will only need the following files to run...
windbg.exe
dbgeng.dll
dbghelp.dll
debugger.chm
debugger.chi

But i suspect it might need some other files as well like symsrv.dll,symbolcheck.dll....so i've just copied them all for now. : )
natcom
Thank man for your work on this do i need the dump.bat ?
Reg
QUOTE (natcom @ Dec 29 2004, 01:37 AM)
Thank man for your work on this do i need the dump.bat  ?

No worries...

you probably don't need the dump.bat as can you can set all of the variables once the program has launched.
Reg
natcom

Hope you don't mind, but i thought i'd post your question so that other might be able to help...

The errors that seems to be the problem is
CODE
\pebuilder\Programs\windebug\usb\files\usb\*.*" returned error 3: The system cannot find the path specified.


I don't believe the other items

CODE
MSOXP Error Reporting.xpl" to "c:\pebuilder\Programs\X-Setup Pro\plugins\XQ MSOXP Error Reporting.xpl"


WinXP Error Reporting 1.xpl" to "c:\pebuilder\Programs\X-Setup Pro\plugins\XQ WinXP Error Reporting 1.xpl"


Error Reporting.xpl"
DecompressOrCopy file "G:\BART PE STUFF\pebuilder3032\plugin\XSP\files\plugins\XQ


2003 Error Reporting.xpl"
DecompressOrCopy file "G:\BART PE STUFF\pebuilder3032\plugin\XSP\files\plugins\XQ MSO2003 MRU 1.xpl" to "c:\pebuilder\Programs\X-Setup Pro\plugins\XQ MSO2003 MRU 1.xpl"


are related...

can you check the inf is the same as mine....detailed here

CODE
; PE Builder v3 plug-in INF file for windebug
; Created by Reg
; This inf-file was generated by the PluginBuilder
; Copyright by PapaTomTom Software

[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="Windows Debugging Tool"
Enable=1
Help="windebug.htm"

; Sherpya's XPE-Support begin
[Software.AddReg]
0x2, "Sherpya\XPEinit\Programs", "Windbg", "%SystemDrive%\Programs\windebug\windbg.exe"
; Sherpya's XPE-Support end


[WinntDirectories]
a="Programs\windebug",2
b="Programs\windebug\1394",2
c="Programs\windebug\clr10",2
d="Programs\windebug\nt4chk",2
e="Programs\windebug\nt4fre",2
f="Programs\windebug\triage",2
g="Programs\windebug\usb",2
h="Programs\windebug\w2kchk",2
i="Programs\windebug\w2kfre",2
j="Programs\windebug\winext",2
k="Programs\windebug\winext\manifest",2
l="Programs\windebug\winxp",2

[SourceDisksFiles]
files\windbg.cmd=a,,3
files\dump.bat=a,,3
files\adplus.vbs=a,,3
files\breakin.exe=a,,3
files\cdb.exe=a,,3
files\dbengprx.exe=a,,3
files\dbgeng.dll=a,,3
files\dbghelp.dll=a,,3
files\dbgrpc.exe=a,,3
files\dbgsrv.exe=a,,3
files\debugger.chi=a,,3
files\debugger.chm=a,,3
files\decem.dll=a,,3
files\dumpchk.exe=a,,3
files\dumpexam.exe=a,,3
files\gflags.exe=a,,3
files\i386kd.exe=a,,3
files\ia64kd.exe=a,,3
files\kd.exe=a,,3
files\kdbgctrl.exe=a,,3
files\kdsrv.exe=a,,3
files\kill.exe=a,,3
files\license.txt=a,,3
files\list.exe=a,,3
files\logger.exe=a,,3
files\logviewer.exe=a,,3
files\ntsd.exe=a,,3
files\redist.txt=a,,3
files\relnotes.txt=a,,3
files\remote.exe=a,,3
files\srcsrv.dll=a,,3
files\symbolcheck.dll=a,,3
files\symchk.exe=a,,3
files\symsrv.dll=a,,3
files\symsrv.yes=a,,3
files\symstore.exe=a,,3
files\tlist.exe=a,,3
files\umdh.exe=a,,3
files\windbg.exe=a,,3
files\1394\*.*=b
files\clr10\*.*=c
files\nt4chk\*.*=d
files\nt4fre\*.*=e
files\triage\*.*=f
files\usb\*.*=g
files\w2kchk\*.*=h
files\w2kfre\*.*=i
files\winext\*.*=j
files\winext\manifest\*.*=k
files\winxp\*.*=l

[Append]
nu2menu.xml,windebug_nu2menu.xml


Reg
natcom
Thank you Reg that was a good idea i have check the inf file and it look the same
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.