Changeset 13827


Ignore:
Timestamp:
Mar 27, 2000, 2:36:17 PM (25 years ago)
Author:
bird
Message:

Removed ulReserved from HLLHDR.
ulReserved from HLLDIR is two shorts, cb and cbEntry.

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:42 bird Exp $
     1/* $Id: dbgLXDumper.c,v 1.5 2000-03-27 12:36:16 bird Exp $
    22 *
    33 * dbgLXDumper - reads and interprets the debuginfo found in an LX executable.
     
    190190            "    Signature          %.4s\n"
    191191            "    Directory offset   0x%08x (%d)\n"
    192             "    reserved           0x%08x (%d)\n"
    193192            "\n",
    194193            pHdr->achSignature,
    195194            pHdr->offDirectory,
    196             pHdr->offDirectory,
    197             pHdr->ulReserved,
    198             pHdr->ulReserved);
     195            pHdr->offDirectory);
    199196
    200197
     
    211208    fprintf(phOut,
    212209            "- 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,
    217217            pDir->cEntries,
    218218            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 $
    22 *
    33 * HLL definitions.
     
    5656    unsigned long   offDirectory;       /* Offset to the HLL Directory.
    5757                                         * (Relative to start of this header.) */
    58     unsigned long   ulReserved;         /* Unknown field. Seems to be 1. */
    5958} HLLHDR, *PHLLHDR;
    6059
     
    8079typedef struct _HLLDirectory
    8180{
    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). */
    8384    unsigned long   cEntries;           /* Count of directory entires. */
    8485    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:42 bird Exp $
     1/* $Id: kHll.cpp,v 1.7 2000-03-27 12:36:17 bird Exp $
    22 *
    33 * kHll - Implementation of the class kHll.
     
    582582    memcpy(hllHdr.achSignature, "NB04", 4);
    583583    hllHdr.offDirectory = 0;
    584     hllHdr.ulReserved = 1;
    585584    cch = fwrite(&hllHdr, 1, sizeof(hllHdr), phFile);
    586585    if (cch != sizeof(hllHdr))
     
    618617    lPosDir = ftell(phFile);
    619618    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);
    621621    cch = fwrite(&hllDir, 1, offsetof(HLLDIR, aEntries), phFile);
    622622    if (cch != offsetof(HLLDIR, aEntries))
Note: See TracChangeset for help on using the changeset viewer.