debugger extensions

Hi,
I am using version 6.3.0017 of Windbg and am trying to get a debugger
extension that I have written to work. Currently I am having a problem
with the following code (by the way, I am debugging a AMD64 machine from a
x86 machine):

if(S_OK !=
g_ExtControl->Evaluate(“fsdk_wrap!OsrTraceHandle”,DEBUG_VALUE_INT64,(PDEBUG_VALUE)
&OsrTraceBlock,NULL)) {
dprintf(“fsdk_dbgexts: !driver parse error. Example: !driver
yourdrivername.sys\n”);

EXIT_API();
return S_FALSE;
}

When I run the extension command that I have added, I appear to get back
only 32 bits of the 64 bit address as shown below

kd> !fsdk_dbgexts.driver fsdk-wrap.sys
fsdk_dbgexts: Setting driver as fsdk-wrap.sys.
fsdk_dbgexts: !driver address 00abd094efb86920 << notice only lower 32
bits are correct, missing fffffadf as seen in return of next command.
kd> x fsdk_wrap!OsrTraceHandle
fffffadfefb86920 fsdk_wrap!OsrTraceHandle = 0xfffffadff2547000

What am I doing wrong?


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

Forget it, stupid programmer on device… I was using a 32 bit variable
and other stupid things…

–Mark


Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/
“Mark Cariddi” wrote in message news:xxxxx@windbg…
> Hi,
> I am using version 6.3.0017 of Windbg and am trying to get a debugger
> extension that I have written to work. Currently I am having a problem
> with the following code (by the way, I am debugging a AMD64 machine from a
> x86 machine):
>
> if(S_OK !=
> g_ExtControl->Evaluate(“fsdk_wrap!OsrTraceHandle”,DEBUG_VALUE_INT64,(PDEBUG_VALUE)
> &OsrTraceBlock,NULL)) {
> dprintf(“fsdk_dbgexts: !driver parse error. Example: !driver
> yourdrivername.sys\n”);
>
> EXIT_API();
> return S_FALSE;
> }
>
> When I run the extension command that I have added, I appear to get back
> only 32 bits of the 64 bit address as shown below
>
> kd> !fsdk_dbgexts.driver fsdk-wrap.sys
> fsdk_dbgexts: Setting driver as fsdk-wrap.sys.
> fsdk_dbgexts: !driver address 00abd094efb86920 << notice only lower 32
> bits are correct, missing fffffadf as seen in return of next command.
> kd> x fsdk_wrap!OsrTraceHandle
> fffffadfefb86920 fsdk_wrap!OsrTraceHandle = 0xfffffadff2547000
>
> What am I doing wrong?
>
> –
> Mark Cariddi
> Consulting Associate
> OSR, Open Systems Resources, Inc.
> http://www.osr.com/
>
>