Fast way wont happen: you'd need a full list of memory locations to the
INT3 calls...
Post by Sebastian SchockeI fail to see how you can get past the recompilation issue. Either the
calls to int3 exist in the asm code before running NASM, or they don't.
Also, I fail to see how this can be made more flexible... you can turn the
DebugStub on/off for any specific method independently, or using the
project page disable the functionality of the attribute completely when
needed.
If you can find a fast way to replace INT3 calls with NOP calls during
runtime in memory, without needing to call back to the debugger, I could
see an alternative, but even then changing opcodes in a running program is
considered bad bad bad.
Somebody clear this up for me if I don't understand it correctly...
----- Original Message -----
Sent: Monday, February 27, 2012 10:04:12 PM
Subject: [Cosmos-Dev] Re: disable debugger on specific Methods
I know about this, but it is not really flexible.
It needs recompilation.
The approch for me is, should this do the debugger in the cosmos OS,
through replace Int3 with NOP. The address should be known by ours VS
debugger. This is done with a new dbg command which sets NOP or Int3 on
places.
Or we do the lame Int3 remove in asm code. This is a little bit speed up.
The the current asm file with near no code in Kernel class contains 2700
Int3 mnemorics, so is not so many in relation to 284000 lines.
So I would prefer first one.
Post by Sebastian SchockeWe already have this now Trivalik. It's called the DebugStub attribute.
My memory is a bit hazy right now about the exact usage and location,
due to the 2 week holiday, but check out MemoryBlock.cs and
ManagedMemoryBlocks.cs for usage of it.
Post by Sebastian SchockeNot a dialog or page, but you can mark a Method in code as not
debugable. Already helping a bucket load to make TCP stack much faster.
Post by Sebastian Schocke----- Original Message -----
Sent: Sunday, February 26, 2012 11:34:33 PM
Subject: [Cosmos-Dev] disable debugger on specific Methods
It would be nice to have a project specific dialog/page where we could
add easy the method in a specific class which should not allowed for debug,
and increase the speed.
Post by Sebastian SchockeAn other approch would be to set classes in project which should
debugable.
Post by Sebastian SchockeWhat do you think such thing to implement in the properites of cosmos
project file.
------------------------------------
--------------------------------------------------
More things to join for Cosmos!
http://tinyurl.com/pc7bds
http://tinyurl.com/qhttde
http://tinyurl.com/plrloa
--------------------------------------------------
Yahoo! Groups Links