Changeset 13827
- Timestamp:
- Mar 27, 2000, 2:36:17 PM (25 years ago)
- Location:
- tags/trunk/tools/dbginfo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/tools/dbginfo/dbgLXDumper.c ¶
r13826 r13827 1 /* $Id: dbgLXDumper.c,v 1. 4 2000-03-27 10:20:42bird Exp $1 /* $Id: dbgLXDumper.c,v 1.5 2000-03-27 12:36:16 bird Exp $ 2 2 * 3 3 * dbgLXDumper - reads and interprets the debuginfo found in an LX executable. … … 190 190 " Signature %.4s\n" 191 191 " Directory offset 0x%08x (%d)\n" 192 " reserved 0x%08x (%d)\n"193 192 "\n", 194 193 pHdr->achSignature, 195 194 pHdr->offDirectory, 196 pHdr->offDirectory, 197 pHdr->ulReserved, 198 pHdr->ulReserved); 195 pHdr->offDirectory); 199 196 200 197 … … 211 208 fprintf(phOut, 212 209 "- HLL Directory -\n" 213 " Reserved 0x%08x (%d)\n" 214 " Number of entries 0x%08x (%d)\n", 215 pDir->ulReserved, 216 pDir->ulReserved, 210 " Size of this struct 0x%02x (%d)\n" 211 " Size directory entry 0x%02x (%d)\n" 212 " Number of entries 0x%08x (%d)\n", 213 pDir->cb, 214 pDir->cb, 215 pDir->cbEntry, 216 pDir->cbEntry, 217 217 pDir->cEntries, 218 218 pDir->cEntries); -
TabularUnified tags/trunk/tools/dbginfo/hll.h ¶
r13823 r13827 1 /* $Id: hll.h,v 1. 3 2000-03-26 21:56:37 bird Exp $1 /* $Id: hll.h,v 1.4 2000-03-27 12:36:17 bird Exp $ 2 2 * 3 3 * HLL definitions. … … 56 56 unsigned long offDirectory; /* Offset to the HLL Directory. 57 57 * (Relative to start of this header.) */ 58 unsigned long ulReserved; /* Unknown field. Seems to be 1. */59 58 } HLLHDR, *PHLLHDR; 60 59 … … 80 79 typedef struct _HLLDirectory 81 80 { 82 unsigned long ulReserved; /* Unknown. */ 81 unsigned short cb; /* Size of this struct (minus aEntries) 82 * / offset of aEntries relative to start of this structure. */ 83 unsigned short cbEntry; /* Size of the directory entries (HLLDIRENTRY). */ 83 84 unsigned long cEntries; /* Count of directory entires. */ 84 85 HLLDIRENTRY aEntries[1]; /* Directory. */ -
TabularUnified tags/trunk/tools/dbginfo/kHll.cpp ¶
r13826 r13827 1 /* $Id: kHll.cpp,v 1. 6 2000-03-27 10:20:42bird Exp $1 /* $Id: kHll.cpp,v 1.7 2000-03-27 12:36:17 bird Exp $ 2 2 * 3 3 * kHll - Implementation of the class kHll. … … 582 582 memcpy(hllHdr.achSignature, "NB04", 4); 583 583 hllHdr.offDirectory = 0; 584 hllHdr.ulReserved = 1;585 584 cch = fwrite(&hllHdr, 1, sizeof(hllHdr), phFile); 586 585 if (cch != sizeof(hllHdr)) … … 618 617 lPosDir = ftell(phFile); 619 618 hllDir.cEntries = 0; 620 hllDir.ulReserved = 0; //FIXME/TODO - not quite sure what this is or should be! 619 hllDir.cb = offsetof(HLLDIR, aEntries); 620 hllDir.cbEntry = sizeof(HLLDIRENTRY); 621 621 cch = fwrite(&hllDir, 1, offsetof(HLLDIR, aEntries), phFile); 622 622 if (cch != offsetof(HLLDIR, aEntries))
Note:
See TracChangeset
for help on using the changeset viewer.