Changeset 1104


Ignore:
Timestamp:
Dec 17, 2011, 11:36:45 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

wmapsym.cmd: Understand segment entries with missing code or group names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mkspecs/os2-g++/wmapsym.cmd

    r954 r1104  
    33 * Creates a .SYM file from the Watcom .MAP file using IBM MAPSYM.
    44 *
    5  * Copyright (C) 2010 Dmitry A. Kuminov
     5 * Copyright (C) 2010-2011 Dmitry Kuminov
    66 *
    77 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
     
    166166                end
    167167                else do
    168                     parse value Normalize(line) with name class group addr size
     168                    parse value Normalize(line) with name rest
     169                    i = words(rest)
     170                    if (i == 2) then parse var rest         addr size
     171                    else if (i == 3) then parse var rest        group addr size
     172                    else parse var rest                     class group addr size
    169173                    i = segments.0 + 1
    170174                    segments.i.!name = name
     
    234238    cmdline
    235239
    236     call DeleteFile G.IbmMapFile
    237 
    238240    if (rc \= 0) then do
    239241        call SayErr 'Executing "'cmdline'" failed with code 'rc'.'
     242        call SayErr 'Please check the contents of "'G.IbmMapFile'".'
    240243        call Done rc
    241244    end
     245
     246    call DeleteFile G.IbmMapFile
    242247
    243248    return
Note: See TracChangeset for help on using the changeset viewer.