Hi,
I’m trying to convert some of my custom extension commands to windbg
command scripts, and have some questions about the command scripts
-
Is there an equivalent of sizeof() to get the structure sizes?
Since the structures differ in various versions (newer versions append
members to the existing structures), I don’t want to use
RTL_SIZEOF_THROUGH_FIELD.
-
Is there any way I can pass arguments to the windbg command scripts
other than by setting some pseudo-registers? More specifically,
Thanks,
-
sizeof is supported. ?? sizeof(mod!type) should display the info you
want. You can use it in a MASM expression with @@(sizeof(mod!type)).
-
$$>a< will pass arguments to a script in aliases $arg1 on up.
Arguments are quoted or space-delimited chunks of text. Arguments push
and pop properly in nested invocations.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Hrishikesh
Vidwans
Sent: Friday, September 08, 2006 9:42 PM
To: Kernel Debugging Interest List
Subject: [windbg] Questions about windbg command scripts…
Hi,
I’m trying to convert some of my custom extension commands to windbg
command scripts, and have some questions about the command scripts
-
Is there an equivalent of sizeof() to get the structure sizes?
Since the structures differ in various versions (newer versions append
members to the existing structures), I don’t want to use
RTL_SIZEOF_THROUGH_FIELD.
-
Is there any way I can pass arguments to the windbg command scripts
other than by setting some pseudo-registers? More specifically,
Thanks,
You are currently subscribed to windbg as: xxxxx@winse.microsoft.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
Thanks Drew.
On 9/9/06, Drew Bliss wrote:
> 1. sizeof is supported. ?? sizeof(mod!type) should display the info you
> want. You can use it in a MASM expression with @@(sizeof(mod!type)).
>
> 2. $$>a< will pass arguments to a script in aliases $arg1 on up.
> Arguments are quoted or space-delimited chunks of text. Arguments push
> and pop properly in nested invocations.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Hrishikesh
> Vidwans
> Sent: Friday, September 08, 2006 9:42 PM
> To: Kernel Debugging Interest List
> Subject: [windbg] Questions about windbg command scripts…
>
> Hi,
>
> I’m trying to convert some of my custom extension commands to windbg
> command scripts, and have some questions about the command scripts
>
> 1. Is there an equivalent of sizeof() to get the structure sizes?
> Since the structures differ in various versions (newer versions append
> members to the existing structures), I don’t want to use
> RTL_SIZEOF_THROUGH_FIELD.
>
> 2. Is there any way I can pass arguments to the windbg command scripts
> other than by setting some pseudo-registers? More specifically,
>
> Thanks,
> - Hrishikesh.
>
> —
> You are currently subscribed to windbg as: xxxxx@winse.microsoft.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> You are currently subscribed to windbg as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>