{"id":5185,"date":"2014-07-22T03:05:40","date_gmt":"2014-07-21T18:05:40","guid":{"rendered":"https:\/\/mimumimu.net\/blog\/?p=5185"},"modified":"2014-07-22T03:13:16","modified_gmt":"2014-07-21T18:13:16","slug":"windbg-%e3%81%a8-gdb-%e3%81%ae%e5%9f%ba%e6%9c%ac%e6%93%8d%e4%bd%9c%e3%83%a1%e3%83%a2%e3%80%82","status":"publish","type":"post","link":"https:\/\/mimumimu.net\/blog\/2014\/07\/22\/windbg-%e3%81%a8-gdb-%e3%81%ae%e5%9f%ba%e6%9c%ac%e6%93%8d%e4%bd%9c%e3%83%a1%e3%83%a2%e3%80%82\/","title":{"rendered":"windbg \u3068 gdb \u306b\u95a2\u4fc2\u3057\u305f\u57fa\u672c\u64cd\u4f5c\u30e1\u30e2\u3002"},"content":{"rendered":"<p>\u6bce\u56de\u8abf\u3079\u3066\u3044\u308b\u6c17\u304c\u3059\u308b\u306e\u3067\u30e1\u30e2\u3002    <br \/>\uff08\u305f\u3076\u3093\u3053\u308d\u3053\u308d\u66f8\u304d\u52a0\u3048\u3066\u3044\u304d\u307e\u3059<\/p>\n<p>&#160;<\/p>\n<table cellspacing=\"0\" cellpadding=\"2\" width=\"602\" border=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"143\">\u4f5c\u696d\u5185\u5bb9<\/td>\n<td valign=\"top\" width=\"242\">windbg<\/td>\n<td valign=\"top\" width=\"215\">gdb<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"143\">\u5b9f\u884c<\/td>\n<td valign=\"top\" width=\"242\">g<\/td>\n<td valign=\"top\" width=\"215\">r<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"143\">\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8<\/td>\n<td valign=\"top\" width=\"242\">bp<\/td>\n<td valign=\"top\" width=\"215\">b<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"143\">\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8            <br \/>\u4e00\u89a7<\/td>\n<td valign=\"top\" width=\"242\">bl<\/td>\n<td valign=\"top\" width=\"215\">i b            <br \/>(info breakpoint)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"143\">\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8            <br \/>\u524a\u9664<\/td>\n<td valign=\"top\" width=\"242\">bc<\/td>\n<td valign=\"top\" width=\"215\">d<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"143\">\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c            <br \/>(Step over)<\/td>\n<td valign=\"top\" width=\"242\">p<\/td>\n<td valign=\"top\" width=\"215\">n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"143\">\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c            <br \/>(Step Into)<\/td>\n<td valign=\"top\" width=\"242\">t<\/td>\n<td valign=\"top\" width=\"215\">s<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"143\">\u30e1\u30e2\u30ea\u5185\u5bb9\u8868\u793a<\/td>\n<td valign=\"top\" width=\"242\">d            <br \/>d(a,b,c,d\u2026)<\/td>\n<td valign=\"top\" width=\"215\">d            <br \/>x\/(o,x,u,t,8xb..)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"143\">\u5909\u6570\u5185\u5bb9\u8868\u793a<\/td>\n<td valign=\"top\" width=\"242\">dv (\u5909\u6570\u540d)<\/td>\n<td valign=\"top\" width=\"215\">print (\u5909\u6570\u540d)            <\/p>\n<p>p *0x000&#160; \u307f\u305f\u3044\u306a\u306e\u3082\u53ef<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"143\">\u30ec\u30b8\u30b9\u30bf\u306e\u5024<\/td>\n<td valign=\"top\" width=\"242\">(\u30ec\u30b8\u30b9\u30bf\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u898b\u308b)            <\/p>\n<p>dd eax..<\/td>\n<td valign=\"top\" width=\"215\">i r            <\/p>\n<p>i r eax..<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"143\">\u9006\u30a2\u30bb\u30f3\u30d6\u30eb\u7d50\u679c<\/td>\n<td valign=\"top\" width=\"242\">(Disassemble \u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u307f\u308b)<\/td>\n<td valign=\"top\" width=\"215\">disas (\u95a2\u6570\u540d)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"143\">\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/td>\n<td valign=\"top\" width=\"242\">(\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u898b\u308b)<\/td>\n<td valign=\"top\" width=\"215\">list (\u95a2\u6570\u540d)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#160;<\/p>\n<p>\u30fb\u30fb\u3068\u308a\u3042\u3048\u305a\u3001\u826f\u304f\u5fd8\u308c\u308b\u306e\u3067\uff08<\/p>\n<p>&#160;<\/p>\n<h4>\u3042\u3068\u3044\u304f\u3064\u304b\u30e1\u30e2\uff1a<\/h4>\n<p>&#160;<\/p>\n<p><u><strong>gcc \u3067\u30d3\u30eb\u30c9\u6642\u306b\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3092\u5165\u308c\u308b\uff1a<\/strong><\/u>    <br \/> \u2192 gcc \u2013g \u3067\u30d3\u30eb\u30c9\u3057\u3066\u3084\u308b<\/p>\n<p><strong><u>objdump \u3067 Intel \u8a18\u6cd5\u3067\u773a\u3081\u3089\u308c\u308b\u3088\u3046\u306b\u3059\u308b\uff1a<\/u><\/strong>    <br \/> \u2192 objdump \u2013M intel&#160; \u3067\u773a\u3081\u308b\u3002    <br \/> ex)&#160; objdump \u2013M intel \u2013D a.out&#160;&#160; .. \u306e\u3088\u3046\u306b\u3002<\/p>\n<p><strong><u>VC \u30b3\u30f3\u30d1\u30a4\u30e9\u3067\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3092\u5165\u308c\u308b\uff1a<\/u><\/strong>    <br \/> \u2192 cl \/Zi \u3067\u30d3\u30eb\u30c9\u3059\u308b\u3002<\/p>\n<p><strong><u>VC \u30b3\u30f3\u30d1\u30a4\u30e9\u74b0\u5883\u3067 objdump \u3063\u307d\u3044\u3053\u3068\u3092\u3059\u308b\uff1a<\/u><\/strong>    <br \/> \u2192 dumpbin a.exe \/disasm&#160; \u3068\u304b\u3084\u308b\u3068\u826f\u3044\u611f\u3058\u3002    <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6bce\u56de\u8abf\u3079\u3066\u3044\u308b\u6c17\u304c\u3059\u308b\u306e\u3067\u30e1\u30e2\u3002 \uff08\u305f\u3076\u3093\u3053\u308d\u3053\u308d\u66f8\u304d\u52a0\u3048\u3066\u3044\u304d\u307e\u3059 &#160; \u4f5c\u696d\u5185\u5bb9 windbg gdb \u5b9f\u884c g r \u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8 bp b \u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8 \u4e00\u89a7 bl i b (info breakp [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,15,7],"tags":[540,468,539],"class_list":["post-5185","post","type-post","status-publish","format-standard","hentry","category-unix-linux","category-windows","category-dev","tag-gdb","tag-windbg","tag-539"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/5185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/comments?post=5185"}],"version-history":[{"count":0,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/5185\/revisions"}],"wp:attachment":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/media?parent=5185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/categories?post=5185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/tags?post=5185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}