{"id":5856,"date":"2019-11-30T18:12:41","date_gmt":"2019-11-30T10:12:41","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5856"},"modified":"2019-11-30T18:15:06","modified_gmt":"2019-11-30T10:15:06","slug":"gdbserver","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/gdbserver","title":{"rendered":"gdbserver – \u8c03\u8bd5\u8fdc\u7a0b\u670d\u52a1\u5668"},"content":{"rendered":"\n

\u4f7f\u7528gdbserver\u547d\u4ee4\u53ef\u4ee5\u5141\u8bb8\u5728\u4e0d\u540c\u7684\u4e3b\u673a\u4e0a\u8fd0\u884cGDB\u6765\u8fdb\u884c\u7a0b\u5e8f\u8c03\u8bd5\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>gdbserver [\u53c2\u6570] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

--debug<\/td>\u542f\u7528\u4e00\u822c\u7684\u8c03\u8bd5\u8f93\u51fa<\/td><\/tr>
--attach<\/td>\u6307\u5b9a\u8fdb\u7a0b\u53f7<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u4f7f\u7528\u4e32\u884c\u7aef\u53e3\u8fdb\u884c\u7a0b\u5e8f\u8c03\u8bd5\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# gdbserver \/dev\/coml emacs gdb.txt<\/pre>\n\n\n\n

\u4f7f\u7528TCP\u8fde\u63a5\u8fdb\u884c\u7a0b\u5e8f\u8c03\u8bd5\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# gdbserver host:2345 emacs gdb.txt<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u4f7f\u7528gdbserver\u547d\u4ee4\u53ef\u4ee5\u5141\u8bb8\u5728\u4e0d\u540c\u7684\u4e3b\u673a\u4e0a\u8fd0\u884cGDB\u6765\u8fdb\u884c\u7a0b\u5e8f\u8c03\u8bd5\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1agdbserver [\u53c2 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5856"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5856"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5856\/revisions"}],"predecessor-version":[{"id":6438,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5856\/revisions\/6438"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}