A+
Name: wdbg_info ChangeLog: cosmetic fixes to 'walk proc' command GenDate: 2002/02/23 21:45:18 UTC ModifiedFiles: debugger/info.c AddedFiles: =================================================================== RCS file: /home/cvs/cvsroot/wine/wine/debugger/info.c,v retrieving revision 1.21 diff -u -u -r1.21 info.c --- debugger/info.c 21 Dec 2001 20:29:58 -0000 1.21 +++ debugger/info.c 20 Feb 2002 21:25:03 -0000 @@ -399,8 +399,8 @@ for (i = 0; i < GetClassLong(hWnd, GCL_CBWNDEXTRA) / 2; i++) { w = GetWindowWord(hWnd, i * 2); /* FIXME: depends on i386 endian-ity */ - DEBUG_Printf(DBG_CHN_MESG, " %02x", HIBYTE(w)); - DEBUG_Printf(DBG_CHN_MESG, " %02x", LOBYTE(w)); + DEBUG_Printf(DBG_CHN_MESG, " %02x", HIBYTE(w)); + DEBUG_Printf(DBG_CHN_MESG, " %02x", LOBYTE(w)); } DEBUG_Printf(DBG_CHN_MESG, "\n"); } @@ -447,18 +447,18 @@ DWORD current = DEBUG_CurrProcess ? DEBUG_CurrProcess->pid : 0; BOOL ok; - entry.dwSize = sizeof(entry); - ok = Process32First( snap, &entry ); + entry.dwSize = sizeof(entry); + ok = Process32First( snap, &entry ); - DEBUG_Printf(DBG_CHN_MESG, "%-8.8s %-8.8s %-8.8s %s\n", - "pid", "threads", "parent", "exe" ); + DEBUG_Printf(DBG_CHN_MESG, " %-8.8s %-8.8s %-8.8s %s\n", + "pid", "threads", "parent", "executable" ); while (ok) { if (entry.th32ProcessID != GetCurrentProcessId()) - DEBUG_Printf(DBG_CHN_MESG, "%08lx %8ld %08lx '%s'%s\n", + DEBUG_Printf(DBG_CHN_MESG, "%c%08lx %-8ld %08lx '%s'\n", + (entry.th32ProcessID == current) ? '>' : ' ', entry.th32ProcessID, entry.cntThreads, - entry.th32ParentProcessID, entry.szExeFile, - (entry.th32ProcessID == current) ? " <==" : "" ); + entry.th32ParentProcessID, entry.szExeFile); ok = Process32Next( snap, &entry ); } CloseHandle( snap );