Because the program is invoked as part of a much larger system & I don't
know which process is going to crash when.
Having gdb come up automatically would greatly decrease development
time. I'm trying to track down multiple bugs (caused by me, but they
still need tracking down) which show up during stress testing. The bug
will manifest itself in maybe the 1000th iteration... If I could hack
gdb into coming up automatically when things went wrong it'd get rid of
the need to have thousands of printf's in the app (which is my primary
debugging tool at the moment).
At work I do this all the time... Windows pops up a dialog which
basically says 'the program has crashed, debug?' and drops you straight
into VC with everything intact. It has assertion macros which wrap int3
instructions. You then continue your app under normal debug conditions.
(Fighting with evolution because Mozilla broke imap again... sigh...)
"Two weeks before due date, the programmers work 22 hour days cobbling an application from... (apparently) one programmer bashing his face into the keyboard." -- Dilbert
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to firstname.lastname@example.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/