Ignore:
Timestamp:
Oct 2, 2023, 11:34:35 PM (23 months ago)
Author:
gyoung
Message:

Remaining changes from merge with Lars 2.9 branch

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/classes/c/c_common/except.c

    r41 r104  
    130130   USHORT  SS;
    131131} DbgBuf;
    132 /*-------------------------------------*/
    133 APIRET APIENTRY DOSQUERYMODFROMEIP( HMODULE *phMod,
    134                                     ULONG *pObjNum,
    135                                     ULONG BuffLen,
    136                                     PCHAR pBuff,
    137                                     ULONG *pOffset,
    138                                     PVOID Address );
    139 /*APIRET APIENTRY DosQueryModFromEIP( HMODULE *phMod,
    140                                     ULONG *pObjNum,
    141                                     ULONG BuffLen,
    142                                     PCHAR pBuff,
    143                                     ULONG *pOffset,
    144                                     PVOID Address );*/
    145 
    146 /*-------------------------------------*/
     132
    147133/* CW
    148134#define DBG_O_OBJMTE       0x10000000L*/
     
    459445
    460446  return 'c';
    461 } 
     447}
    462448
    463449ULONG _System excHandler(PEXCEPTIONREPORTRECORD pERepRec,
     
    515501{
    516502  ULONG rc = XCPT_CONTINUE_SEARCH;
    517  
     503
    518504  if (pERepRec->fHandlerFlags & EH_EXIT_UNWIND)
    519505    return (XCPT_CONTINUE_SEARCH);
     
    522508  if (pERepRec->fHandlerFlags & EH_NESTED_CALL)
    523509    return (XCPT_CONTINUE_SEARCH);
    524  
     510
    525511  if ((pERepRec->ExceptionNum & XCPT_SEVERITY_CODE) == XCPT_FATAL_EXCEPTION)
    526512    {
     
    655641          }
    656642#endif
    657        
     643
    658644        fAlreadyTrapped = TRUE;
    659645        /* end  John Currier's recursion prevention */
     
    663649            (Version[0]>=20) &&
    664650            (Version[1]>=10) ) {
    665           /* version must be over 2.1 for DOSQUERYMODFROMEIP */
     651          /* version must be over 2.1 for DosQueryModFromEIP */
    666652          fprintf(hTrap,"OS/2 Version %d.%d\n",Version[0]/10,Version[1]);
    667           rc=DOSQUERYMODFROMEIP( &hMod, &ObjNum, CCHMAXPATH,
     653          rc=DosQueryModFromEIP( &hMod, &ObjNum, CCHMAXPATH,
    668654                                 Name, &Offset, pERepRec->ExceptionAddress);
    669655            if (rc==0) {
     
    814800     if ((AllocationFlags&PAG_EXECUTE)&&
    815801         (AllocationFlags&PAG_BASE)) {
    816         rc=DOSQUERYMODFROMEIP( &hMod, &ObjNum, CCHMAXPATH,
     802        rc=DosQueryModFromEIP( &hMod, &ObjNum, CCHMAXPATH,
    817803                              Name, &Offset, BaseAddress);
    818804        if (rc==0) {
     
    10381024            break; /* avoid infinite loops */
    10391025         } else {
    1040             rc = DOSQUERYMODFROMEIP(&hMod, &ObjNum, sizeof(Name),
     1026            rc = DosQueryModFromEIP(&hMod, &ObjNum, sizeof(Name),
    10411027                                    Name, &Offset, (PVOID)RetAddr);
    10421028            if (rc == NO_ERROR && ObjNum != -1)
     
    11811167}
    11821168
    1183 #include <exe.h>
    11841169#include <newexe.h>
    11851170#define  FOR_EXEHDR  1  /* avoid define conflicts between newexe.h and exe386.h */
     
    18351820               do {
    18361821                  read(fh,(void *)&FirstLine,sizeof(FirstLine));
    1837    
     1822
    18381823                  if (FirstLine.LineNum!=0) {
    18391824                     fprintf(hTrap,"Missing Line table information\n");
     
    18641849                        }
    18651850                        break;
    1866    
     1851
    18671852                     case 1:
    18681853                        lseek(fh, sizeof(struct linlist_rec), SEEK_CUR);
    18691854                        break;
    1870    
     1855
    18711856                     case 2:
    18721857                        lseek(fh, sizeof(struct linsourcelist_rec), SEEK_CUR);
    18731858                        break;
    1874    
     1859
    18751860                     case 3:
    18761861                        lseek(fh, sizeof(struct filenam_rec), SEEK_CUR);
    18771862                        break;
    1878    
     1863
    18791864                     case 4:
    18801865                        lseek(fh, sizeof(struct pathtab_rec), SEEK_CUR);
    18811866                        break;
    1882    
     1867
    18831868                  }
    18841869               }
Note: See TracChangeset for help on using the changeset viewer.