CDB, cc -g and core files

Jean-Pierre ALLEGRE jpa at hpgnd.HP.COM
Sat Jul 8 01:10:59 AEST 1989


I am working on a 68000 card  that runs C code. In case of failure, I can 
retrieve the whole memory of the card onto an UNIX workstation. My problem 
is now to format the data from that upload. Until now, I have written some 
procedure that fetch the variables in the upload file and display them. 
As this is hard to maintain and boring to code, I am looking into a way to 
use CDB. For that, I have 2 questions :
   - What is the format of a core file. If I could translate my upload file 
     into core format, I could directly use CDB on it.
     (Note : the code running on the card is not compiled with the -g option).
   - I have looked at the assembly generated with the -g and -S options and
     I am looking for information about the dnt_ instructions generated.
     Could I retrieve data from these instructions do generate display 
     routines?



More information about the Comp.lang.c mailing list