コード例 #1
0
 protected override void ProcessRecord()
 {
     base.ProcessRecord();
     Debugger.SetEffectiveProcessorType(EffectiveProcessorType);
     Debugger.AdjustAddressColumnWidths(Host.UI.RawUI.BufferSize.Width);
     DbgProvider.ForceRebuildNamespace();
 } // end ProcessRecord()
コード例 #2
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            string       mod;
            const string whackFmsg = "The '/f' syntax does not work with PowerShell parameters. Use '-f' instead.";

            mod = Module;
            if (0 == Util.Strcmp_OI(mod, "/f"))
            {
                if ((null == Compat) || (0 == Compat.Length))
                {
                    WriteError(new ArgumentException(whackFmsg),
                               "BadParamWhackF",
                               ErrorCategory.InvalidArgument,
                               null);
                    return;
                }
                WriteWarning(whackFmsg);
                // Let's just hope this works.
                mod   = Compat[0];
                Force = true;
            }

            if ((null != Compat) && (0 != Compat.Length))
            {
                if (0 == Util.Strcmp_OI(Compat[0], "/f"))
                {
                    WriteWarning(whackFmsg);
                    Force = true;
                }
            }

            SafeWriteVerbose("Reloading symbols for {0}", mod);

            Debugger.ReloadSymbols(mod,
                                   Literal,
                                   Address,
                                   Size,
                                   Timestamp,
                                   Force,
                                   IgnoreMismatched,
                                   OverwriteDownstream,
                                   Unload);

            // We want stacks to get re-generated if we got new symbols.
            DbgProvider.ForceRebuildNamespace();
        } // end ProcessRecord()