Vladimir Prus wrote: > > I think this is good. You did not attach your patches, so I cannot comment on > the code itself. Patches attached. > > Also, since this code touches infrun.c and affects CLI, I think some of the > global maintainers will have to approve it. The proposed patch (attached) will produce the following outputs: CLI: (gdb) tbreak main Temporary breakpoint 1 at 0x80483a0: file ./main.c, line 15. (gdb) r Starting program: /space/src/testcases/sigsegv/main Temporary breakpoint 1, main () at ./main.c:15 15 foo (p); MI: (gdb) -break-insert -t main ^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x080483a0",func="main",file="./main.c",fullname="/space/src/testcases/sigsegv/main.c",line="15",times="0"} (gdb) -exec-run ^running (gdb) *stopped,reason="breakpoint-hit",disp="del",bkptno="1",thread-id="0",frame={addr="0x080483a0",func="main",args=[],file="./main.c",fullname="/space/src/testcases/sigsegv/main.c",line="15"} ----- ChangeLog 2008-03-10 Aleksandar Ristovski * infrun.c (normal_stop) Move breakpoint_auto_delete further down to allow printing to 'see' real reason of stop. This fixes PR 2424. * breakpoint.c (print_it_typical): Print "Temporary breakpoint" instead of just "Breakpoint" when breakpoint is, well, temporary. (mention): Likewise. ----- testsuite ChangeLog 2008-03-10 Aleksandar Ristovski * gdb.base/attach.exp (proc_do_attach_tests): Matching pattern for temporary breakpoint to match "Temporary breakpoint". * gdb.base/break.exp (delete_breakpoints): Likewise. * gdb.base/call-ar-st.exp (get_debug_format): Likewise. * gdb.base/commands.exp (temporary_breakpoint_commands): Likewise. * gdb.base/display.exp: Likewise. * gdb.base/foll-exec.exp (do_exec_tests): Likewise. * gdb.base/restore.exp (restore_tests): Likewise. * gdb.base/sepdebug.exp: Likewise. * gdb.base/watchpoint.exp: Likewise. * gdb.mi/mi-pending.exp: Matching pattern for new "disp" field. * gdb.mi/mi-simplerun.exp (test_running_the_program): Likewise. * gdb.mi/mi-until.exp (test_runnint_to_foo): Likewise. * gdb.mi/mi-var-display.exp: Likewise. * gdb.mi/mi2-simplerun.exp (test_running_the_program): Likewise. * gdb.mi/mi2-until.exp (test_running_to_foo): Likewise. * gdb.mi/mi2-var-display.exp: Likewise. * lib/gdb.exp (gdb_breakpoint): Likewise. * lib/mi-support.exp: Add "reason" and "disp" fields to the matching pattern. This is to support fix for PR2424.