{"id":3013,"date":"2013-01-02T08:51:34","date_gmt":"2013-01-02T08:51:34","guid":{"rendered":"http:\/\/ddolgi.pe.kr\/blog\/index.php\/2013\/01\/02\/linuxgdb-%eb%aa%85%eb%a0%b9-%eb%aa%a8%ec%9d%8c\/"},"modified":"2013-01-02T08:51:34","modified_gmt":"2013-01-02T08:51:34","slug":"linuxgdb-%eb%aa%85%eb%a0%b9-%eb%aa%a8%ec%9d%8c","status":"publish","type":"post","link":"http:\/\/ddolgi.pe.kr\/blog\/archives\/3013","title":{"rendered":"[Linux]gdb \uba85\ub839 \ubaa8\uc74c"},"content":{"rendered":"<p>\ubd80\uc7a5\ub2d8\uc758 &#8216;\uc720\ub2c9\uc2a4 \ub9ac\ub205\uc2a4 \ud504\ub85c\uadf8\ub798\ubc0d \ud544\uc218 \uc720\ud2f8\ub9ac\ud2f0&#8217;\ub77c\ub294 \ucc45\uc744 \ud6d1\ub2e4\ubcf4\ub2c8, \uac10\uc0c1\ubb38 \ubcf4\ub2e4\ub294 gdb\ub098 \ucc38\uace0\uc6a9\uc73c\ub85c \uc815\ub9ac\ud574\uc57c\uaca0\ub2e4 \uc2f6\uc5c8\ub2e4.<\/p>\n<p>(\ubb3c\ub860, ctags, autoconf, automake doxygen,gprof\/gcov \ub4f1\ub3c4 \ub354 \uacf5\ubd80\ud574\uc57c\uaca0\uc9c0\ub9cc;;; \ub0b4\uac90 \uc880 \ub108\ubb34 \uae4a\uac8c \ub4e4\uc5b4\uac04\ub2e4\ub294;;;)<\/p>\n<p><\/p>\n<table class=\"txc-table\" width=\"545\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"border: none; border-collapse: collapse; font-family: \ub3cb\uc6c0; font-size: 12px; width: 545px;\">\n<tbody>\n<tr>\n<td style=\"width: 270px; height: 24px; border: 1px solid rgb(204, 204, 204);\">\n<p style=\"text-align: center;\">l(ist) func&nbsp;<\/p>\n<\/td>\n<td style=\"width: 274px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204);\">\n<p>\ud568\uc218 \uc18c\uc2a4 \ucd9c\ub825&nbsp;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 270px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204);\">\n<p style=\"text-align: center;\">&nbsp;b(reak) 10 if var == 0<\/p>\n<\/td>\n<td style=\"width: 274px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204);\">\n<p>10\ud589\uc5d0\uc11c var\uc774 0\uc77c \ub54c \uc815\uc9c0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 270px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204);\">\n<p style=\"text-align: center;\">&nbsp;cl file.c::func<\/p>\n<\/td>\n<td style=\"width: 274px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204);\">\n<p>file.c\uc758 func \ud568\uc218\uc5d0 \uc815\uc9c0\uc810 \ud574\uc81c&nbsp;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 270px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204);\">\n<p style=\"text-align: center;\">&nbsp;info b(reakpoints)\/locals\/frame\/thread<\/p>\n<\/td>\n<td style=\"width: 274px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204);\">\n<p>\uc815\uc9c0\uc810\/\uc9c0\uc5ed&nbsp;\ubcc0\uc218\/stack frame\/thread&nbsp;\uc815\ubcf4&nbsp;\ucd9c\ub825<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 270px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204);\">\n<p style=\"text-align: center;\">s\/n\/c&nbsp;<\/p>\n<\/td>\n<td style=\"width: 274px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204);\">\n<p>\ub2e4\uc74c \ub2e8\uacc4(DFS)\/\ub2e4\uc74c \ud589(BFS)\/\uacc4\uc18d \uc2e4\ud589<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 270px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204);\">\n<p style=\"text-align: center;\">u(ntil)\/finish\/return&nbsp;<\/p>\n<\/td>\n<td style=\"width: 274px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204);\">\n<p>loop \ud0c8\ucd9c\/\uc218\ud589 \ud6c4 \ud568\uc218 \ud0c8\ucd9c\/\ud568\uc218 \ud0c8\ucd9c&nbsp;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 270px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204);\">\n<p style=\"text-align: center;\">watch&nbsp;var<\/p>\n<\/td>\n<td style=\"width: 274px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204);\">\n<p>var\uac00 \ubc14\ub014 \ub54c\ub9c8\ub2e4 \ucd9c\ub825 \ud6c4 \uba48\ucda4&nbsp;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 270px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204);\">\n<p style=\"text-align: center;\">&nbsp;display var<\/p>\n<\/td>\n<td style=\"width: 274px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204);\">\n<p>\uc9c4\ud589\ud560 \ub54c\ub9c8\ub2e4 var \ucd9c\ub825<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 270px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204);\">\n<p style=\"text-align: center;\">&nbsp;<\/p>\n<\/td>\n<td style=\"width: 274px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204);\">&nbsp;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 270px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204);\">\n<p style=\"text-align: center;\">&nbsp;<\/p>\n<\/td>\n<td style=\"width: 274px; height: 24px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204);\">&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ubd80\uc7a5\ub2d8\uc758 &#8216;\uc720\ub2c9\uc2a4 \ub9ac\ub205\uc2a4 \ud504\ub85c\uadf8\ub798\ubc0d \ud544\uc218 \uc720\ud2f8\ub9ac\ud2f0&#8217;\ub77c\ub294 \ucc45\uc744 \ud6d1\ub2e4\ubcf4\ub2c8, \uac10\uc0c1\ubb38 \ubcf4\ub2e4\ub294 gdb\ub098 \ucc38\uace0\uc6a9\uc73c\ub85c \uc815\ub9ac\ud574\uc57c\uaca0\ub2e4 \uc2f6\uc5c8\ub2e4. (\ubb3c\ub860, ctags, autoconf, automake doxygen,gprof\/gcov \ub4f1\ub3c4 \ub354 \uacf5\ubd80\ud574\uc57c\uaca0\uc9c0\ub9cc;;; \ub0b4\uac90 \uc880 \ub108\ubb34 \uae4a\uac8c \ub4e4\uc5b4\uac04\ub2e4\ub294;;;) l(ist) func&nbsp; \ud568\uc218 \uc18c\uc2a4 \ucd9c\ub825&nbsp; &nbsp;b(reak) 10 if var == 0 10\ud589\uc5d0\uc11c var\uc774 0\uc77c \ub54c \uc815\uc9c0 &nbsp;cl file.c::func file.c\uc758 func \ud568\uc218\uc5d0 \uc815\uc9c0\uc810 \ud574\uc81c&nbsp; &nbsp;info b(reakpoints)\/locals\/frame\/thread \uc815\uc9c0\uc810\/\uc9c0\uc5ed&nbsp;\ubcc0\uc218\/stack frame\/thread&nbsp;\uc815\ubcf4&nbsp;\ucd9c\ub825 s\/n\/c&nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[275],"tags":[],"class_list":["post-3013","post","type-post","status-publish","format-standard","hentry","category-275"],"_links":{"self":[{"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/posts\/3013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/comments?post=3013"}],"version-history":[{"count":0,"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/posts\/3013\/revisions"}],"wp:attachment":[{"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/media?parent=3013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/categories?post=3013"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ddolgi.pe.kr\/blog\/wp-json\/wp\/v2\/tags?post=3013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}