disable/enable

(gdb) info b
Num     Type           Disp Enb Address            What
1       breakpoint     keep y   0x0000000000a3c27a in InvalidateCatalogSnapshot at snapmgr.c:566
        breakpoint already hit 3 times
2       breakpoint     keep y   0x00000000004e9fc6 in systable_beginscan at genam.c:361
(gdb) disable b 1
(gdb) enable b 1

找不到executable
// 通过file指定executable

warning: Could not load vsyscall page because no executable was specified
0x00007fdca765afb3 in ?? ()
(gdb) file /home/install/bin/postgres

pretty print
// 结构化打印

(gdb) set print pretty on
(gdb) set print array-indexes on

(gdb) p *stmt
$1 = {
  type = T_SelectStmt,
  distinctClause = 0x0,
  intoClause = 0x0,
}

启动程序

$ gdb pgagent
(gdb) run -f -l 2 -s pgagent.out "user=gpadmin dbname=dw1"
(gdb) bt

黑暗森林
12 声望3 粉丝

弱小和无知不是生存的障碍,傲慢才是!


引用和评论

0 条评论