Changeset 104 for trunk/classes/c/c_common/except.c
- Timestamp:
- Oct 2, 2023, 11:34:35 PM (23 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/v2.9 merged eligible /branches/v2.9_Lars merged eligible
-
Property svn:mergeinfo
set to
-
trunk/classes/c/c_common/except.c
r41 r104 130 130 USHORT SS; 131 131 } 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 147 133 /* CW 148 134 #define DBG_O_OBJMTE 0x10000000L*/ … … 459 445 460 446 return 'c'; 461 } 447 } 462 448 463 449 ULONG _System excHandler(PEXCEPTIONREPORTRECORD pERepRec, … … 515 501 { 516 502 ULONG rc = XCPT_CONTINUE_SEARCH; 517 503 518 504 if (pERepRec->fHandlerFlags & EH_EXIT_UNWIND) 519 505 return (XCPT_CONTINUE_SEARCH); … … 522 508 if (pERepRec->fHandlerFlags & EH_NESTED_CALL) 523 509 return (XCPT_CONTINUE_SEARCH); 524 510 525 511 if ((pERepRec->ExceptionNum & XCPT_SEVERITY_CODE) == XCPT_FATAL_EXCEPTION) 526 512 { … … 655 641 } 656 642 #endif 657 643 658 644 fAlreadyTrapped = TRUE; 659 645 /* end John Currier's recursion prevention */ … … 663 649 (Version[0]>=20) && 664 650 (Version[1]>=10) ) { 665 /* version must be over 2.1 for D OSQUERYMODFROMEIP */651 /* version must be over 2.1 for DosQueryModFromEIP */ 666 652 fprintf(hTrap,"OS/2 Version %d.%d\n",Version[0]/10,Version[1]); 667 rc=D OSQUERYMODFROMEIP( &hMod, &ObjNum, CCHMAXPATH,653 rc=DosQueryModFromEIP( &hMod, &ObjNum, CCHMAXPATH, 668 654 Name, &Offset, pERepRec->ExceptionAddress); 669 655 if (rc==0) { … … 814 800 if ((AllocationFlags&PAG_EXECUTE)&& 815 801 (AllocationFlags&PAG_BASE)) { 816 rc=D OSQUERYMODFROMEIP( &hMod, &ObjNum, CCHMAXPATH,802 rc=DosQueryModFromEIP( &hMod, &ObjNum, CCHMAXPATH, 817 803 Name, &Offset, BaseAddress); 818 804 if (rc==0) { … … 1038 1024 break; /* avoid infinite loops */ 1039 1025 } else { 1040 rc = D OSQUERYMODFROMEIP(&hMod, &ObjNum, sizeof(Name),1026 rc = DosQueryModFromEIP(&hMod, &ObjNum, sizeof(Name), 1041 1027 Name, &Offset, (PVOID)RetAddr); 1042 1028 if (rc == NO_ERROR && ObjNum != -1) … … 1181 1167 } 1182 1168 1183 #include <exe.h>1184 1169 #include <newexe.h> 1185 1170 #define FOR_EXEHDR 1 /* avoid define conflicts between newexe.h and exe386.h */ … … 1835 1820 do { 1836 1821 read(fh,(void *)&FirstLine,sizeof(FirstLine)); 1837 1822 1838 1823 if (FirstLine.LineNum!=0) { 1839 1824 fprintf(hTrap,"Missing Line table information\n"); … … 1864 1849 } 1865 1850 break; 1866 1851 1867 1852 case 1: 1868 1853 lseek(fh, sizeof(struct linlist_rec), SEEK_CUR); 1869 1854 break; 1870 1855 1871 1856 case 2: 1872 1857 lseek(fh, sizeof(struct linsourcelist_rec), SEEK_CUR); 1873 1858 break; 1874 1859 1875 1860 case 3: 1876 1861 lseek(fh, sizeof(struct filenam_rec), SEEK_CUR); 1877 1862 break; 1878 1863 1879 1864 case 4: 1880 1865 lseek(fh, sizeof(struct pathtab_rec), SEEK_CUR); 1881 1866 break; 1882 1867 1883 1868 } 1884 1869 }
Note:
See TracChangeset
for help on using the changeset viewer.