Is there like a magic trick to see the content of my variables all I see is the parameters.
I can't even see my locals ???

Denis

Re: WinDbg Variable checking by Maxim

Maxim
Thu Jun 30 19:25:29 CDT 2005

Say "dv"

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"Denis @ TheOffice" <denisco@ica.net> wrote in message
news:1120172916.787491@www.vif.com...
> Is there like a magic trick to see the content of my variables all I see is
the parameters.
> I can't even see my locals ???
>
> Denis
>
>



Re: WinDbg Variable checking by Ivan

Ivan
Fri Jul 01 02:47:42 CDT 2005

or, better
kd> dv /V
so that you have the idea of which variable are possibly aliased by the
compiler
due to optimizations.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:O$FGLNdfFHA.2152@TK2MSFTNGP14.phx.gbl...
> Say "dv"
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
> "Denis @ TheOffice" <denisco@ica.net> wrote in message
> news:1120172916.787491@www.vif.com...
> > Is there like a magic trick to see the content of my variables all I see
is
> the parameters.
> > I can't even see my locals ???
> >
> > Denis
> >
> >
>
>



Re: WinDbg Variable checking by Denis

Denis
Mon Jul 04 15:29:41 CDT 2005

Okay, I gave it a shot.

dv /v

Only the parameters shows up ???
Why... Do I need to put something in the check build or something?


Thanks

"Ivan Brugiolo [MSFT]" <ivanbrug@online.microsoft.com> wrote in message
news:e95oqEhfFHA.2700@TK2MSFTNGP15.phx.gbl...
> or, better
> kd> dv /V
> so that you have the idea of which variable are possibly aliased by the
> compiler
> due to optimizations.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Use of any included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
>
>
> "Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
> news:O$FGLNdfFHA.2152@TK2MSFTNGP14.phx.gbl...
> > Say "dv"
> >
> > --
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > maxim@storagecraft.com
> > http://www.storagecraft.com
> >
> > "Denis @ TheOffice" <denisco@ica.net> wrote in message
> > news:1120172916.787491@www.vif.com...
> > > Is there like a magic trick to see the content of my variables all I see
> is
> > the parameters.
> > > I can't even see my locals ???
> > >
> > > Denis
> > >
> > >
> >
> >
>
>



Re: WinDbg Variable checking by Ivan

Ivan
Mon Jul 04 16:26:22 CDT 2005

There is a difference between `/V` and `/v`.

The compiler may legitimately assume that certain params are not used in the
function,
and use them as storage for local variables.
The same memory location may be aliased to host different things.

Can you post an example of what you are seeing and what you would expect ?

ole32!CoTaskMemAlloc:
77161d41 a1b8102777 mov eax,[ole32!g_pMalloc (772710b8)]
ds:0023:772710b8=772710bc
0:000> dv /V
0006c574 @ebp+0x04 stcb = 0x76f9801f
0:000>



--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"Denis @ TheOffice" <denisco@ica.net> wrote in message
news:1120508981.226684@www.vif.com...
> Okay, I gave it a shot.
>
> dv /v
>
> Only the parameters shows up ???
> Why... Do I need to put something in the check build or something?
>
>
> Thanks
>
> "Ivan Brugiolo [MSFT]" <ivanbrug@online.microsoft.com> wrote in message
> news:e95oqEhfFHA.2700@TK2MSFTNGP15.phx.gbl...
> > or, better
> > kd> dv /V
> > so that you have the idea of which variable are possibly aliased by the
> > compiler
> > due to optimizations.
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no
rights.
> > Use of any included script samples are subject to the terms specified at
> > http://www.microsoft.com/info/cpyright.htm
> >
> >
> > "Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
> > news:O$FGLNdfFHA.2152@TK2MSFTNGP14.phx.gbl...
> > > Say "dv"
> > >
> > > --
> > > Maxim Shatskih, Windows DDK MVP
> > > StorageCraft Corporation
> > > maxim@storagecraft.com
> > > http://www.storagecraft.com
> > >
> > > "Denis @ TheOffice" <denisco@ica.net> wrote in message
> > > news:1120172916.787491@www.vif.com...
> > > > Is there like a magic trick to see the content of my variables all I
see
> > is
> > > the parameters.
> > > > I can't even see my locals ???
> > > >
> > > > Denis
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: WinDbg Variable checking by Denis

Denis
Tue Jul 05 13:08:04 CDT 2005

Your right it works, finally!

If its not to much to ask:
How do I check a global variable ?

Thanks
Denis

