Beispiel #1
0
        public List <InstructionInfo> ReadInstructionInfos(SbAddress address,
                                                           uint count, string flavor)
        {
            ReadInstructionInfosResponse response = null;

            if (connection.InvokeRpc(() =>
            {
                response = client.ReadInstructionInfos(
                    new ReadInstructionInfosRequest
                {
                    Target = grpcSbTarget,
                    Address = new GrpcSbAddress {
                        Id = address.GetId()
                    },
                    Count = count,
                    Flavor = flavor,
                });
            }))
            {
                var instructions = new List <InstructionInfo>();
                foreach (var instruction in response.Instructions)
                {
                    instructions.Add(new InstructionInfo(
                                         instruction.Address,
                                         instruction.Operands,
                                         instruction.Comment,
                                         instruction.Mnemonic,
                                         instruction.SymbolName,
                                         FrameInfoUtils.CreateLineEntryInfo(instruction.LineEntry)));
                }
                return(instructions);
            }
            return(new List <InstructionInfo>());
        }
 public LineEntryInfo GetLineEntry() =>
 FrameInfoUtils.CreateLineEntryInfo(grpcSbFrame.LineEntry);