Problem with Viewing Local variables in Windbg

I cannot get to see the local variables in my Windbg.

I can see the debug output of the driver OK and can place break points, look at the call stack etc. But for some reason the Local variables is just blank.

I got a new system and had to reload all software new and this is the first time I am trying to use Windbg after that.

I gave the Symbol File path SRV*c:\localsymbols*http://msdl.microsoft.com/download/symbols; Followed by my .sys file path. And it is pulling the driver with .kdfiles fine.

So, I am not sure what the problem is.

Thanks,
Vidya

Is this an optimized or debug build? The vars might not exist in an optimized build. Are you seeing your function names correctly? What does !lmi say?

d

debt from my phone

-----Original Message-----
From: Dharmaraju, Vidyadhari
Sent: Thursday, June 09, 2011 6:31 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Problem with Viewing Local variables in Windbg

I cannot get to see the local variables in my Windbg.

I can see the debug output of the driver OK and can place break points, look at the call stack etc. But for some reason the Local variables is just blank.

I got a new system and had to reload all software new and this is the first time I am trying to use Windbg after that.

I gave the Symbol File path SRVc:\localsymbolshttp://msdl.microsoft.com/download/symbols; Followed by my .sys file path. And it is pulling the driver with .kdfiles fine.

So, I am not sure what the problem is.

Thanks,
Vidya


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

What does ‘dv’ say?

Mm
On Jun 9, 2011 9:29 PM, “Dharmaraju, Vidyadhari” <
xxxxx@intel.com> wrote:

I cannot get to see the local variables in my Windbg.

I can see the debug output of the driver OK and can place break points,
look at the call stack etc. But for some reason the Local variables is just
blank.

I got a new system and had to reload all software new and this is the
first time I am trying to use Windbg after that.

I gave the Symbol File path SRV*c:\localsymbols*
http://msdl.microsoft.com/download/symbols; Followed by my .sys file path.
And it is pulling the driver with .kdfiles fine.

So, I am not sure what the problem is.

Thanks,
Vidya


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Did you specify your driver .pdb file path?

This is a checked build, normal build, not optimized.

Following is the information from !lmi <my_driver.sys>

Loaded Module Info: [xhcidrv.sys]
Module: XHCIdrv
Base Address: 980a4000
Image Name: XHCIdrv.sys
Machine Type: 332 (I386)
Time Stamp: 4df44c56 Sat Jun 11 22:19:18 2011
Size: 27280
CheckSum: 3717f
Characteristics: 102
Debug Data Dirs: Type Size VA Pointer
CODEVIEW 61, 21b98, 21b98 RSDS - GUID: {AE20B9D8-6B39-4F02-B132-E8FA949FFDBB}
Age: 1, Pdb: c:\projects\branch\vidya\drivers\xhcidrv\objchk_wxp_x86\i386\XHCIdrv.pdb
Image Type: MEMORY - Image read successfully from loaded memory.
Symbol Type: PDB - Symbols loaded successfully from image header.
c:\projects\branch\vidya\drivers\xhcidrv\objchk_wxp_x86\i386\XHCIdrv.pdb
Compiler: Resource - front end [0.0 bld 0] - back end [9.0 bld 30729]
Load Report: private symbols & lines, not source indexed
c:\projects\branch\vidya\drivers\xhcidrv\objchk_wxp_x86\i386\XHCIdrv.pdb

Thanks,
Vidya

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Thursday, June 09, 2011 6:53 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Problem with Viewing Local variables in Windbg

Is this an optimized or debug build? The vars might not exist in an optimized build. Are you seeing your function names correctly? What does !lmi say?

d

debt from my phone

-----Original Message-----
From: Dharmaraju, Vidyadhari
Sent: Thursday, June 09, 2011 6:31 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Problem with Viewing Local variables in Windbg

I cannot get to see the local variables in my Windbg.

I can see the debug output of the driver OK and can place break points, look at the call stack etc. But for some reason the Local variables is just blank.

I got a new system and had to reload all software new and this is the first time I am trying to use Windbg after that.

I gave the Symbol File path SRVc:\localsymbolshttp://msdl.microsoft.com/download/symbols; Followed by my .sys file path. And it is pulling the driver with .kdfiles fine.

So, I am not sure what the problem is.

Thanks,
Vidya


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</my_driver.sys>

dv doesn’t work when you are your own function frame?

d

debt from my phone

-----Original Message-----
From: Dharmaraju, Vidyadhari
Sent: Saturday, June 11, 2011 10:41 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Problem with Viewing Local variables in Windbg

This is a checked build, normal build, not optimized.

Following is the information from !lmi <my_driver.sys>

Loaded Module Info: [xhcidrv.sys]
Module: XHCIdrv
Base Address: 980a4000
Image Name: XHCIdrv.sys
Machine Type: 332 (I386)
Time Stamp: 4df44c56 Sat Jun 11 22:19:18 2011
Size: 27280
CheckSum: 3717f
Characteristics: 102
Debug Data Dirs: Type Size VA Pointer
CODEVIEW 61, 21b98, 21b98 RSDS - GUID: {AE20B9D8-6B39-4F02-B132-E8FA949FFDBB}
Age: 1, Pdb: c:\projects\branch\vidya\drivers\xhcidrv\objchk_wxp_x86\i386\XHCIdrv.pdb
Image Type: MEMORY - Image read successfully from loaded memory.
Symbol Type: PDB - Symbols loaded successfully from image header.
c:\projects\branch\vidya\drivers\xhcidrv\objchk_wxp_x86\i386\XHCIdrv.pdb
Compiler: Resource - front end [0.0 bld 0] - back end [9.0 bld 30729]
Load Report: private symbols & lines, not source indexed
c:\projects\branch\vidya\drivers\xhcidrv\objchk_wxp_x86\i386\XHCIdrv.pdb

Thanks,
Vidya

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Thursday, June 09, 2011 6:53 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Problem with Viewing Local variables in Windbg

Is this an optimized or debug build? The vars might not exist in an optimized build. Are you seeing your function names correctly? What does !lmi say?

d

debt from my phone

-----Original Message-----
From: Dharmaraju, Vidyadhari
Sent: Thursday, June 09, 2011 6:31 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Problem with Viewing Local variables in Windbg

I cannot get to see the local variables in my Windbg.

I can see the debug output of the driver OK and can place break points, look at the call stack etc. But for some reason the Local variables is just blank.

I got a new system and had to reload all software new and this is the first time I am trying to use Windbg after that.

I gave the Symbol File path SRVc:\localsymbolshttp://msdl.microsoft.com/download/symbols; Followed by my .sys file path. And it is pulling the driver with .kdfiles fine.

So, I am not sure what the problem is.

Thanks,
Vidya


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</my_driver.sys>

Dv says this:

Unable to enumerate locals, Win32 error 0n318
Private symbols (symbols.pri) are required for locals.
Type “.hh dbgerr005” for details.

I am trying to see how to fix this…

Thanks,
Vidya

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Martin O’Brien
Sent: Thursday, June 09, 2011 6:57 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Problem with Viewing Local variables in Windbg

What does ‘dv’ say?

Mm
On Jun 9, 2011 9:29 PM, “Dharmaraju, Vidyadhari” > wrote:
> I cannot get to see the local variables in my Windbg.
>
> I can see the debug output of the driver OK and can place break points, look at the call stack etc. But for some reason the Local variables is just blank.
>
> I got a new system and had to reload all software new and this is the first time I am trying to use Windbg after that.
>
> I gave the Symbol File path SRVc:\localsymbolshttp://msdl.microsoft.com/download/symbols; Followed by my .sys file path. And it is pulling the driver with .kdfiles fine.
>
> So, I am not sure what the problem is.
>
> Thanks,
> Vidya
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

No, it doesn’t.

I have Windbg 6.1 7600 build.

It gives error:

Unable to enumerate locals, Win32 error 0n318
Private symbols (symbols.pri) are required for locals.
Type “.hh dbgerr005” for details.

But with different error code, not the Win32 one…

I will rerun driver to get the exact code, but trying to see if I need any WinDbg upgrades first.

Any other ways to get private symbols?

Thanks,
Vidya

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Sunday, June 12, 2011 12:27 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Problem with Viewing Local variables in Windbg

dv doesn’t work when you are your own function frame?

d

debt from my phone

-----Original Message-----
From: Dharmaraju, Vidyadhari
Sent: Saturday, June 11, 2011 10:41 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Problem with Viewing Local variables in Windbg

This is a checked build, normal build, not optimized.

Following is the information from !lmi <my_driver.sys>

Loaded Module Info: [xhcidrv.sys]
Module: XHCIdrv
Base Address: 980a4000
Image Name: XHCIdrv.sys
Machine Type: 332 (I386)
Time Stamp: 4df44c56 Sat Jun 11 22:19:18 2011
Size: 27280
CheckSum: 3717f
Characteristics: 102
Debug Data Dirs: Type Size VA Pointer
CODEVIEW 61, 21b98, 21b98 RSDS - GUID: {AE20B9D8-6B39-4F02-B132-E8FA949FFDBB}
Age: 1, Pdb: c:\projects\branch\vidya\drivers\xhcidrv\objchk_wxp_x86\i386\XHCIdrv.pdb
Image Type: MEMORY - Image read successfully from loaded memory.
Symbol Type: PDB - Symbols loaded successfully from image header.
c:\projects\branch\vidya\drivers\xhcidrv\objchk_wxp_x86\i386\XHCIdrv.pdb
Compiler: Resource - front end [0.0 bld 0] - back end [9.0 bld 30729]
Load Report: private symbols & lines, not source indexed
c:\projects\branch\vidya\drivers\xhcidrv\objchk_wxp_x86\i386\XHCIdrv.pdb

Thanks,
Vidya

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Thursday, June 09, 2011 6:53 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Problem with Viewing Local variables in Windbg

Is this an optimized or debug build? The vars might not exist in an optimized build. Are you seeing your function names correctly? What does !lmi say?

d

debt from my phone

-----Original Message-----
From: Dharmaraju, Vidyadhari
Sent: Thursday, June 09, 2011 6:31 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Problem with Viewing Local variables in Windbg

I cannot get to see the local variables in my Windbg.

I can see the debug output of the driver OK and can place break points, look at the call stack etc. But for some reason the Local variables is just blank.

I got a new system and had to reload all software new and this is the first time I am trying to use Windbg after that.

I gave the Symbol File path SRVc:\localsymbolshttp://msdl.microsoft.com/download/symbols; Followed by my .sys file path. And it is pulling the driver with .kdfiles fine.

So, I am not sure what the problem is.

Thanks,
Vidya


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</my_driver.sys>