Try “bu YourDriver!YourFunction”.
Is this a boot driver there are other things you have to do.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Leahy, Barbara C
Sent: Friday, June 06, 2003 7:07 AM
To: Kernel Debugging Interest List
Subject: [windbg] RE: WinDbg and symbol files
Try command line prompt commands to check your symbols and then load or
reload symbols. Use search command in windbg help for info on symbols.
.sympath shows the symbols path. Is your pdb in this path?
.reload your_driver.sys This will reload the
symbols for your driver.
If .reload doesn’t work, try .load your_driver.sys
Try looking up info on .lm command, I think it may list symbols too. I
don’t have windbg info/help file on this machine to help with an exact
answer. Too early in the morning for me! There are more commands that
you can use for getting symbol info, I’m not sure what is documented in
the windbg help file. I’ve found the search and index options in the
help file are pretty useful.
Sleepy,
Barb
-----Original Message-----
From: He Man [mailto:xxxxx@yahoo.com]
Sent: Friday, June 06, 2003 6:35 AM
To: Kernel Debugging Interest List
Subject: [windbg] RE: WinDbg and symbol files
Started the debugger successfully. I dont know the
exact problem but rebooted the target and in WinDbg i
pressed ctrl+break. later i entered ‘g’ command to
make it run. but how to set a breakpoint in my
passthru driver code. I tried by mentioning the
function name but could not succeed. Is there any
special way to create breakpoints??
here is my procedure.
I copied the built passthru driver directory to my
local machine for its symbols (.pdb file). I
provided that path too in symbol, source, image paths.
Now debugger started successfully. I added breakpoints
by entering MpSend function of passthru IM( Miniport
side exposed function) from Breakpoints menu. But i do
not get any breaking over there when i type ‘g’ in the
command.
But when i type ‘bp MpSend’ it promtps for unresolved
symbol MpSend. But i copied passthru.pdb to my local
machine. I provided the exact path of passthru.pdb
once again to Symbol search. It prompted for
passthru.pdb not accessible. what could be the
problem?
From the passthru doc i found that it receives all the
packets from actual NIC and simply passes to protocol.
If so this function would have entered right. I tried
pinging the target, it responded but no breaks
occured in debugger. Am i missing something here.
Also while breaking will we get the source view like
other normal user mode debuggers. Kindly clear me.
Thanks
— xxxxx@NAI.com wrote:
MS Symbol server will work.
Follow the steps.
- Start the debugger
- boot the machine and select [Debugger Enabled]
option from boot.ini
- you should see in your debugger some info saying
it is connected.
If this does not work try to see if you connected
the debugger cable
wrong?
ONE MORE IMPORTANT POINT. You need to use NULL MODEM
CABLE. Not serial
cable. Are you sure you are using the right cable?
-Srin.
> -----Original Message-----
> From: He Man [mailto:xxxxx@yahoo.com]
> Sent: Friday, June 06, 2003 2:44 AM
> To: Kernel Debugging Interest List
> Subject: [windbg] RE: WinDbg and symbol files
>
> Hi Srin,
>
> Yes, some other application was using it at that
time.
> Now it is not prompting that error, but still it
shows
> the “debuggee not connected” at the bottom.
>
> Now the command prompt shows
>
> ---------------
> Microsoft (R) Windows Debugger Version 6.1.0017.2 Copyright (c)
> Microsoft Corporation. All rights reserved.
>
> Opened \.\com1
> Waiting to reconnect…
> -------------------
>
> it just hangs like this. What should i need to do?
>
> Also as Bhavesh specified, should i need to
download
> the symbols. But yesterday people replied an
another
> option of specified MS symbol server. Will that
not
> work? Kindly clear me.
>
> THanks.
>
> — xxxxx@NAI.com wrote:
> > Nix,
> > For some reason the debugger is not able to get
the
> > com port on
> > your host machine. Are you running any
applications
> > like palm
> > synchronizer or Active Sync or any application
which
> > is taking the com
> > port on host?
> >
> > -Srin.
> >
> > > -----Original Message-----
> > > From: He Man
[mailto:xxxxx@yahoo.com]
> > > Sent: Friday, June 06, 2003 1:46 AM
> > > To: Kernel Debugging Interest List
> > > Subject: [windbg] RE: WinDbg and symbol files
> > >
> > > Hi Srin,
> > >
> > > Thanks for the mail. I did the same and still
i
> > could
> > > not start with debugging. Here am explaining
my
> > > environment.
> > >
> > > 1. Downloaded the latest debugging tools from
MS
> > site
> > > and installed in my host (Win XP).
> > >
> > > 2. In my target (Win 2K) build the passthru
sample
> > IM
> > > driver and loaded it. Modified its boot.ini
with
> > > /debugport=com1 and /baudrate=19200. (also
tested
> > this
> > > connection with host using hyperterm, it
worked).
> > >
> > > 3. Started WinDbg from Program files. Set the
> > Symbols
> > > path from Menu by mentioning a local directory
as
> > > specified by you. i appended the path of
> > passthru.pdb
> > > file with a semicolon. (this path is the n/w
path
> > on
> > > the target)
> > >
> > > - Should i need to specify the image file path
and
> > > source file path? I set those with passthru
> > directory
> > > path on target.
> > >
> > > 4. Pressed Ctrl+K and set the port as com1 and
> > > baudrate as 19200. When pressed OK, it
prompted
> > for
> > > save and pressed yes.
> > >
> > > THe following is my command output.
> > > ------------------------------------
> > > Failed to open \.\com1
> > > Kernel debugger failed initialization, Win32
error
> > 5
> > > “Access is denied.”
> > > Symbol search path is:
> > >
> >
>
srv*f:\Symbols*http://msdl.microsoft.com/download/symbols;\\target\NTDDK
> > \s
> > > rc\network\
> > > ----------------------------------------------
> > >
> > > Actually i want to set a breakpoint in my IM
> > driver
> > > (protocolXxxx) exposed receive function to do
a
> > trace
> > > from there. Is there any fault in my
> > configuration?
> > > (the cable connection is correct and
> > working).Kindly
> > > help me on proceedign from here.
> > >
> > > Thanks,
> > > Nix.
> > > — xxxxx@NAI.com wrote:
> > > > Nix,
> > > > You need to set your symbol path in WinDBG
to
> > > > symbol server.
> > > > Microsoft symbol server has the symbols for
all
> > > > Microsoft OS drivers
> > > > (not for 9x)
> > > >
> > > > Add the following path to your symbols path
> > > >
> > >
> >
>
SRV*c:\websymbols*http://msdl.microsoft.com/download/symbols
> > > >
> > > > -Srin.
> > > >
> > > > > -----Original Message-----
> > > > > From: xxxxx@yahoo.com
> > > > [mailto:xxxxx@yahoo.com]
> > > > > Sent: Thursday, June 05, 2003 6:24 AM
> > > > > To: Kernel Debugging Interest List
> > > > > Subject: [windbg] WinDbg and symbol files
> > > > >
> > > > > Hi All,
> > > > >
> > > > > I am new to Windows arch and i am trying
the
> > > > passthru sample IM
> > > > driver. I
> > > > > want to debug that using WinDbg. I studied
DDK
> > > > debugger documents and
> > > > > found that “symbol files” need to be
> > installed.
> > > > Where can i find this
> > > > > symbol files for my OS? It is mentioned
> > customer
> > > > diagnostic CD in help
> > > > but
> > > > > i don’t have such thing. Is that needed?
> > > > >
> > > > > My environment is as follows.
> > > > >
> > > > >
=== message truncated ===
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook™.
http://calendar.yahoo.com
You are currently subscribed to windbg as: barbara.leahy@hp.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
You are currently subscribed to windbg as: xxxxx@microsoft.com To
unsubscribe send a blank email to xxxxx@lists.osr.com