Link to home
Start Free TrialLog in
Avatar of valleytech
valleytechFlag for United States of America

asked on

Current line

Hi all,
 I just wonder what command help me to know the current line at which i am running debugger in windbg? Thanks.
Avatar of valleytech
valleytech
Flag of United States of America image

ASKER

kd> l-t
Source options are e:
     2/l - List source line at prompt
     4/s - List source code at prompt
     8/o - Only show source code at prompt

====> when i type l-t, i got that notes. I dont' understand their meaning. Please help.
just type backtrace, and it should tell you where you are in each nested method
when i type "backtrace", i got syntax error.
Avatar of dimitry
dimitry

Try:
kd> u
(Unassemble next few instructions)
I'm sorry you're using windbg I was thinking of unix dbg
kd>u doesn't work

kd> u
nt!KeUpdateSystemTime+0x142:
805120f8 ebb4             jmp     nt!KeUpdateSystemTime+0xf8 (805120ae)
nt!KeUpdateRunTime:
805120fa a11cf0dfff       mov     eax,[ffdff01c]
805120ff 53               push    ebx
80512100 ff80c4050000     inc     dword ptr [eax+0x5c4]
80512106 8b9824010000     mov     ebx,[eax+0x124]
8051210c 8b4b44           mov     ecx,[ebx+0x44]
8051210f f7457000000200   test    dword ptr [ebp+0x70],0x20000
80512116 753e             jnz     nt!KeUpdateRunTime+0x60 (80512156)
kd> bl
 0 eu             0001 (0001) (@@masm(`hello.c:22+`))
 1 eu             0001 (0001) (@@masm(`hello.c:22+`))
 2 eu             0001 (0001) (DriverEntry)
 3 eu             0001 (0001) (DriverEntry)
 4 eu             0001 (0001) (DriverEntry)
 5 e 805120ac     0001 (0001) nt!KeUpdateSystemTime+0xf6

kd> l+t
Source options are f:
     1/t - Step/trace by source line
     2/l - List source line at prompt
     4/s - List source code at prompt
     8/o - Only show source code at prompt
kd>
Source options are f:
     1/t - Step/trace by source line
     2/l - List source line at prompt
     4/s - List source code at prompt
     8/o - Only show source code at prompt
ASKER CERTIFIED SOLUTION
Avatar of dimitry
dimitry

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial