gdb
.gdbinit
gdb 실행 시 불러옴
souce -v dawnsea_gdb
스크립트 파일 불러옴
간단한 스크립트 예제
delete
set $dmc_counter=0
define dmc_plus
set $arg0 = $arg0 + 1
end
document dmc_plus
for val, increase 1
end
args -a -i 0 -i 1
file iozone
b read_perf_test
command
silent
if $dmc_counter != 0
printf "\n[%d] %x, %x\n",$dmc_counter, *data1, *data2
end
if $dmc_counter == 0
printf "\n\n\n\n\nlogging start!\n"
set logging file dawnsea.log
set logging overwrite on
set logging on
set pagination off
end
dmc_plus $dmc_counter
if $dmc_counter == 30
printf "\n\n\n\n\n\n------------logging end\n\n\n\n"
set pagination on
set logging off
end
if $dmc_counter < 30
c
end
end
delete 브레이크 포인트 지움
info break
http://marc.info/?l=osdl-fastboot&m=111610217101769&w=2
http://users.ece.utexas.edu/~adnan/gdb-refcard.pdf
http://jan.kneschke.de/projects/mysql/gdb-auto-stacktrace