-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Currently enabling "Stop on all exceptions" in the VSCode extension has been disabled, due to issues with setting the appropriate flags in Hashlink. Potential causes could be byte misalignment or faulty 32bit pointer write-op. I will investigate this further.
Function writing into the native thread info:
hashlink-debugger/hld/Debugger.hx
Lines 830 to 841 in b777398
function set_breakOnThrow(b) { | |
var count = eval.readI32(jit.threads); | |
var tinfos = eval.readPointer(jit.threads.offset(8)); | |
var flagsPos = jit.align.ptr * 6 + 8; | |
for( i in 0...count ) { | |
var tinf = eval.readPointer(tinfos.offset(jit.align.ptr * i)); | |
var flags = eval.readI32(tinf.offset(flagsPos)); | |
if( b ) flags |= 2 else flags &= ~2; | |
eval.writeI32(tinf.offset(flagsPos), flags); | |
} | |
return breakOnThrow = b; | |
} |
Metadata
Metadata
Assignees
Labels
No labels