Skip to content
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

How to set a data watch point for a particular memory address value? #3

Open
kailashg26 opened this issue Jul 24, 2021 · 3 comments
Open

Comments

@kailashg26
Copy link

Hello, I'm trying to set a hardware data watchpoint for a particular memory address value. I also downloaded the code and tried to execute it (successfully compiled and working). But can you give me an example of how to set a watchpoint on a particular memory address value. Like, can you give an example on set the watchpoint and trigger an exception.
The output I'm getting:
failed to set the breakpoint!
handled: 0
failed to disable the breakpoint!

Thanks again!

@hawkinsw
Copy link
Owner

hawkinsw commented Jul 25, 2021 via email

@kailashg26
Copy link
Author

Are you running the program as root?

On Sat, Jul 24, 2021 at 12:27 PM kailashg26 @.***> wrote: Hello, I'm trying to set a hardware data watchpoint for a particular memory address value. I also downloaded the code and tried to execute it (successfully compiled and working). But can you give me an example of how to set a watchpoint on a particular memory address value. Like, can you give an example on set the watchpoint and trigger an exception. The output I'm getting: failed to set the breakpoint! handled: 0 failed to disable the breakpoint! Thanks again! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#3>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCP2CSW2FBS72LJZKAMT43TZLSXTANCNFSM5A5TYVSQ .

Hello, yes, I've tried running with root and got
Handled:0 as output

@kailashg26
Copy link
Author

Are you running the program as root?

On Sat, Jul 24, 2021 at 12:27 PM kailashg26 @.***> wrote: Hello, I'm trying to set a hardware data watchpoint for a particular memory address value. I also downloaded the code and tried to execute it (successfully compiled and working). But can you give me an example of how to set a watchpoint on a particular memory address value. Like, can you give an example on set the watchpoint and trigger an exception. The output I'm getting: failed to set the breakpoint! handled: 0 failed to disable the breakpoint! Thanks again! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#3>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCP2CSW2FBS72LJZKAMT43TZLSXTANCNFSM5A5TYVSQ .

Hello, yes, I've tried running with root and got
Handled:0 as output

Can you also give an example on how to give a memory address value and trigger an exception ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants