Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


when support Kernel-Mode Debugging ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source
View previous topic :: View next topic  
Author Message
maplecheck
Expert Cheater
Reputation: 0

Joined: 22 Jan 2006
Posts: 139

PostPosted: Wed May 13, 2009 8:26 pm    Post subject: when support Kernel-Mode Debugging ? Reply with quote

Laughing Laughing
Back to top
View user's profile Send private message
karmah
Newbie cheater
Reputation: 0

Joined: 28 Jul 2009
Posts: 19
Location: Edinburgh UK

PostPosted: Wed Jul 29, 2009 7:00 am    Post subject: Reply with quote

Yeah, that would rock.. I miss my old softice Sad

But DBVM's a step in the right direction Smile

_________________
//todo : sig :\
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25788
Location: The netherlands

PostPosted: Wed Jul 29, 2009 7:21 am    Post subject: Reply with quote

With kernelmode debugging in my todo list I actually meant debugging usermode application and handling all debugging(single stepping, breakpointsm, debug register read faking,etc...) in the kernel. So no api or flag would be set when debugging.
I have a fairly good idea on how to implement that (bp->save state->wait for event, usermode changes by ce to saved state, awake->set state->continue according to state)

But kernel debugging itself is a bit more complex. If it's halted in kernelmode, then how does a taskswitch to usermode go to update the gui ?

With dbvm I can probably do that, but here's the gui problem again. I can write directly to the display device, but each graphics card is different. (e.g my nvidia seems to have split up the screen into little rectangular blocks) So if someone feels like writing a display driver that works on an already initialized graphicscard, let me know

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
karmah
Newbie cheater
Reputation: 0

Joined: 28 Jul 2009
Posts: 19
Location: Edinburgh UK

PostPosted: Wed Jul 29, 2009 10:19 am    Post subject: Reply with quote

Wouldnt every card on the market these days having VESA support help at all?
Not very familliar with working at levels that low... just a thought..

_________________
//todo : sig :\
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25788
Location: The netherlands

PostPosted: Wed Jul 29, 2009 12:52 pm    Post subject: Reply with quote

yes, vesa is most likely supported, but that doesn't take away that the graphics driver may be running in a non-vesa supported mode (e.g to make acceleration, or sli easier)

anyhow, right now you can debug the kernel with dbvm and a serial port (but most new systems these days don't have one, I had to buy a separate pci one and had to code in pci support in dbvm)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
karmah
Newbie cheater
Reputation: 0

Joined: 28 Jul 2009
Posts: 19
Location: Edinburgh UK

PostPosted: Wed Jul 29, 2009 1:41 pm    Post subject: Reply with quote

Dark Byte wrote:
...but that doesn't take away that the graphics driver may be running in a non-vesa supported mode ...)


Aaah, bummer!

Any idea how softice handles/handled this?

_________________
//todo : sig :\
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25788
Location: The netherlands

PostPosted: Wed Jul 29, 2009 3:33 pm    Post subject: Reply with quote

I read somewhere that they used some kind of display driver, or display filter driver, but I never tried softice myself and not sure if it interfered with 3d graphics or not
Also, another thing I noticed today is that if a cpu is frozen but the rest of the system isn't, windows(vista 64) will bsod

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25788
Location: The netherlands

PostPosted: Sun Aug 02, 2009 3:36 pm    Post subject: Reply with quote

Little bump to keep myself up to date, looks like you can cause a kernel routine to go to sleep inside the kernel if it's running inside a normal process context while keeping a working gui to display the state and allow for user options, so I could probably add in breakpoints in code that goes "usermode->kernelmode->usermode" Of course, there's still the thing about critical section locks though
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25788
Location: The netherlands

PostPosted: Fri Aug 28, 2009 2:24 am    Post subject: This post has 1 review(s) Reply with quote

screenshots of the current progress:


kdebug1.png
 Description:
 Filesize:  40.56 KB
 Viewed:  23449 Time(s)

kdebug1.png



kdebug2.png
 Description:
 Filesize:  40.71 KB
 Viewed:  23449 Time(s)

kdebug2.png



kdebug3.png
 Description:
 Filesize:  40.51 KB
 Viewed:  23449 Time(s)

kdebug3.png



kdebug4.png
 Description:
 Filesize:  40.54 KB
 Viewed:  23449 Time(s)

kdebug4.png



_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
azmodeus
Cheater
Reputation: 0

Joined: 17 Sep 2009
Posts: 42

PostPosted: Sat Sep 19, 2009 3:49 pm    Post subject: Reply with quote

Is this with the DVBM or your own dbk64 driver? Oh, and if ya need any testers.. Smile
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25788
Location: The netherlands

PostPosted: Sat Sep 19, 2009 4:14 pm    Post subject: Reply with quote

this screenshot is in 32-bit without dbvm (with dbvm should probably work too as it's all based on int1)

as for 64-bit, there's some commits in the svn with a semi workable driver, but the debugging hasn't been properly ported yet (and there it will certainly need dbvm, but I'm also working on a runtime off-loading to dbvm routine in the kernel that might help with that part (so no annoying guessing which disk is the right one))
also, for the 64-bit driver you either have to press f8 during boot and allow the option for unsigned drivers, or sign the driver yourself

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25788
Location: The netherlands

PostPosted: Wed Dec 09, 2009 10:37 pm    Post subject: Reply with quote

update on the debugger port so kernelmode debugging works in win64:

and yes, it's using dbvm, but the launch dbvm routine should make the switch to dbvm mode less painful (sorry for amd users though)



dbdesktop2.jpg
 Description:
 Filesize:  650.29 KB
 Viewed:  22487 Time(s)

dbdesktop2.jpg



_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites