windbg:problem in viewing local variables

Heelo,
I’m facing problems in viewing local variables through windbg 2.0.23.0 while
kernel mode debugging.
When the debugger breaks in my code, I click view->locals, I see only
deviceObject, irp, outputbufferlength, inputbufferlength, inputbuffer,
outputbuffer. It doesn’t show me the list of all my locals. I tries with
view->watch & specified the name of local variable. But windbg gives me
following error message:-
Module “ntoskrnl” was not found in the module list.
Debugger will attempt to load module “ntoskrnl” by guessing the base
address.
Please provide the full image name, including the extension (i.e.
kernel32.dll) for more reliable results.
Loading symbols for 00000000 ntoskrnl -> SymLoadModule(F0F0F0F0, 00000000,
“ntoskrnl”, “ntoskrnl”, 00000000, 0) fails
*************************************************************************
*** Your debugger is not using the correct symbols ***
*** In order for this command to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*************************************************************************

When I give “LM” command, it shows me ntoskrnl & also my driver’s pdb file
as loaded modules.
In the Symbol path, I’ve specified the path c:/winnt/symbols & my driver’s
pdb path.
Where should I put my driver’s pdb on target machine ? I’ve put it in
c:\winnt\symbols\exe path.
I’ve copied debug symbols from Customer support diagnostics CD & my target
machin is
having checked build 2000 OS.
What is wrong in my setup ? Please help me out.
Thanks in advance.
Aparna


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Looking in your build file to ensure that the /Od parameter is on your
compiler line. If not, add the following to your sources file.

!IF “$(DDKBUILDENV)” == “checked”
MSC_OPTIMIZATION=/Od
!ELSE
MSC_OPTIMIZATION=
!ENDIF

Mark J. Cariddi
Consulting Associate
Open Systems Resources, Inc.
http://www.osr.com/

-----Original Message-----
From: Aparna Sachin Argade [mailto:xxxxx@wipro.com]
Sent: Thursday, April 19, 2001 12:56 AM
To: NT Developers Interest List
Subject: [ntdev] windbg:problem in viewing local variables

Heelo,
I’m facing problems in viewing local variables through windbg 2.0.23.0 while
kernel mode debugging.
When the debugger breaks in my code, I click view->locals, I see only
deviceObject, irp, outputbufferlength, inputbufferlength, inputbuffer,
outputbuffer. It doesn’t show me the list of all my locals. I tries with
view->watch & specified the name of local variable. But windbg gives me
following error message:-
Module “ntoskrnl” was not found in the module list.
Debugger will attempt to load module “ntoskrnl” by guessing the base
address.
Please provide the full image name, including the extension (i.e.
kernel32.dll) for more reliable results.
Loading symbols for 00000000 ntoskrnl -> SymLoadModule(F0F0F0F0, 00000000,
“ntoskrnl”, “ntoskrnl”, 00000000, 0) fails
*************************************************************************
*** Your debugger is not using the correct symbols ***
*** In order for this command to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*************************************************************************

When I give “LM” command, it shows me ntoskrnl & also my driver’s pdb file
as loaded modules.
In the Symbol path, I’ve specified the path c:/winnt/symbols & my driver’s
pdb path.
Where should I put my driver’s pdb on target machine ? I’ve put it in
c:\winnt\symbols\exe path.
I’ve copied debug symbols from Customer support diagnostics CD & my target
machin is
having checked build 2000 OS.
What is wrong in my setup ? Please help me out.
Thanks in advance.
Aparna


You are currently subscribed to ntdev as: xxxxx@osr.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> Where should I put my driver’s pdb on target machine ? I’ve put it in

You must not do this.

Place the SYS and PDB files of your driver to some directory on the host
machine.
Then set this directory as a symbol path for WinDbg.
Then say:

!reload yourdriver.sys

  • this will work.
    Usually,

x yourdriver!*

also causes the symbol load and anyway is useful to check the correctness of
the symbols.

Max


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Mark,
Thanks a lot. It worked, now I can see all local variables.
Aparna
----- Original Message -----
From: “Mark Cariddi”
To: “NT Developers Interest List”
Sent: Thursday, April 19, 2001 5:01 PM
Subject: [ntdev] RE: windbg:problem in viewing local variables

> Looking in your build file to ensure that the /Od parameter is on your
> compiler line. If not, add the following to your sources file.
>
> !IF “$(DDKBUILDENV)” == “checked”
> MSC_OPTIMIZATION=/Od
> !ELSE
> MSC_OPTIMIZATION=
> !ENDIF
>
> Mark J. Cariddi
> Consulting Associate
> Open Systems Resources, Inc.
> http://www.osr.com/
>
>
> -----Original Message-----
> From: Aparna Sachin Argade [mailto:xxxxx@wipro.com]
> Sent: Thursday, April 19, 2001 12:56 AM
> To: NT Developers Interest List
> Subject: [ntdev] windbg:problem in viewing local variables
>
>
> Heelo,
> I’m facing problems in viewing local variables through windbg 2.0.23.0
while
> kernel mode debugging.
> When the debugger breaks in my code, I click view->locals, I see only
> deviceObject, irp, outputbufferlength, inputbufferlength, inputbuffer,
> outputbuffer. It doesn’t show me the list of all my locals. I tries with
> view->watch & specified the name of local variable. But windbg gives me
> following error message:-
> Module “ntoskrnl” was not found in the module list.
> Debugger will attempt to load module “ntoskrnl” by guessing the base
> address.
> Please provide the full image name, including the extension (i.e.
> kernel32.dll) for more reliable results.
> Loading symbols for 00000000 ntoskrnl -> SymLoadModule(F0F0F0F0, 00000000,
> “ntoskrnl”, “ntoskrnl”, 00000000, 0) fails
>
>
Your debugger is not using the correct symbols
>
In order for this command to work properly, your symbol path
>
must point to .pdb files that have full type information.
>
Certain .pdb files (such as the public OS symbols) do not
>
contain the required information. Contact the group that
>
provided you with these symbols if you need this command to
>
work.
>

>
> When I give “LM” command, it shows me ntoskrnl & also my driver’s pdb
file
> as loaded modules.
> In the Symbol path, I’ve specified the path c:/winnt/symbols & my driver’s
> pdb path.
> Where should I put my driver’s pdb on target machine ? I’ve put it in
> c:\winnt\symbols\exe path.
> I’ve copied debug symbols from Customer support diagnostics CD & my target
> machin is
> having checked build 2000 OS.
> What is wrong in my setup ? Please help me out.
> Thanks in advance.
> Aparna
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@osr.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@wipro.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com