- Partial revert of 42973 for the systeminfo utility -- the issue was fixed in 42930
[reactos.git] / rosapps / applications / devutils / symdump / symdump.c
index 4359f60..bd56edd 100644 (file)
@@ -807,6 +807,7 @@ DumpParams(PSYMBOL_INFO pSymInfo, PENUMINFO pei)
 {
        IMAGEHLP_STACK_FRAME sf;
        BOOL bRet;
+       INT NumLocals = 0; // the number of local variables found
 
        sf.InstructionOffset = pSymInfo->Address;
 
@@ -822,8 +823,6 @@ DumpParams(PSYMBOL_INFO pSymInfo, PENUMINFO pei)
 
        // Enumerate local variables
 
-       INT NumLocals = 0; // the number of local variables found
-
        bRet = SymEnumSymbols(pei->hProcess, 0, 0, EnumParamsProc, &NumLocals);
 
        if (!bRet)
@@ -876,7 +875,12 @@ EnumSymbolsProc(
                }
                else
                {
+#if defined(__GNUC__) && \
+       (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ < 40400)
                    printf("Symbol: %s, TypeIndex=%ld, Flags=%lx, Value=0x%llx\n",
+#else
+                   printf("Symbol: %s, TypeIndex=%ld, Flags=%lx, Value=0x%I64x\n",
+#endif
                        pSymInfo->Name, pSymInfo->TypeIndex, pSymInfo->Flags, pSymInfo->Value);
                        //if (pSymInfo->Flags & SYMFLAG_FUNCTION)
                        {