아래 코드는 gdb -x gdb.scr (gdb.scr로 저장한 경우) 로 실행시킬 수 있다. file bst # bst라는 executable file을 대상으로 함. define watchNode # 나름의 subroutine을 정의했음;; 여기서 정의한 watchNode라는 명령어는 end가 나올때 까지 나오는 명령어를 순차적으로 실행하는 것임. set $me = this print this print area print ms print &area print &ms #watch area #watch ms end break bst_header.h:167 # 브레이크 포인트 걸기 commands 1 # break point 1이 걸리기만 하면 자동으로 수행할 명령어 set watchNode contin..