• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Debugger.TargetAddress类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Mono.Debugger.TargetAddress的典型用法代码示例。如果您正苦于以下问题:C# TargetAddress类的具体用法?C# TargetAddress怎么用?C# TargetAddress使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TargetAddress类属于Mono.Debugger命名空间,在下文中一共展示了TargetAddress类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AssemblerLine

 public AssemblerLine(string label, TargetAddress address, byte size, string text)
 {
     this.Label = label;
     this.Address = address;
     this.InstructionSize = size;
     this.Text = text;
 }
开发者ID:baulig,项目名称:debugger,代码行数:7,代码来源:AssemblerMethod.cs


示例2: TargetMemoryArea

        public TargetMemoryArea(TargetAddress start, TargetAddress end,
					 TargetMemoryFlags flags, string name)
        {
            this.start = start;
            this.end = end;
            this.flags = flags;
            this.name = name;
        }
开发者ID:baulig,项目名称:debugger,代码行数:8,代码来源:TargetMemoryArea.cs


示例3: StepFrame

        public StepFrame(Language language, StepMode mode, StackFrame stack,
				  TargetAddress start, TargetAddress end)
        {
            this.start = start;
            this.end = end;
            this.stack = stack;
            this.language = language;
            this.mode = mode;
        }
开发者ID:baulig,项目名称:debugger,代码行数:9,代码来源:StepFrame.cs


示例4: LineEntry

        public LineEntry(TargetAddress address, int file, int line, bool is_hidden,
				  SourceRange? source_range)
        {
            this.Address = address;;
            this.File = file;
            this.Line = line;
            this.IsHidden = is_hidden;
            this.SourceRange = source_range;
        }
开发者ID:baulig,项目名称:debugger,代码行数:9,代码来源:Method.cs


示例5: Register

        public Register(Registers registers, string name, int index, int size,
				 bool valid, long value)
        {
            this.registers = registers;
            this.Name = name;
            this.Index = index;
            this.Size = size;
            this.valid = valid;
            this.value = value;
            this.addr_on_stack = TargetAddress.Null;
        }
开发者ID:baulig,项目名称:debugger,代码行数:11,代码来源:StackFrame.cs


示例6: GetTrampoline

        public override bool GetTrampoline(TargetMemoryAccess memory, TargetAddress address,
						    out TargetAddress trampoline, out bool is_start)
        {
            foreach (Bfd bfd in bfd_hash.Values) {
                if (bfd.GetTrampoline (memory, address, out trampoline, out is_start))
                    return true;
            }

            is_start = false;
            trampoline = TargetAddress.Null;
            return false;
        }
开发者ID:baulig,项目名称:debugger,代码行数:12,代码来源:LinuxOperatingSystem.cs


示例7: CheckException

        internal bool CheckException(MonoLanguageBackend mono, TargetMemoryAccess target,
					      TargetAddress address)
        {
            TargetClassObject exc = mono.CreateObject (target, address) as TargetClassObject;
            if (exc == null)
                return false; // OOOPS

            if (exception == null)
                exception = mono.LookupType (Name);
            if (exception == null)
                return false;

            return IsSubclassOf (target, exc.Type, exception);
        }
开发者ID:baulig,项目名称:debugger,代码行数:14,代码来源:ExceptionCatchPoint.cs


示例8: AddExecutableFile

        public override NativeExecutableReader AddExecutableFile(Inferior inferior, string filename,
									  TargetAddress base_address, bool step_into,
									  bool is_loaded)
        {
            check_disposed ();
            Bfd bfd = (Bfd) bfd_hash [filename];
            if (bfd != null)
                return bfd;

            bfd = new Bfd (this, inferior.TargetMemoryInfo, filename, base_address, is_loaded);
            bfd_hash.Add (filename, bfd);
            check_loaded_library (inferior, bfd);
            return bfd;
        }
开发者ID:baulig,项目名称:debugger,代码行数:14,代码来源:DarwinOperatingSystem.cs


示例9: DisassembleInstruction

        public override AssemblerLine DisassembleInstruction(TargetMemoryAccess memory,
								      Method method,
								      TargetAddress address)
        {
            lock (this) {
                memory_exception = null;
                sb = new StringBuilder ();

                address = new TargetAddress (memory.AddressDomain, address.Address);

                string insn;
                int insn_size;
                try {
                    this.memory = memory;
                    current_method = method;
                    insn_size = bfd_glue_disassemble_insn (handle, address.Address);
                    if (memory_exception != null)
                        return null;
                    insn = sb.ToString ();
                } finally {
                    sb = null;
                    this.memory = null;
                    memory_exception = null;
                    current_method = null;
                }

                Symbol label = null;
                if (process != null)
                    label = process.SymbolTableManager.SimpleLookup (address, true);

                string label_name = null;
                if (label != null)
                    label_name = label.ToString ();

                return new AssemblerLine (
                    label_name, address, (byte) insn_size, insn);
            }
        }
