2.14 在GDB中bt查看调用栈回溯时输出太过冗长
Q: 主要是不想看到参数的具体值
A:
(gdb) set print frame-arguments none // 有三种值,all/scalars/none,默认是all
(gdb) bt
0 0xb7ef48d0 in sendmsg () from /lib/i686/cmov/libc.so.6
1 0x0822d32a in doio_send (sock=..., dev=...) at socket.c:1522
2 0x0823151a in socket_send (sock=..., dev=..., task=..., address=..., pktinfo=..., flags=...) at socket.c:4134
3 0x08231b13 in isc_socket_sendto2 (sock=..., region=..., task=..., address=..., pktinfo=..., event=..., flags=...) at socket.c:4291
4 0x0804c97c in client_sendpkg (client=..., buffer=...) at client.c:851
5 0x0804ce3d in ns_client_send (client=...) at client.c:1018
6 0x0805998f in query_send (client=...) at query.c:177
7 0x08068e9f in query_find (client=..., event=..., qtype=...) at query.c:4868
8 0x08062116 in query_resume (task=..., event=...) at query.c:3152
9 0x082245da in dispatch (manager=...) at task.c:862
10 0x08224db8 in isc__taskmgr_dispatch () at task.c:1252
11 0x08226bea in evloop () at app.c:358
12 0x08226e70 in isc_app_run () at app.c:550
13 0x080593f5 in main (argc=..., argv=...) at ./main.c:932