"Ivan Brugiolo [MSFT]" <ivanbrug@online.microsoft.com> wrote in message
news:udZiH8NgFHA.2916@TK2MSFTNGP14.phx.gbl...
> There is a difference between `/V` and `/v`.
>
> The compiler may legitimately assume that certain params are not used in the
> function,
> and use them as storage for local variables.
> The same memory location may be aliased to host different things.
>
> Can you post an example of what you are seeing and what you would expect ?
>
> ole32!CoTaskMemAlloc:
> 77161d41 a1b8102777 mov eax,[ole32!g_pMalloc (772710b8)]
> ds:0023:772710b8=772710bc
> 0:000> dv /V
> 0006c574 @ebp+0x04 stcb = 0x76f9801f
> 0:000>
>
>
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Use of any included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
>
>
> "Denis @ TheOffice" <denisco@ica.net> wrote in message
> news:1120508981.226684@www.vif.com...
> > Okay, I gave it a shot.
> >
> > dv /v
> >
> > Only the parameters shows up ???
> > Why... Do I need to put something in the check build or something?
> >
> >
> > Thanks
> >
> > "Ivan Brugiolo [MSFT]" <ivanbrug@online.microsoft.com> wrote in message
> > news:e95oqEhfFHA.2700@TK2MSFTNGP15.phx.gbl...
> > > or, better
> > > kd> dv /V
> > > so that you have the idea of which variable are possibly aliased by the
> > > compiler
> > > due to optimizations.
> > >
> > > --
> > > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > > Use of any included script samples are subject to the terms specified at
> > > http://www.microsoft.com/info/cpyright.htm
> > >
> > >
> > > "Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
> > > news:O$FGLNdfFHA.2152@TK2MSFTNGP14.phx.gbl...
> > > > Say "dv"
> > > >
> > > > --
> > > > Maxim Shatskih, Windows DDK MVP
> > > > StorageCraft Corporation
> > > > maxim@storagecraft.com
> > > > http://www.storagecraft.com
> > > >
> > > > "Denis @ TheOffice" <denisco@ica.net> wrote in message
> > > > news:1120172916.787491@www.vif.com...
> > > > > Is there like a magic trick to see the content of my variables all I
> see
> > > is
> > > > the parameters.
> > > > > I can't even see my locals ???
> > > > >
> > > > > Denis
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: WinDbg Variable checking by Ivan

Ivan
Tue Jul 05 13:30:06 CDT 2005

something like

kd>dt ModuleName!g_VariableName

BTW, you might consider posting to
microsoft.public.windbg

since that is a more appropriate place for these questions

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"Denis @ TheOffice" <denisco@ica.net> wrote in message
news:1120586884.321982@www.vif.com...
> Your right it works, finally!
>
> If its not to much to ask:
> How do I check a global variable ?
>
> Thanks
> Denis
>
> "Ivan Brugiolo [MSFT]" <ivanbrug@online.microsoft.com> wrote in message
> news:udZiH8NgFHA.2916@TK2MSFTNGP14.phx.gbl...
> > There is a difference between `/V` and `/v`.
> >
> > The compiler may legitimately assume that certain params are not used in
the
> > function,
> > and use them as storage for local variables.
> > The same memory location may be aliased to host different things.
> >
> > Can you post an example of what you are seeing and what you would expect
?
> >
> > ole32!CoTaskMemAlloc:
> > 77161d41 a1b8102777 mov eax,[ole32!g_pMalloc (772710b8)]
> > ds:0023:772710b8=772710bc
> > 0:000> dv /V
> > 0006c574 @ebp+0x04 stcb = 0x76f9801f
> > 0:000>
> >
> >
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no
rights.
> > Use of any included script samples are subject to the terms specified at
> > http://www.microsoft.com/info/cpyright.htm
> >
> >
> > "Denis @ TheOffice" <denisco@ica.net> wrote in message
> > news:1120508981.226684@www.vif.com...
> > > Okay, I gave it a shot.
> > >
> > > dv /v
> > >
> > > Only the parameters shows up ???
> > > Why... Do I need to put something in the check build or something?
> > >
> > >
> > > Thanks
> > >
> > > "Ivan Brugiolo [MSFT]" <ivanbrug@online.microsoft.com> wrote in
message
> > > news:e95oqEhfFHA.2700@TK2MSFTNGP15.phx.gbl...
> > > > or, better
> > > > kd> dv /V
> > > > so that you have the idea of which variable are possibly aliased by
the
> > > > compiler
> > > > due to optimizations.
> > > >
> > > > --
> > > > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> > > > Use of any included script samples are subject to the terms
specified at
> > > > http://www.microsoft.com/info/cpyright.htm
> > > >
> > > >
> > > > "Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
> > > > news:O$FGLNdfFHA.2152@TK2MSFTNGP14.phx.gbl...
> > > > > Say "dv"
> > > > >
> > > > > --
> > > > > Maxim Shatskih, Windows DDK MVP
> > > > > StorageCraft Corporation
> > > > > maxim@storagecraft.com
> > > > > http://www.storagecraft.com
> > > > >
> > > > > "Denis @ TheOffice" <denisco@ica.net> wrote in message
> > > > > news:1120172916.787491@www.vif.com...
> > > > > > Is there like a magic trick to see the content of my variables
all I
> > see
> > > > is
> > > > > the parameters.
> > > > > > I can't even see my locals ???
> > > > > >
> > > > > > Denis
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: WinDbg Variable checking by Denis

