DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T t

⟦7d4a81d87⟧ TextFile

    Length: 602 (0x25a)
    Types: TextFile
    Names: »testbpt.c«

Derivation

└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
    └─⟦46d41b2d0⟧ »./emacs-18.55.tar.Z« 
        └─⟦fa971747f⟧ 
            └─⟦this⟧ »dist-18.55/gdb/testbpt.c« 

TextFile

/* 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 ()
{
}