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.

Host: Win XP (Installed with DDK 2000)

Target: Win 2k (Installed with DDK 2000)

I have one more CD names Win 2K profession debug/ Checked build SP3. I
have not installed this in Win 2k machine. Should i need to do this?
Kindly clear my basic doubts and am absolutely new to Win environment.

Thanks,
Nix.

IMHO simplest way of accessing correct OS symbols is using microsofts public
symbol store. This can be achieved by entering
“SRV*[local symbol cache]*http://msdl.microsoft.com/download/symbols;[your
additional symbol path e.g. pointing to your compiled project]”
to “Symbol File Path” in WinDbg, whereby [local symbol cache] is a place at
your local hardrive, e.g. “C:\symbols”, where (atomatically) downloaded
symbols are stored.
Refer to “Using SymSrv” in WinDbg documentation or
http:
for further details.

The so-called “Checked Build” of a Windows OS is a build with additional run
time checks enabled wich helps to find bugs in drivers (services,
applications, etc.). But this is a completely different aspect than having
debug symbols for the OS.

Otherwise Microsoft ships symbols on the "Customer Diagnostic CD"s you
already mentioned resp. they did it in the past at least. You would need the
CD according to your target OS - W2k (exactly free or checked) - and the
correct symbols according to any installed service pack. You avoid this punk
by using the symbol server.

Regards,
Volker

> -----Original Message-----
> From: xxxxx@yahoo.com [mailto:xxxxx@yahoo.com]
> Sent: Thursday, June 05, 2003 3:24 PM
> 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.
>
>
> Host: Win XP (Installed with DDK 2000)
>
> Target: Win 2k (Installed with DDK 2000)
>
> I have one more CD names Win 2K profession debug/ Checked build SP3. I
> have not installed this in Win 2k machine. Should i need to do this?
> Kindly clear my basic doubts and am absolutely new to Win environment.
>
> Thanks,
> Nix.
>
> —
> You are currently subscribed to windbg as:
> xxxxx@baslerweb.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
></http:>

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.

Host: Win XP (Installed with DDK 2000)

Target: Win 2k (Installed with DDK 2000)

I have one more CD names Win 2K profession debug/ Checked build SP3. I
have not installed this in Win 2k machine. Should i need to do this?
Kindly clear my basic doubts and am absolutely new to Win environment.

Thanks,
Nix.


You are currently subscribed to windbg as: xxxxx@nai.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

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.
  1. 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\src\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.
>
>
> Host: Win XP (Installed with DDK 2000)
>
> Target: Win 2k (Installed with DDK 2000)
>
> I have one more CD names Win 2K profession debug/
Checked build SP3. I
> have not installed this in Win 2k machine. Should
i need to do this?
> Kindly clear my basic doubts and am absolutely new
to Win environment.
>
> Thanks,
> Nix.
>
> —
> You are currently subscribed to windbg as:
xxxxx@nai.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com


You are currently subscribed to windbg as:
xxxxx@yahoo.com
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook™.
http://calendar.yahoo.com

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.
  1. 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.
> >
> >
> > Host: Win XP (Installed with DDK 2000)
> >
> > Target: Win 2k (Installed with DDK 2000)
> >
> > I have one more CD names Win 2K profession debug/
> Checked build SP3. I
> > have not installed this in Win 2k machine. Should
> i need to do this?
> > Kindly clear my basic doubts and am absolutely new
> to Win environment.
> >
> > Thanks,
> > Nix.
> >
> > —
> > You are currently subscribed to windbg as:
> xxxxx@nai.com
> > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> You are currently subscribed to windbg as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com


Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook™.
http://calendar.yahoo.com


You are currently subscribed to windbg as: xxxxx@nai.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi,

you are going on right track.if u want to debug ur sample IM driver then u must install symbol files on your host computer.
if ur target m/c has Win 2K then u have to install Win 2K symbol files on host m/c. if u have not diagnostic CD then u can download it from Microsoft site but without it u can not debug ur driver.

Best of Luck.
Bye

----- Original Message -----
From:
To: “Kernel Debugging Interest List”
Sent: Thursday, June 05, 2003 6:54 PM
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.
>
>
> Host: Win XP (Installed with DDK 2000)
>
> Target: Win 2k (Installed with DDK 2000)
>
> I have one more CD names Win 2K profession debug/ Checked build SP3. I
> have not installed this in Win 2k machine. Should i need to do this?
> Kindly clear my basic doubts and am absolutely new to Win environment.
>
> Thanks,
> Nix.
>
> —
> You are currently subscribed to windbg as: xxxxx@sahajanandsoftware.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

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.
> > >
> > >
> > > Host: Win XP (Installed with DDK 2000)
> > >
> > > Target: Win 2k (Installed with DDK 2000)
> > >
> > > I have one more CD names Win 2K profession
debug/
> > Checked build SP3. I
> > > have not installed this in Win 2k machine.
Should
> > i need to do this?
> > > Kindly clear my basic doubts and am absolutely
new
> > to Win environment.
> > >
> > > Thanks,
> > > Nix.
> > >
> > > —
> > > You are currently subscribed to windbg as:
> > xxxxx@nai.com
> > > To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
> >
> > —
> > You are currently subscribed to windbg as:
> > xxxxx@yahoo.com
> > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync
to Outlook™.
> http://calendar.yahoo.com
>
>
> —
> You are currently subscribed to windbg as:
xxxxx@nai.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com


You are currently subscribed to windbg as:
xxxxx@yahoo.com
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook™.
http://calendar.yahoo.com

MS Symbol server will work.
Follow the steps.

  1. Start the debugger
  2. boot the machine and select [Debugger Enabled] option from boot.ini
  3. 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.
> > > >
> > > >
> > > > Host: Win XP (Installed with DDK 2000)
> > > >
> > > > Target: Win 2k (Installed with DDK 2000)
> > > >
> > > > I have one more CD names Win 2K profession
> debug/
> > > Checked build SP3. I
> > > > have not installed this in Win 2k machine.
> Should
> > > i need to do this?
> > > > Kindly clear my basic doubts and am absolutely
> new
> > > to Win environment.
> > > >
> > > > Thanks,
> > > > Nix.
> > > >
> > > > —
> > > > You are currently subscribed to windbg as:
> > > xxxxx@nai.com
> > > > To unsubscribe send a blank email to
> > > xxxxx@lists.osr.com
> > >
> > >
> > > —
> > > You are currently subscribed to windbg as:
> > > xxxxx@yahoo.com
> > > To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Calendar - Free online calendar with sync
> to Outlook™.
> > http://calendar.yahoo.com
> >
> >
> > —
> > You are currently subscribed to windbg as:
> xxxxx@nai.com
> > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> You are currently subscribed to windbg as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com


Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook™.
http://calendar.yahoo.com


You are currently subscribed to windbg as: xxxxx@nai.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

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.

  1. Start the debugger
  2. boot the machine and select [Debugger Enabled]
    option from boot.ini
  3. 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

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.

  1. Start the debugger
  2. boot the machine and select [Debugger Enabled]
    option from boot.ini
  3. 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

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.

  1. Start the debugger
  2. boot the machine and select [Debugger Enabled]
    option from boot.ini
  3. 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