{"id":5096,"date":"2019-07-26T15:18:40","date_gmt":"2019-07-26T07:18:40","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=5096"},"modified":"2019-07-26T15:34:25","modified_gmt":"2019-07-26T07:34:25","slug":"%e4%bd%bf%e7%94%a8-processexplorer-%e6%9f%a5%e7%9c%8b-delphi-c-builder-%e7%9a%84%e7%ba%bf%e7%a8%8b%e8%b0%83%e7%94%a8%e6%a0%88","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=5096","title":{"rendered":"\u4f7f\u7528 ProcessExplorer \u67e5\u770b Delphi\/C++ Builder \u7684\u7ebf\u7a0b\u8c03\u7528\u6808"},"content":{"rendered":"\n<p>ProcessExplorer \u53ef\u4ee5\u67e5\u770b\u8fd0\u884c\u4e2d\u8fdb\u7a0b\u7684\u5404\u79cd\u4fe1\u606f\uff0c\u5305\u62ec\u7279\u5b9a\u7ebf\u7a0b\u7684\u5806\u6808\u4fe1\u606f\u3002\u8fd9\u5728\u6211\u4eec\u7a0b\u5e8f\u51fa\u73b0\u6b7b\u5faa\u73af\u6216\u8005\u65e0\u54cd\u5e94\u65f6\u7b49\u95ee\u9898\u65f6\uff0c\u9664\u4e86\u5728\u5ba2\u6237\u673a\u5668\u4e0a\u91cd\u88c5\u4e00\u5957\u73af\u5883\u6216Remote Debugger \u4e4b\u5916\uff08\u5410\u69fd\u4e0b PAServer\/RemoteDebugger \u5728 Windows \u4e0b\u771f\u5fc3\u4e0d\u592a\u597d\u7528\uff09\uff0c\u53e6\u5916\u4e00\u79cd\u5728\u5ba2\u6237\u673a\u5668\u4e0a\u80fd\u591f\u627e\u5230\u5bf9\u5e94\u7684\u8c03\u7528\u6808\u4fe1\u606f\u7684\u597d\u9009\u62e9\u3002<\/p>\n\n\n\n<p>\u4e0d\u5e78\u7684\u662f\uff0cProcessExplorer \u4e0d\u652f\u6301 Delphi \u81ea\u8eab\u7684 map \u6587\u4ef6\u683c\u5f0f\u6216\u8005\u662f jdbg \u7b49\u683c\u5f0f\uff0c\u6240\u4ee5\u6211\u4eec\u9700\u8981\u4e00\u4e2a\u5de5\u5177\uff0c\u5c06 map \u6587\u4ef6\u8f6c\u6362\u4e3a ProcessExplorer \u652f\u6301\u7684 dbg \u683c\u5f0f\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e00\u6b65\uff1a\u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u751f\u6210\u8be6\u7ec6\u7684 map \u6587\u4ef6\uff0c\u5728\u5de5\u7a0b\u9009\u9879\u4e2d\u9009\u62e9 Linking\uff0c\u6253\u5f00 Map file \u4fee\u6539\u4e3a Detail\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"685\" height=\"194\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2019\/07\/image.png\" alt=\"\" class=\"wp-image-5097\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2019\/07\/image.png 685w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2019\/07\/image-300x85.png 300w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/figure>\n\n\n\n<p>\u7b2c\u4e8c\u6b65\uff1a\u6211\u4eec\u9700\u8981\u4f7f\u7528\u4e0b\u9762\u7684 <a href=\"\/downloads\/map2dbg.7z\">map2dbg \u5de5\u5177<\/a>\uff0c\u5728\u547d\u4ee4\u884c\u8c03\u7528\u751f\u6210 .dbg \u6587\u4ef6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>map2dbg \u4f60\u7684\u53ef\u6267\u884c\u6587\u4ef6\u540d<\/code><\/pre>\n\n\n\n<p>\u7b2c\u4e09\u6b65\uff1a\u5c06\u751f\u6210\u7684 .dbg \u6587\u4ef6\u548c\u53ef\u6267\u884c\u6587\u4ef6\u653e\u5728\u540c\u4e00\u4e2a\u76ee\u5f55\u4e0b\u3002<\/p>\n\n\n\n<p>\u7b2c\u56db\u6b65\uff1a\u5728\u7a0b\u5e8f\u51fa\u73b0\u95ee\u9898\u65f6\uff0c\u5728 ProcessExplorer \u4e2d\u53cc\u51fb\u81ea\u5df1\u7684\u8fdb\u7a0b\uff0c\u7136\u540e\u8fdb\u5165 Threads \u9875\u9762\uff0c\u9009\u62e9\u76ee\u6807\u7ebf\u7a0b\uff0c\u7136\u540e\u70b9\u51fb Stack \u6309\u94ae\uff0c\u5c31\u53ef\u4ee5\u67e5\u770b\u6307\u5b9a\u7ebf\u7a0b\u5f53\u524d\u7684\u8c03\u7528\u6808\u60c5\u51b5\uff0c\u6b64\u65f6\u4f60\u8fdb\u7a0b\u91cc\u5bf9\u5e94\u7684 Delphi \u51fd\u6570\u5730\u5740\u4fe1\u606f\u5c31\u4e00\u76ee\u4e86\u7136\u4e86\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"493\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2019\/07\/201905082122096-1024x493.png\" alt=\"\" class=\"wp-image-5100\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2019\/07\/201905082122096-1024x493.png 1024w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2019\/07\/201905082122096-300x145.png 300w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2019\/07\/201905082122096-768x370.png 768w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2019\/07\/201905082122096.png 1202w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.darkthread.net\/Photos\/3875-f827-o.gif\" alt=\"\"\/><figcaption>\u55ef\uff0c\u6b64\u5904\u56fe\u7247\u4e0e Delphi \u65e0\u5173\uff0c\u53ea\u662f\u627e\u4e00\u4e2a\u793a\u610f\u4e00\u4e0b\u3002<\/figcaption><\/figure>\n\n\n\n<p>\u597d\u4e86\uff0c\u7948\u7977\u7a0b\u5e8f\u6c38\u65e0 Bug!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ProcessExplorer \u53ef\u4ee5\u67e5\u770b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,603],"tags":[],"class_list":["post-5096","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-603"],"views":4397,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5096"}],"version-history":[{"count":3,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5096\/revisions"}],"predecessor-version":[{"id":5101,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5096\/revisions\/5101"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}