[PATCH 0/1] MR11650: krnl386: Delete NE_DumpModule and NE_WalkModules.
These functions have not been used since commit 527eea99f8ecce26d438604f1c98abc901b1c0ad. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11650
From: Alex Henrie <alexhenrie24@gmail.com> These functions have not been used since commit 527eea99f8ecce26d438604f1c98abc901b1c0ad. --- dlls/krnl386.exe16/ne_module.c | 153 --------------------------------- 1 file changed, 153 deletions(-) diff --git a/dlls/krnl386.exe16/ne_module.c b/dlls/krnl386.exe16/ne_module.c index bfb3263f9e4..bac8e0516c2 100644 --- a/dlls/krnl386.exe16/ne_module.c +++ b/dlls/krnl386.exe16/ne_module.c @@ -127,159 +127,6 @@ static void NE_RegisterModule( NE_MODULE *pModule ) } -/*********************************************************************** - * NE_DumpModule - */ -void NE_DumpModule( HMODULE16 hModule ) -{ - int i, ordinal; - SEGTABLEENTRY *pSeg; - BYTE *pstr; - WORD *pword; - NE_MODULE *pModule; - ET_BUNDLE *bundle; - ET_ENTRY *entry; - - if (!(pModule = NE_GetPtr( hModule ))) - { - ERR( "**** %04x is not a module handle\n", hModule ); - return; - } - - /* Dump the module info */ - TRACE( "---\n" ); - TRACE( "Module %04x:\n", hModule ); - TRACE( "count=%d flags=%04x heap=%d stack=%d\n", - pModule->count, pModule->ne_flags, - pModule->ne_heap, pModule->ne_stack ); - TRACE( "cs:ip=%04x:%04x ss:sp=%04x:%04x ds=%04x nb seg=%d modrefs=%d\n", - SELECTOROF(pModule->ne_csip), OFFSETOF(pModule->ne_csip), - SELECTOROF(pModule->ne_sssp), OFFSETOF(pModule->ne_sssp), - pModule->ne_autodata, pModule->ne_cseg, pModule->ne_cmod ); - TRACE( "os_flags=%d swap_area=%d version=%04x\n", - pModule->ne_exetyp, pModule->ne_swaparea, pModule->ne_expver ); - if (pModule->ne_flags & NE_FFLAGS_WIN32) - TRACE( "PE module=%p\n", pModule->module32 ); - - /* Dump the file info */ - TRACE( "---\n" ); - TRACE( "Filename: '%s'\n", NE_MODULE_NAME(pModule) ); - - /* Dump the segment table */ - TRACE( "---\n" ); - TRACE( "Segment table:\n" ); - pSeg = NE_SEG_TABLE( pModule ); - for (i = 0; i < pModule->ne_cseg; i++, pSeg++) - TRACE( "%02x: pos=%d size=%d flags=%04x minsize=%d hSeg=%04x\n", - i + 1, pSeg->filepos, pSeg->size, pSeg->flags, - pSeg->minsize, pSeg->hSeg ); - - /* Dump the resource table */ - TRACE( "---\n" ); - TRACE( "Resource table:\n" ); - if (pModule->ne_rsrctab) - { - pword = (WORD *)((BYTE *)pModule + pModule->ne_rsrctab); - TRACE( "Alignment: %d\n", *pword++ ); - while (*pword) - { - NE_TYPEINFO *ptr = (NE_TYPEINFO *)pword; - NE_NAMEINFO *pname = (NE_NAMEINFO *)(ptr + 1); - TRACE( "id=%04x count=%d\n", ptr->type_id, ptr->count ); - for (i = 0; i < ptr->count; i++, pname++) - TRACE( "offset=%d len=%d id=%04x\n", - pname->offset, pname->length, pname->id ); - pword = (WORD *)pname; - } - } - else TRACE( "None\n" ); - - /* Dump the resident name table */ - TRACE( "---\n" ); - TRACE( "Resident-name table:\n" ); - pstr = (BYTE*) pModule + pModule->ne_restab; - while (*pstr) - { - TRACE( "%*.*s: %d\n", *pstr, *pstr, pstr + 1, - *(WORD *)(pstr + *pstr + 1) ); - pstr += *pstr + 1 + sizeof(WORD); - } - - /* Dump the module reference table */ - TRACE( "---\n" ); - TRACE( "Module ref table:\n" ); - if (pModule->ne_modtab) - { - pword = (WORD *)((BYTE *)pModule + pModule->ne_modtab); - for (i = 0; i < pModule->ne_cmod; i++, pword++) - { - char name[10]; - GetModuleName16( *pword, name, sizeof(name) ); - TRACE( "%d: %04x -> '%s'\n", i, *pword, name ); - } - } - else TRACE( "None\n" ); - - /* Dump the entry table */ - TRACE( "---\n" ); - TRACE( "Entry table:\n" ); - bundle = (ET_BUNDLE *)((BYTE *)pModule+pModule->ne_enttab); - do { - entry = (ET_ENTRY *)((BYTE *)bundle+6); - TRACE( "Bundle %d-%d: %02x\n", bundle->first, bundle->last, entry->type); - ordinal = bundle->first; - while (ordinal < bundle->last) - { - if (entry->type == 0xff) - TRACE("%d: %02x:%04x (moveable)\n", ordinal++, entry->segnum, entry->offs); - else - TRACE("%d: %02x:%04x (fixed)\n", ordinal++, entry->segnum, entry->offs); - entry++; - } - } while ( (bundle->next) && (bundle = ((ET_BUNDLE *)((BYTE *)pModule + bundle->next))) ); - - /* Dump the non-resident names table */ - TRACE( "---\n" ); - TRACE( "Non-resident names table:\n" ); - if (pModule->nrname_handle) - { - pstr = GlobalLock16( pModule->nrname_handle ); - while (*pstr) - { - TRACE( "%*.*s: %d\n", *pstr, *pstr, pstr + 1, - *(WORD *)(pstr + *pstr + 1) ); - pstr += *pstr + 1 + sizeof(WORD); - } - } - TRACE( "\n" ); -} - - -/*********************************************************************** - * NE_WalkModules - * - * Walk the module list and print the modules. - */ -void NE_WalkModules(void) -{ - HMODULE16 hModule = hFirstModule; - MESSAGE( "Module Flags Name\n" ); - while (hModule) - { - NE_MODULE *pModule = NE_GetPtr( hModule ); - if (!pModule) - { - MESSAGE( "Bad module %04x in list\n", hModule ); - return; - } - MESSAGE( " %04x %04x %.*s\n", hModule, pModule->ne_flags, - *((char *)pModule + pModule->ne_restab), - (char *)pModule + pModule->ne_restab + 1 ); - hModule = pModule->next; - } -} - - /*********************************************************************** * NE_InitResourceHandler * -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/11650
participants (2)
-
Alex Henrie -
Alex Henrie (@alexhenrie)