<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Hossy</author_name>
  <author_url>https://blog.hatena.ne.jp/Hossy/</author_url>
  <blog_title>ほっしーの技術ネタ備忘録</blog_title>
  <blog_url>https://hoshizuki.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>デバッガで必要な機能もう1つ。ブレークポイントですね。 これは x86 CPU のデバッグレジスタを利用して実装します。 まず仕掛け。 void SetBreakPoint( HANDLE hThread, DWORD dwAddress ) { CONTEXT ctx = { CONTEXT_DEBUG_REGISTERS }; GetThreadContext( hThread, &amp;ctx ); ctx.Dr0 = dwAddress; ctx.Dr7 |= 0x00000001; SetThreadContext( hThread, &amp;ctx ); } Dr0, Dr1, Dr2, Dr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhoshizuki.hateblo.jp%2Fentry%2F20071120%2Fp2&quot; title=&quot;ブレークポイントの仕掛け方 - ほっしーの技術ネタ備忘録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-11-20 00:00:02</published>
  <title>ブレークポイントの仕掛け方</title>
  <type>rich</type>
  <url>https://hoshizuki.hateblo.jp/entry/20071120/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
