Changeset 76 in dev for BasicCompiler_Common/DebugMiddleFile.cpp
- Timestamp:
- Mar 21, 2007, 9:26:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/DebugMiddleFile.cpp
r75 r76 832 832 //プロセスメモリにコピー 833 833 extern HANDLE hDebugProcess; 834 SIZE_T stAccBytes;834 SIZE_T accessBytes; 835 835 WriteProcessMemory(hDebugProcess,(void *)(ULONG_PTR)(dwImageBase+dwRVA_CodeSection), 836 836 BreakStepCodeBuffer, 837 SizeOf_CodeSection,& stAccBytes);837 SizeOf_CodeSection,&accessBytes); 838 838 839 839 … … 849 849 850 850 extern HANDLE hDebugProcess; 851 SIZE_T stAccBytes;851 SIZE_T accessBytes; 852 852 IMAGE_DOS_HEADER ImageDosHeader; 853 ReadProcessMemory(hDebugProcess,hModule,&ImageDosHeader,sizeof(IMAGE_DOS_HEADER),& stAccBytes);853 ReadProcessMemory(hDebugProcess,hModule,&ImageDosHeader,sizeof(IMAGE_DOS_HEADER),&accessBytes); 854 854 855 855 int pe_size; … … 861 861 pe_size=sizeof(IMAGE_NT_HEADERS); 862 862 #endif 863 ReadProcessMemory(hDebugProcess,(void *)(((ULONG_PTR)hModule)+ImageDosHeader.e_lfanew),&pe_hdr,pe_size,& stAccBytes);863 ReadProcessMemory(hDebugProcess,(void *)(((ULONG_PTR)hModule)+ImageDosHeader.e_lfanew),&pe_hdr,pe_size,&accessBytes); 864 864 865 865 IMAGE_SECTION_HEADER *pSectionHdr; … … 869 869 pSectionHdr, 870 870 pe_hdr.FileHeader.NumberOfSections*sizeof(IMAGE_SECTION_HEADER), 871 & stAccBytes);871 &accessBytes); 872 872 873 873 int i; … … 894 894 buffer, 895 895 length, 896 & stAccBytes);896 &accessBytes); 897 897 buffer[length]=0; 898 898 } … … 913 913 ReadProcessMemory(hDebugProcess, 914 914 (void *)(ULONG_PTR)(dwImageBase+dwRVA_CodeSection),OpBuffer, 915 SizeOf_CodeSection,& stAccBytes);915 SizeOf_CodeSection,&accessBytes); 916 916 917 917
Note:
See TracChangeset
for help on using the changeset viewer.