@@ -1719,6 +1719,13 @@ static CODE_SEG(".text$2") HANDLE inject(
17191719 {
17201720 data -> exe .path [MAX_PATH - 1 ] = 0 ;
17211721 GetFullPathNameW ( data -> exe .path ,MAX_PATH ,exePath ,NULL );
1722+
1723+ ad -> mi_a = HeapAlloc ( heap ,0 ,sizeof (modInfo ) );
1724+ if ( ad -> mi_a )
1725+ {
1726+ ad -> mi_q = 1 ;
1727+ RtlMoveMemory ( ad -> mi_a ,& data -> exe ,sizeof (modInfo ) );
1728+ }
17221729 }
17231730
17241731 if ( data -> noCRT == 2 )
@@ -4205,7 +4212,10 @@ static void printAttachedProcessInfo( appData *ad,textColor *tc )
42054212 if ( !api ) return ;
42064213 if ( tc -> fTextColor == & TextColorConsole && isConsoleOwner () )
42074214 printf ( "\n$Iheob command line: $N%S\n" ,ad -> cmdLineW );
4208- printf ( "\n$Iapplication: $N%S\n" ,ad -> exePathW );
4215+ printf ( "\n$Iapplication: $N%S" ,ad -> exePathW );
4216+ if ( ad -> mi_q )
4217+ writeModuleInfo ( tc ,ad -> mi_a );
4218+ printf ( "\n" );
42094219 if ( api -> type >=0 && api -> type <=3 )
42104220 {
42114221 const char * types [4 ] = {
@@ -6981,7 +6991,10 @@ static int isMinidump( appData *ad,const wchar_t *name )
69816991 if ( mtl && ad -> dump_mod_a )
69826992 {
69836993 MINIDUMP_STRING * appName = REL_PTR ( dump ,ad -> dump_mod_a [0 ].ModuleNameRva );
6984- printf ( "\n$Iapplication: $N%S\n" ,appName -> Buffer );
6994+ printf ( "\n$Iapplication: $N%S" ,appName -> Buffer );
6995+ if ( ad -> mi_q )
6996+ writeModuleInfo ( tc ,ad -> mi_a );
6997+ printf ( "\n" );
69856998
69866999#ifndef NO_THREADS
69877000 if ( exception )
0 commit comments