Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dr7 Setting

Featured Replies

Posted

I have been looking into setting hardware breakpoints, I googled the hell out of it, anyway, every site I go to says set dr7 to 101, which although it works, it isnt very helpful, I was wondering if anyone could explain how to set the dr7 right especially when there is more then 1 hardware breakpoint and where to put the settings for type (access, write, execute) for each breakpoint. Thank you for you time.

Found a pretty good source in C++ which doesnt seem to edit DR7 just hardcoded but somehow calculates it.

I dont have a clue about that myself so I couldnt tell you why it is done which way.

http://www.morearty.com/code/breakpoint/breakpoint.zip

Especially look at that piece of code:

SetBits(cxt.Dr7, 16 + (m_index*4), 2, when);
SetBits(cxt.Dr7, 18 + (m_index*4), 2, len);
SetBits(cxt.Dr7, m_index*2, 1, 1);

where 'when' decides whether its hwbp on write (3) or read (1).

Not sure about execute, should be either 2 or 0 :D

Look at breakpoint.h for the implementation of SetBits :)

  • Author

Well, that was confusing as hell, but I think I got it, I guess you have to place 32 bits of info into 1 dword and reset the regflag. For instance if you just want to set all for breakpoints to execute on execution, you set dr7 to 257. Still a little confused. Thanks for the Intel manual and example.

Edited by What

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.