Windbg extensions for 64 bit XP drivers

Hi,

I have a debug extension for our 32 bit drivers. It really helps during our development and debug sessions.
Now I finished porting my driver to 64 bit. I wonder how can I convert the debug extension to 64 bit ready.
Need I create another DLL for 64 bit debug only? Or are there ways that one extension can support both
32 bit and 64 bit debug functions? From the header files for debug extension, it looks you have to pre-define
which platform the extension is for.

Does anybody know where can I find 64 bit debug extension samples?

Guoqing


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

You can do it either way.

If you choose to do 1 single extension dll then this is what you need to
do:

  1. If you are using the old style extention API then use the
    64-bit interface. It works for 32-bit and 64-bit targets.
  2. Use type information from your driver’s PDB file to dynamicly
    adjust for the different targets. For example instead of using a
    hardcoded offset to get a field of a structure, use the type information
    to determine what the offset is. (this also allows your structure to
    change w/o having to fix up the extensions as much)

We use type information enable 1 set of DLLs to debug WinXP x86/ia64,
checked/free builds.

The SDK samples that are part of the debugger package should give you
some help with type info. In addition you can now use the new debugger
engine interfaces instead of the old style API. This lets you do TONS
of things you could never automate before. To install the SDK & samples
d/l the latest debugger from http://www.microsoft.com/ddk/debugging then
do a “custom” install and choose to install the SDK & it’s sub
components.

Enjoy.

-----Original Message-----
From: Sun, Guoqing [mailto:Guoqing.Sun@ca.com]
Sent: Monday, July 16, 2001 1:01 PM
To: Kernel Debugging Interest List
Subject: [windbg] Windbg extensions for 64 bit XP drivers

Hi,

I have a debug extension for our 32 bit drivers. It really helps during
our development and debug sessions.
Now I finished porting my driver to 64 bit. I wonder how can I convert
the debug extension to 64 bit ready.
Need I create another DLL for 64 bit debug only? Or are there ways that
one extension can support both
32 bit and 64 bit debug functions? From the header files for debug
extension, it looks you have to pre-define
which platform the extension is for.

Does anybody know where can I find 64 bit debug extension samples?

Guoqing


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

Nathan,

Thank you. Sorry I never noticed the SDK selection from WinDBG setup.

Is there any document about debug extension development?

Guoqing


From: Nathan Nesbit[SMTP:xxxxx@windows.microsoft.com]
Reply To: Kernel Debugging Interest List
Sent: Monday, July 16, 2001 6:00 PM
To: Kernel Debugging Interest List
Cc: Sun, Guoqing
Subject: [windbg] RE: Windbg extensions for 64 bit XP drivers

You can do it either way.

If you choose to do 1 single extension dll then this is what you need to
do:

  1. If you are using the old style extention API then use the
    64-bit interface. It works for 32-bit and 64-bit targets.
  2. Use type information from your driver’s PDB file to dynamicly
    adjust for the different targets. For example instead of using a
    hardcoded offset to get a field of a structure, use the type information
    to determine what the offset is. (this also allows your structure to
    change w/o having to fix up the extensions as much)

We use type information enable 1 set of DLLs to debug WinXP x86/ia64,
checked/free builds.

The SDK samples that are part of the debugger package should give you
some help with type info. In addition you can now use the new debugger
engine interfaces instead of the old style API. This lets you do TONS
of things you could never automate before. To install the SDK & samples
d/l the latest debugger from http://www.microsoft.com/ddk/debugging then
do a “custom” install and choose to install the SDK & it’s sub
components.

Enjoy.

-----Original Message-----
From: Sun, Guoqing [mailto:Guoqing.Sun@ca.com]
Sent: Monday, July 16, 2001 1:01 PM
To: Kernel Debugging Interest List
Subject: [windbg] Windbg extensions for 64 bit XP drivers

Hi,

I have a debug extension for our 32 bit drivers. It really helps during
our development and debug sessions.
Now I finished porting my driver to 64 bit. I wonder how can I convert
the debug extension to 64 bit ready.
Need I create another DLL for 64 bit debug only? Or are there ways that
one extension can support both
32 bit and 64 bit debug functions? From the header files for debug
extension, it looks you have to pre-define
which platform the extension is for.

Does anybody know where can I find 64 bit debug extension samples?

Guoqing


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: Guoqing.Sun@CA.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