Merge pull request #671 from imirkin/master

linux: print memory map to stderr when fixed path not available
This commit is contained in:
TwistedUmbrella 2015-07-05 19:37:21 -04:00
commit 7db6966ef8
1 changed files with 6 additions and 1 deletions

View File

@ -203,7 +203,11 @@ void print_mem_addr()
if (ofp == NULL) {
fprintf(stderr, "Can't open output file %s!\n",
outputFilename);
#if HOST_OS == OS_LINUX
ofp = stderr;
#else
exit(1);
#endif
}
char line [ 512 ];
@ -212,7 +216,8 @@ void print_mem_addr()
}
fclose(ifp);
fclose(ofp);
if (ofp != stderr)
fclose(ofp);
}
void VArray2::UnLockRegion(u32 offset,u32 size)