[comp.sys.hp] who dumped core?

lrb@rrivax.rri.uwo.ca (Lance R. Bailey) (11/22/90)

hi, i need a proggie on the 800 to tell me the name (argv[0] will do)
of the code that dumped core.

on the 500 it was a snap, read in the user struct and pickout the 
u_ppg_args field.

on the 800, there is no u_ppg_args. there is a u_ap field, but it seems
to be rather empty.

this code returns "core created by <>"

    union 
    {  char buffer[2056];
       struct { struct ofile_t ofiletbuff; struct user userbuff; } Cinfo;
    } Chead;
    char *charptr;

    ...

    fread(Chead.buffer,sizeof(char),1024,core);
    fprintf(stdout,"%s created from <%s>\n",file,Chead.Cinfo.userbuff.u_ap[0]);

why is *u_ap[0] NULL?


Lance R. Bailey, Systems Manager 
================================   box: Robarts Research Institute
email: lrb@rri.uwo.ca                   Clinical Trials Resources Group
  fax: 519.663.3789                     P.O. Box 5015, 100 Perth Dr.
  vox: 519.663.3787 ext. 4108           London, Canada N6A 5K8