开发者ID:baulig,项目名称:debugger,代码行数:38,代码来源:BfdDisassembler.cs


示例10: DisassembleInstruction

        // <summary>
        //   Disassemble one instruction.
        //   If @imethod is non-null, it specifies the current method which will
        //   be used to lookup function names from trampoline calls.
        // </summary>
        public abstract AssemblerLine DisassembleInstruction(TargetMemoryAccess memory,
								      Method method,
								      TargetAddress address);
开发者ID:baulig,项目名称:debugger,代码行数:8,代码来源:Disassembler.cs


示例11: AddressBreakpoint

 internal AddressBreakpoint(string name, ThreadGroup group, TargetAddress address)
     : base(EventType.Breakpoint, name, group)
 {
     this.address = address;
 }
开发者ID:baulig,项目名称:debugger,代码行数:5,代码来源:AddressBreakpoint.cs


示例12: InitializeMono

        internal void InitializeMono(Inferior inferior, TargetAddress mdb_debug_info)
        {
            MonoRuntimeFound = true;
            mono_manager = MonoThreadManager.Initialize (this, inferior, mdb_debug_info, is_attached);

            InitializeThreads (inferior, !is_attached);

            if (mono_manager == null)
                return;

            mono_manager.InitializeThreads (inferior);

            if (is_attached)
                mono_manager.InitializeAfterAttach (inferior);
        }
开发者ID:baulig,项目名称:debugger,代码行数:15,代码来源:Process.cs


示例13: Symbol

 public Symbol(string name, TargetAddress address, int offset)
 {
     this.Name = name;
     this.Address = address;
     this.Offset = offset;
 }
开发者ID:baulig,项目名称:debugger,代码行数:6,代码来源:ISymbolTable.cs


示例14: InitCodeBuffer

 internal void InitCodeBuffer(Inferior inferior, TargetAddress code_buffer)
 {
     HasCodeBuffer = true;
     mono_debugger_server_initialize_code_buffer (
         mono_runtime_info, code_buffer.Address,
         debugger_info.ExecutableCodeBufferSize);
 }
开发者ID:baulig,项目名称:debugger,代码行数:7,代码来源:MonoThreadManager.cs


示例15: DoEvaluateObject

        protected override TargetObject DoEvaluateObject(ScriptingContext context)
        {
            StackFrame frame = context.CurrentFrame;
            Register register = frame.Registers [name];
            if (register == null)
                throw new ScriptingException ("No such register `{0}'.", name);

            try {
                long value = register.Value;
                TargetAddress address = new TargetAddress (
                    context.AddressDomain, value);
                return context.CurrentLanguage.CreatePointer (frame, address);
            } catch {
                throw new ScriptingException (
                    "Can't access register `{0}' selected stack frame.", name);
            }
        }
开发者ID:baulig,项目名称:debugger,代码行数:17,代码来源:Expression.cs


示例16: InitializeBreakpoint

 public InitializeBreakpoint(MonoThreadManager manager, TargetAddress address)
     : base("initialize", ThreadGroup.System, address)
 {
     this.manager = manager;
 }
开发者ID:baulig,项目名称:debugger,代码行数:5,代码来源:MonoThreadManager.cs


示例17: CheckBreakpointHit

 public override bool CheckBreakpointHit(Thread target, TargetAddress address)
 {
     return true;
 }
开发者ID:baulig,项目名称:debugger,代码行数:4,代码来源:MonoThreadManager.cs


示例18: LookupLibrary

 public abstract NativeExecutableReader LookupLibrary(TargetAddress address);
开发者ID:baulig,项目名称:debugger,代码行数:1,代码来源:OperatingSystemBackend.cs


示例19: WriteAddress

 public void WriteAddress(TargetAddress address)
 {
     if (AddressSize == 8)
         WriteInt64 (address.Address);
     else
         WriteInt32 ((int) address.Address);
 }
开发者ID:baulig,项目名称:debugger,代码行数:7,代码来源:TargetBinaryWriter.cs


示例20: GetInstructionSize

        // <summary>
        //   Get the size of the current instruction.
        // </summary>
        public abstract int GetInstructionSize(TargetMemoryAccess memory,
							TargetAddress address);
开发者ID:baulig,项目名称:debugger,代码行数:5,代码来源:Disassembler.cs



注:本文中的Mono.Debugger.TargetAddress类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Frontend.ScriptingContext类代码示例发布时间:2022-05-26
下一篇:
C# SqliteClient.SqliteConnection类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap