@zhxianbin 也不行
(gdb) start
Temporary breakpoint 1 at 0x8048c46: file 12-1main.cpp, line 23.
Starting program: /home/lpf/cpp/chapter12/a.out
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00367793 in _dl_debug_state () from /lib/ld-linux.so.2
(gdb) handle SIG5 nostop pass
Unrecognized or ambiguous flag word: "SIG5".
(gdb) handle SIGTRAP nostop pass
SIGTRAP is used by the debugger.
Are you sure you want to change it? (y or n) Y
Signal Stop Print Pass to program Description
SIGTRAP No Yes Yes Trace/breakpoint trap
(gdb) c
Continuing.
Program terminated with signal SIGTRAP, Trace/breakpoint trap.
The program no longer exists.
(gdb) n
The program is not being run.