Denis
Tue Jul 05 13:58:40 CDT 2005

Double thanks on that.

Denis

"Ivan Brugiolo [MSFT]" <ivanbrug@online.microsoft.com> wrote in message
news:uAeIS%23YgFHA.1612@TK2MSFTNGP12.phx.gbl...
> something like
>
> kd>dt ModuleName!g_VariableName
>
> BTW, you might consider posting to
> microsoft.public.windbg
>
> since that is a more appropriate place for these questions
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Use of any included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
>
>
> "Denis @ TheOffice" <denisco@ica.net> wrote in message
> news:1120586884.321982@www.vif.com...
> > Your right it works, finally!
> >
> > If its not to much to ask:
> > How do I check a global variable ?
> >
> > Thanks
> > Denis
> >
> > "Ivan Brugiolo [MSFT]" <ivanbrug@online.microsoft.com> wrote in message
> > news:udZiH8NgFHA.2916@TK2MSFTNGP14.phx.gbl...
> > > There is a difference between `/V` and `/v`.
> > >
> > > The compiler may legitimately assume that certain params are not used in
> the
> > > function,
> > > and use them as storage for local variables.
> > > The same memory location may be aliased to host different things.
> > >
> > > Can you post an example of what you are seeing and what you would expect
> ?
> > >
> > > ole32!CoTaskMemAlloc:
> > > 77161d41 a1b8102777 mov eax,[ole32!g_pMalloc (772710b8)]
> > > ds:0023:772710b8=772710bc
> > > 0:000> dv /V
> > > 0006c574 @ebp+0x04 stcb = 0x76f9801f
> > > 0:000>
> > >
> > >
> > >
> > > --
> > > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > > Use of any included script samples are subject to the terms specified at
> > > http://www.microsoft.com/info/cpyright.htm
> > >
> > >
> > > "Denis @ TheOffice" <denisco@ica.net> wrote in message
> > > news:1120508981.226684@www.vif.com...
> > > > Okay, I gave it a shot.
> > > >
> > > > dv /v
> > > >
> > > > Only the parameters shows up ???
> > > > Why... Do I need to put something in the check build or something?
> > > >
> > > >
> > > > Thanks
> > > >
> > > > "Ivan Brugiolo [MSFT]" <ivanbrug@online.microsoft.com> wrote in
> message
> > > > news:e95oqEhfFHA.2700@TK2MSFTNGP15.phx.gbl...
> > > > > or, better
> > > > > kd> dv /V
> > > > > so that you have the idea of which variable are possibly aliased by
> the
> > > > > compiler
> > > > > due to optimizations.
> > > > >
> > > > > --
> > > > > This posting is provided "AS IS" with no warranties, and confers no
> > > rights.
> > > > > Use of any included script samples are subject to the terms
> specified at
> > > > > http://www.microsoft.com/info/cpyright.htm
> > > > >
> > > > >
> > > > > "Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
> > > > > news:O$FGLNdfFHA.2152@TK2MSFTNGP14.phx.gbl...
> > > > > > Say "dv"
> > > > > >
> > > > > > --
> > > > > > Maxim Shatskih, Windows DDK MVP
> > > > > > StorageCraft Corporation
> > > > > > maxim@storagecraft.com
> > > > > > http://www.storagecraft.com
> > > > > >
> > > > > > "Denis @ TheOffice" <denisco@ica.net> wrote in message
> > > > > > news:1120172916.787491@www.vif.com...
> > > > > > > Is there like a magic trick to see the content of my variables
> all I
> > > see
> > > > > is
> > > > > > the parameters.
> > > > > > > I can't even see my locals ???
> > > > > > >
> > > > > > > Denis
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>