예제 #1
0
파일: Program.cs 프로젝트: xxtxiaofeng/reko
            public override bool handle_hunk_file(string path, HunkFile hunk_file)
            {
                // verbose all hunk
                var hs = new HunkShow(
                    hunk_file,
                    show_relocs: args["--show-relocs"].IsTrue,
                    show_debug: args["--show-debug"].IsTrue,
                    disassemble: args["--disassemble"].IsTrue,
                    disassemble_start:
                    args["--disassemble-start"] != null
                            ? UInt32.Parse(
                        (string)args["--disassemble-start"].Value,
                        NumberStyles.HexNumber,
                        CultureInfo.InvariantCulture)
                            : 0,
                    use_objdump: args["--use-objdump"].IsTrue,
                    cpu: args["--cpu"] != null ? (string)args["--cpu"].Value : "",
                    hexdump: args["--hexdump"].IsTrue,
                    brief: args["--brief"].IsTrue);

                hs.show_segments();
                return(true);
            }
예제 #2
0
파일: Program.cs 프로젝트: relaxar/reko
 public override bool handle_hunk_file(string path, HunkFile hunk_file)
 {
     // verbose all hunk
     var hs = new HunkShow(
         hunk_file,
         show_relocs: args["--show-relocs"].IsTrue,
         show_debug: args["--show-debug"].IsTrue,
         disassemble: args["--disassemble"].IsTrue,
         disassemble_start:
             args["--disassemble-start"] != null
                 ? UInt32.Parse(
                     (string)args["--disassemble-start"].Value,
                     NumberStyles.HexNumber,
                     CultureInfo.InvariantCulture)
                 : 0,
         use_objdump: args["--use-objdump"].IsTrue,
         cpu: args["--cpu"] != null ? (string)args["--cpu"].Value : "",
         hexdump: args["--hexdump"].IsTrue,
         brief: args["--brief"].IsTrue);
     hs.show_segments();
     return true;
 }