From: <mic...@us...> - 2007-08-15 11:08:39
|
Revision: 166 http://pearcolator.svn.sourceforge.net/pearcolator/?rev=166&view=rev Author: michael_baer Date: 2007-08-15 04:08:41 -0700 (Wed, 15 Aug 2007) Log Message: ----------- - Disabled debug output by default - added options to show arm stack and heap range Modified Paths: -------------- src/org/binarytranslator/DBT_Options.java src/org/binarytranslator/arch/arm/os/abi/semihosting/AngelSystemCalls.java src/org/binarytranslator/generic/os/abi/linux/LinuxSystemCalls.java Modified: src/org/binarytranslator/DBT_Options.java =================================================================== --- src/org/binarytranslator/DBT_Options.java 2007-08-14 17:25:25 UTC (rev 165) +++ src/org/binarytranslator/DBT_Options.java 2007-08-15 11:08:41 UTC (rev 166) @@ -25,11 +25,8 @@ public final static boolean buildForSunVM = false; /** Enable the profiling of application during interpretation? */ - public final static boolean profileDuringInterpretation = false; + public final static boolean profileDuringInterpretation = true; - /** Debug binary loading */ - public final static boolean debugLoader = true; - /** Are unimplemented system calls fatal? */ public final static boolean unimplementedSystemCallsFatal = false; @@ -77,38 +74,41 @@ public final static boolean eliminateRegisterFills = true; /** Print dissassembly of translated instructions. */ - public static boolean debugInstr = true; + public static boolean debugInstr = false; /** Print information about the lazy resolution of branch addresses...*/ - public static boolean debugBranchResolution = true; + public static boolean debugBranchResolution = false; /** During code translation, print information about the creation of basic blocks. */ public final static boolean debugCFG = false; - - /** Debug using GDB? */ - public static boolean gdbStub = false; - - /** GDB stub port */ - public static int gdbStubPort = 1234; - /** Just a temporary variable for testing. It describes, when the staged emulation controller switches from interpretation to translation. */ - public static int minTraceValue = 20; + /** Debug binary loading */ + public static boolean debugLoader = false; /** Print debug information during the translation of instructions. */ - public static boolean debugTranslation = true; + public static boolean debugTranslation = false; /** In ProcessSpace, print syscall numbers. */ - public static boolean debugSyscall = true; + public static boolean debugSyscalls = false; /** In ProcessSpace, print syscall numbers. */ - public static boolean debugSyscallMore = false; + public static boolean debugSyscallsMore = false; /** Print out various messages about the emulator starting. */ - public static boolean debugRuntime = true; + public static boolean debugRuntime = false; /** Print out messages from the memory system */ public static boolean debugMemory = false; + + /** Debug using GDB? */ + public static boolean gdbStub = false; + + /** GDB stub port */ + public static int gdbStubPort = 1234; + /** Just a temporary variable for testing. It describes, when the staged emulation controller switches from interpretation to translation. */ + public static int minTraceValue = 20; + /** Inline calls to descendents of callbased memory? */ public static boolean inlineCallbasedMemory = false; @@ -204,12 +204,14 @@ debugBranchResolution = Boolean.parseBoolean(value); } else if (key.equalsIgnoreCase("debugMemory")) { debugMemory = Boolean.parseBoolean(value); - } else if (key.equalsIgnoreCase("debugSyscall")) { - debugSyscall = Boolean.parseBoolean(value); - } else if (key.equalsIgnoreCase("debugSyscallMore")) { - debugSyscallMore = Boolean.parseBoolean(value); + } else if (key.equalsIgnoreCase("debugSyscalls")) { + debugSyscalls = Boolean.parseBoolean(value); + } else if (key.equalsIgnoreCase("debugSyscallsMore")) { + debugSyscallsMore = Boolean.parseBoolean(value); } else if (key.equalsIgnoreCase("debugTranslation")) { debugTranslation = Boolean.parseBoolean(value); + } else if (key.equalsIgnoreCase("debugLoader")) { + debugLoader = Boolean.parseBoolean(value); } else if (key.equalsIgnoreCase("instrOpt0")) { instrOpt0 = Integer.parseInt(value); } else if (key.equalsIgnoreCase("instrOpt1")) { Modified: src/org/binarytranslator/arch/arm/os/abi/semihosting/AngelSystemCalls.java =================================================================== --- src/org/binarytranslator/arch/arm/os/abi/semihosting/AngelSystemCalls.java 2007-08-14 17:25:25 UTC (rev 165) +++ src/org/binarytranslator/arch/arm/os/abi/semihosting/AngelSystemCalls.java 2007-08-15 11:08:41 UTC (rev 166) @@ -107,7 +107,7 @@ public void doSysCall(int callNum) { try { - if (DBT_Options.debugSyscall) + if (DBT_Options.debugSyscalls) System.out.println("Executing Angel Syscall: " + callNum); sysCalls[callNum].execute(); @@ -310,7 +310,7 @@ String fileName = readString(ptrBuffer, length); - if (DBT_Options.debugSyscallMore) + if (DBT_Options.debugSyscallsMore) System.out.println("Opening file: " + fileName); try { Modified: src/org/binarytranslator/generic/os/abi/linux/LinuxSystemCalls.java =================================================================== --- src/org/binarytranslator/generic/os/abi/linux/LinuxSystemCalls.java 2007-08-14 17:25:25 UTC (rev 165) +++ src/org/binarytranslator/generic/os/abi/linux/LinuxSystemCalls.java 2007-08-15 11:08:41 UTC (rev 166) @@ -187,7 +187,7 @@ public void doSysCall() { int sysCallNumber = src.getSysCallNumber(); - if (DBT_Options.debugSyscall) + if (DBT_Options.debugSyscalls) System.err.println("Syscall " + sysCallToString(sysCallNumber)); arguments = src.getSysCallArguments(); @@ -357,7 +357,7 @@ // accordingly. args[0] points to the file name. String fileName = memoryReadString(pathname); - if (DBT_Options.debugSyscall) + if (DBT_Options.debugSyscalls) System.err.println("Program tries to open: " + fileName); FileMode mode; @@ -527,7 +527,7 @@ String filename = memoryReadString(ptrFilename); - if (DBT_Options.debugSyscallMore) + if (DBT_Options.debugSyscallsMore) System.err.println("Stat64() denies existance of file: " + filename); src.setSysCallError(errno.ENOENT); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |