!db, !dd not working?

I am using windbg version 2.0.0023.0 and can’t seem to get the !db or !dd
commands to work. Here is the code snippet for what I’m doing:

void someroutine(DEVICE_EXTENSION *devExt)
{
ULONG length;
ULONG junk;
UCHAR *ptr;
SCSI_PHYSICAL_ADDRESS pAddr;

length = NTS_strlen(devExt->RemoteTargets[Index].WWUI);
if(length > 0)
{
ptr = &devExt->variable[0];
pAddr = ScsiPortGetPhysicalAddress( devExt,
NULL,
ptr,
&junk);
}

When I step through this, ptr gets assigned to the correct thing and I can
display this using the db command. After I get the physical address and
attempt to display the string with the !db command, all that is displayed
is ff ff ff…

Some more info:

!pte 81556008 (This is ptr)
81556008 - PDE at C0300814 PTE at C0205558
contains 014009E3 contains 00000000
pfn 1400 GLDA–KWV LARGE PAGE

junk contains 0x7dc86ff8 after the call to ScsiPortGetPhysicalAddress

Is this a bug in the debugger, in my code or am I doing something else
wrong?

Dan


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

xxxxx@microsoft.com is the preferred place to send Windbg bugs to.
The whole Debugger team will receive the mail.

-----Original Message-----
From: xxxxx@emulex.com [mailto:xxxxx@emulex.com]
Sent: Thursday, June 28, 2001 6:01 PM
To: Kernel Debugging Interest List
Subject: [windbg] !db, !dd not working?

I am using windbg version 2.0.0023.0 and can’t seem to get the !db or
!dd
commands to work. Here is the code snippet for what I’m doing:

void someroutine(DEVICE_EXTENSION *devExt)
{
ULONG length;
ULONG junk;
UCHAR *ptr;
SCSI_PHYSICAL_ADDRESS pAddr;

length = NTS_strlen(devExt->RemoteTargets[Index].WWUI);
if(length > 0)
{
ptr = &devExt->variable[0];
pAddr = ScsiPortGetPhysicalAddress( devExt,
NULL,
ptr,
&junk);
}

When I step through this, ptr gets assigned to the correct thing and I
can
display this using the db command. After I get the physical address and
attempt to display the string with the !db command, all that is
displayed
is ff ff ff…

Some more info:

!pte 81556008 (This is ptr)
81556008 - PDE at C0300814 PTE at C0205558
contains 014009E3 contains 00000000
pfn 1400 GLDA–KWV LARGE PAGE

junk contains 0x7dc86ff8 after the call to ScsiPortGetPhysicalAddress

Is this a bug in the debugger, in my code or am I doing something else
wrong?

Dan


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


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