2010년 9월 16일 목요일

etags 사용법

  • Create etags
Windows cmd

  • dir "*.h" "*.c" "*.s" /s/b | etags -
Ubuntu shell
  • find . -name "*.[chCH]" -print | xargs etags -a -o TAGS

  • TAGS 파일 경로 지정
 emacs 명령어
  • M-x visit-tags-table

ETAGS-KEY-BINDINGS
M-! etags *.[ch]index .c and .h files in current directory
C-u M-x `visit-tags-table'set index file for current buffer
M-x `visit-tags-table'globally set index file
M-.go to definition of symbol in index
C-M-.go to definition for a regular expression in index
C-u M-.go to next definition
M-- M-.go to previous definition
M-*return back to before you started
M-x `tags-search'go to entry for regular expression in index
M-,go to next entry in index
M-x `tags-query-replace'search and replace for regular expression
M-TABcomplete tag at point
C-u M-TABcomplete language symbol, avoid tags, at po

GDB

변수 값 출력 명령 출력 명령 p [변수명] p [함수명] p /[출력형식] [변수명]  출력 형식 t : binary o: octal d: decimal u: unsigned decimal x: hexadecimal c: ...