{"id":1903,"date":"2015-06-28T19:10:35","date_gmt":"2015-06-28T10:10:35","guid":{"rendered":"http:\/\/tech.akat.info\/?p=1903"},"modified":"2015-06-28T19:10:35","modified_gmt":"2015-06-28T10:10:35","slug":"%e3%83%97%e3%83%ad%e3%82%bb%e3%82%b9%e3%81%ae%e3%83%a1%e3%83%a2%e3%83%aa%e5%86%85%e5%ae%b9%e3%82%92%e3%83%80%e3%83%b3%e3%83%97%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=1903","title":{"rendered":"\u30d7\u30ed\u30bb\u30b9\u306e\u30e1\u30e2\u30ea\u5185\u5bb9\u3092\u30c0\u30f3\u30d7\u3059\u308b"},"content":{"rendered":"<h1>\u53c2\u8003URL<\/h1>\n<p>\u30d1\u30af\u308a\u307e\u3057\u305f\u3002<br \/>\nhttp:\/\/blog.akagi.jp\/archives\/128.html<\/p>\n<h1>gdb<\/h1>\n<p>The GNU Project Debugger<br \/>\nLinux\u3067\u6a19\u6e96\u7684\u306b\u4f7f\u308f\u308c\u308b\u30d5\u30ea\u30fc\u306e\u30c7\u30d0\u30c3\u30b0\u7528\u30bd\u30d5\u30c8(\u30c7\u30d0\u30c3\u30ac)<\/p>\n<h1>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u78ba\u8a8d\u65b9\u6cd5<\/h1>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n### \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb ###\r\nroot@hostname:\/home\/shimizu# aptitude install gdb\r\n\u4ee5\u4e0b\u306e\u65b0\u898f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\r\n  gdb gdbserver{a} libc6-dbg{a}\r\n...\r\nroot@hostname:\/home\/shimizu# ps afx | grep &#x5B;a]pache2\r\n 3627 ?        Ss     1:05 \/usr\/sbin\/apache2 -k start\r\n15435 ?        S      0:00  \\_ \/usr\/sbin\/apache2 -k start\r\n15442 ?        S      0:00  \\_ \/usr\/sbin\/apache2 -k start\r\n\r\n### \u30c0\u30f3\u30d7\u3059\u308b ###\r\nroot@hostname:\/home\/shimizu# gdb\r\nGNU gdb (Debian 7.7.1+dfsg-5) 7.7.1\r\nCopyright (C) 2014 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later &lt;http:\/\/gnu.org\/licenses\/gpl.html&gt;\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.  Type &quot;show copying&quot;\r\nand &quot;show warranty&quot; for details.\r\nThis GDB was configured as &quot;x86_64-linux-gnu&quot;.\r\nType &quot;show configuration&quot; for configuration details.\r\nFor bug reporting instructions, please see:\r\n&lt;http:\/\/www.gnu.org\/software\/gdb\/bugs\/&gt;.\r\nFind the GDB manual and other documentation resources online at:\r\n&lt;http:\/\/www.gnu.org\/software\/gdb\/documentation\/&gt;.\r\nFor help, type &quot;help&quot;.\r\nType &quot;apropos word&quot; to search for commands related to &quot;word&quot;.\r\n(gdb) attach 3627\r\nAttaching to process 3627\r\nReading symbols from \/usr\/sbin\/apache2...(no debugging symbols found)...done.\r\nReading symbols from \/lib\/x86_64-linux-gnu\/libpcre.so.3...(no debugging symbols found)...done.\r\nLoaded symbols for \/lib\/x86_64-linux-gnu\/libpcre.so.3\r\n...\r\n\r\n(gdb) gcore memory.text\r\nwarning: target file \/proc\/3627\/cmdline contained unexpected null characters\r\nwarning: Memory read failed for corefile section, 8192 bytes at 0x7ffc84899000.\r\nSaved corefile memory.text\r\n(gdb) detach\r\nDetaching from program: \/usr\/sbin\/apache2, process 3627\r\n(gdb) quit\r\n\r\n### \u30d0\u30a4\u30ca\u30ea\u30a8\u30c7\u30a3\u30bf\u3067\u95b2\u89a7\u3059\u308b ###\r\nroot@hostname:\/home\/shimizu# od memory.text\r\n417444000 077457 000000 062141 072144 070171 000145 063456 000172\r\n417444020 000000 000000 072056 075147 077400 000000 062141 072144\r\n417444040 070171 000145 061056 031172 000000 000000 062141 066144\r\n...\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u8003URL \u30d1\u30af\u308a\u307e\u3057\u305f\u3002 http:\/\/blog.akagi.jp\/archives\/128.html gdb The GNU Project Debugger Linux\u3067\u6a19\u6e96\u7684\u306b\u4f7f\u308f\u308c\u308b\u30d5\u30ea\u30fc\u306e\u30c7\u30d0\u30c3\u30b0\u7528\u30bd\u30d5\u30c8(\u30c7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/1903"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1903"}],"version-history":[{"count":1,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/1903\/revisions"}],"predecessor-version":[{"id":1904,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/1903\/revisions\/1904"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}