Exemplo n.º 1
0
        public void CopyToContainer(CIContainer aContainer)
        {
            // Diagnostics never appear in the crash item itself.
            if (Type != TType.ETypeDiagnostic)
            {
                CIMessage msg = null;
                //
                if (Type == TType.ETypeMessage)
                {
                    msg = CIMessage.NewMessage(aContainer);
                }
                else if (Type == TType.ETypeWarning)
                {
                    msg = new CIMessageWarning(aContainer);
                }
                else if (Type == TType.ETypeError)
                {
                    msg = new CIMessageError(aContainer);
                }

                // Build details & add to container
                msg.Title       = this.Title;
                msg.Description = this.Description;
                aContainer.Messages.Add(msg);
            }
        }
Exemplo n.º 2
0
        private void PrepareMessage()
        {
            CIMessage message = CIMessage.NewMessage(Container);

            message.Title       = "Processor Mode";
            message.Description = string.Format("CPSR (Current Processor Status Register) indicates that the processor was in [{0}] mode.",
                                                ArmRegisterBankUtils.BankAsStringLong(ProcessorMode));
            base.AddChild(message);
        }
Exemplo n.º 3
0
        private CIMessage CreateMessage()
        {
            CIMessage message = CIMessage.NewMessage(Container);

            //
            UpdateMessage(message);
            //
            return(message);
        }
Exemplo n.º 4
0
        protected void CreateMessage(CIContainer aContainer, CIElement aAssociatedElement, string aTitle, string aDescription)
        {
            CIMessage message = CIMessage.NewMessage(aContainer);

            message.Title       = aTitle;
            message.Description = aDescription;
            //
            aAssociatedElement.AddChild(message);
        }
Exemplo n.º 5
0
        private void PrepareMessage()
        {
            CIMessage message = CIMessage.NewMessage(Container);

            //
            message.Title = "Fault Status";
            message.AddLineFormatted("The FSR (Fault Status Register) indicates that the processor encountered an fault of type [{0}].", FaultDescription);
            //
            base.AddChild(message);
        }