Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Implement a method that allows to get current time-travel position to use it in LINQ queries #209

Open
vladimirklign opened this issue Jul 22, 2024 · 1 comment

Comments

@vladimirklign
Copy link

Feature request:
There is no method (at least I did not find it) that allows to do something like that:

0:000> @$curpos = @$cursession.TTD.CurrentPosition
0:000> dx @$cursession.TTD.Memory(0x12345678, 0x12345680, "w").Where(x => (x.TimeStart > @$curpos) && (x.TimeEnd < @$anotherpos))

Thank you!

@KenSykes
Copy link

KenSykes commented Aug 9, 2024

We have this today. Each thread in the process has a current position:

dx -g @$curprocess.Threads.Select(x => new { Id = x.Id, Position = x.TTD.Position })
======================================
=             = Id        = Position =
======================================
= [0x5324]    - 0x5324    - E:0      =
= [0xd300]    - 0xd300    - 3A9:0    =
======================================

If you mean the position of the thread the debugger is currently viewing you can use this:

Time Travel Position: E:0 [Unindexed] Index
ntdll!LdrInitializeThunk:
00007ff9`373c42a0 4053            push    rbx
0:000> dx @$curthread.TTD.Position
@$curthread.TTD.Position : E:0
    Sequence         : 0xe
    Steps            : 0x0
    SeekTo           [Method which seeks to time position]
    ToSystemTime     [Method which obtains the approximate system time at a given position]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants