GithubHelp home page GithubHelp logo

Comments (3)

zorgiepoo avatar zorgiepoo commented on May 26, 2024

The target crashing is likely due to a defect in the debugger not being able to handle a breakpoint being hit simultaneously from different threads very well.. I'm seeing if I can improve this; the debugger code is more complex than I'd like :|.

Getting the stack trace is not easy currently. Generating the stack trace each time a watchpoint was hit is expensive and the code would need to shifted/refactored to do it once per unique address, but I don't think it's worth making that change. More reasonable is a feature request of halting in the debugger for the first watch access, maybe.

A neat workaround is injecting your own bit of code in the debugger. This will lead to much faster execution too. Eg:

cmp eax, 0x2
jne SKIP
nop ; <— SET BREAKPOINT HERE
SKIP:

from bit-slicer.

Sapd avatar Sapd commented on May 26, 2024

Thanks for your reply.
I imagined, that for every line in the Watch Window, you would get one backtrace (the first time it appeared).

I tried your injecting approach. But for some reason the target crashes after injecting:
Image

I also tried it at another point which accessed the variable too, there it didn't crash but it also didn't trigger the breakpoint. Could it be because the address in cmp is wrong? I simply used the one the watch window shows "Watching 32-bit write accesses at ADDRESS".

from bit-slicer.

zorgiepoo avatar zorgiepoo commented on May 26, 2024

Late response, but because the instruction is:
mov [esi], edi

I'd probably want to compare esi (the memory address) or edi (the new value)
eax is assigned afterwards.

from bit-slicer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.