-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error setting hardware breakpoint (bpnew)! #3365
Comments
There are two reasons it could technically fail:
Is the executable running when this happens? |
The executable is paused. I scan the memory for the pattern and expect to set the BPH's. After that I continue running the debuggee.
|
Hi again. |
Yeah it could be that the bug is related to this. Did you confirm that the bug reproduces after a restart when such a hardware breakpoint wasn't deleted from the database? You can use the
x64dbg/src/gui/Src/Gui/CPUDump.cpp Lines 118 to 129 in f518e50
As you can see, the command executed in the dump menu is It would be helpful for me if we could craft a test executable that triggers this bug. Also could you run |
Hi mrexodia,
I observe "Error setting hardware breakpoint (bpnew)!" using my own script inspired by something I found on internet.
I search the memory for specific content
findallmem 0x10000,374438423933393633384545
Then iterating a loop trying to set HWBP to all (max 4) locations found in memory.
This happens at instruction:
bph addr,"rw",1
x64dbg (Apr 11 2024)
This happens sometimes (periods when it works as it should and then it does not work). So far I'm unable to catch what is the trigger.
However, it is interesting that following the address in Dump and setting the HW BP manually (Dump -> right click -> Breakpoint -> Hardware, Access -> Byte) sets the BP correctly
Kindly any idea how to work it around or how to fix this behavior?
The text was updated successfully, but these errors were encountered: