On Thu, 26 Jun 2008 16:27:31 +0200, Daniel Jacobowitz wrote: > Also, I don't know how useful this feature is, but what happens with > "watch foo()"? Hmm, it crashes. A loop of: #7736 call_function_by_hand (function=0xc7bcb0, nargs=0, args=0x7fffffffc528) at infcall.c:727 #7737 evaluate_subexp_standard (expect_type=0x0, exp=0xcb2f90, pos=0x7fffffffc9dc, noside=EVAL_NORMAL) at eval.c:1296 #7738 evaluate_subexp (expect_type=0x0, exp=0xcb2f90, pos=0x7fffffffc9dc, noside=EVAL_NORMAL) at eval.c:75 #7739 evaluate_expression (exp=0xcb2f90) at eval.c:165 #7740 gdb_evaluate_expression (exp=0xcb2f90, value=0x7fffffffca68) at wrapper.c:47 #7741 fetch_watchpoint_value (exp=0xcb2f90, valp=0x7fffffffcb18, resultp=0x7fffffffcb10, val_chain=0x7fffffffcb20) at breakpoint.c:844 #7742 update_watchpoint (b=0xc741c0, reparse=0) at breakpoint.c:937 #7743 insert_breakpoints () at breakpoint.c:1265 #7744 proceed (addr=18446744073709551615, siggnal=TARGET_SIGNAL_DEFAULT, step=0) at infrun.c:1229 This patch is the one I propose to be possibly accepted. Regards, Jan