JuliaDebug / Gallium.jl

The Julia debugger
Other
174 stars 23 forks source link

Unexpected and inconsistent results (errors) for break if error #171

Open dolejm1 opened 7 years ago

dolejm1 commented 7 years ago

I defined breakpoint_on_error() but after calling 1=2 no breakpoint is triggered. after redefinition of the break point and calling 1=2 gallium error occurs, but another call of 1=2 closes the circle, nothing happen.

julia> BPE Gallium.Hooking.Hook(Ptr{Void} @0x0000000064f34600,UInt8[0x55,0x53,0x48,0x83,0xec,0x28,0x48,0x8d,0xac,0x24,0x80,0x00,0x00,0x00], Gallium.breakpoint_on_error_hit)

julia> 1=2 ERROR: syntax: invalid assignment location "1"

julia> BPE = Gallium.breakpoint_on_error() Gallium.Hooking.Hook(Ptr{Void} @0x0000000064f34600,UInt8[0x55,0x53,0x48,0x83,0xec,0x28,0x48,0x8d,0xac,0x24,0x80,0x00,0x00,0x00], Gallium.breakpoint_on_error_hit)

julia> 1=2 ERROR: MethodError: no method matching start(::Gallium.NativeStack) Closest candidates are: start(::SimpleVector) at essentials.jl:170 start(::Base.MethodList) at reflection.jl:258 start(::IntSet) at intset.jl:184 ... in collect(::Base.Generator{Gallium.NativeStack,Gallium.##104#108}) at .\array.jl:303 in breakpoint_on_error_hit(::Gallium.Hooking.Hook, ::Gallium.X86_64.ExtendedRegs) at C:\Users\dolejm1.julia\v0.5\Gallium\src\G allium.jl:947 in _callback(::Ptr{Void}) at C:\Users\dolejm1.julia\v0.5\Gallium\src\Hooking\Hooking.jl:289 in callback(::Ptr{Void}) at C:\Users\dolejm1.julia\v0.5\Gallium\src\Hooking\Hooking.jl:326

julia> 1=2 ERROR: syntax: invalid assignment location "1"

julia> BPE Gallium.Hooking.Hook(Ptr{Void} @0x0000000064f34600,UInt8[0x55,0x53,0x48,0x83,0xec,0x28,0x48,0x8d,0xac,0x24,0x80,0x00,0x00,0x00], Gallium.breakpoint_on_error_hit)