|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T t
Length: 602 (0x25a) Types: TextFile Names: »testbpt.c«
└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89 └─⟦46d41b2d0⟧ »./emacs-18.55.tar.Z« └─⟦fa971747f⟧ └─⟦this⟧ »dist-18.55/gdb/testbpt.c«
/* Run this program straight. Then set a breakpoint in `dump', run it again, and continue the program. Diff the outputs and you will see what the supplied debugger does for a breakpoint. */ int dump (); int after_dump (); main () { printf ("main = 0x%x\ndump = 0x%x\nend = 0x%x\n", main, dump, after_dump); dump (main, after_dump); } int dump (p, q) int *p; int *q; { int cnt = 0; printf ("dump: 0x%x-0x%x\n", p, q); while (p < q) { if ((cnt++ & 3) == 0) printf ("\n0x%08x: ", p); printf ("0x%08x ", *p++); } printf ("\n"); } after_dump () { }