Skip to content

Commit

Permalink
More debugging code removed
Browse files Browse the repository at this point in the history
  • Loading branch information
uxmal committed Aug 27, 2015
1 parent aa220ed commit 4192c35
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions src/Arch/PowerPC/PowerPcDisassembler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ public override PowerPcInstruction DisassembleInstruction()
{
instrCur = new PowerPcInstruction(Opcode.illegal);
}
if (instrCur.Opcode.ToString() == "illegal") //$DEBUG
instrCur.Opcode.ToString();
instrCur.Address = addr;
instrCur.Length = 4;
return instrCur;
Expand Down
2 changes: 0 additions & 2 deletions src/Assemblers/Pdp11/Pdp11TextAssembler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ public Program AssembleFragment(Address baseAddress, string fragment)

private void ProcessLine()
{
if (lexer.Peek().Linenumber == 171) //$DEBUG
lexer.ToString();
if (lexer.PeekAndDiscard(TokenType.EOL))
return;
if (lexer.PeekAndDiscard(TokenType._Page))
Expand Down
2 changes: 0 additions & 2 deletions src/Decompiler/Analysis/TrashedRegisterFinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ public void ProcessBlock(Block block)
public void RewriteBlock(Block block)
{
StartProcessingBlock(block);
if (block.Procedure.Name.EndsWith("2BE4")) //$DEBUG
block.ToString();
var propagator = new ExpressionPropagator(prog.Architecture, se.Simplifier, ctx, flow);
foreach (Statement stm in block.Statements)
{
Expand Down
2 changes: 0 additions & 2 deletions src/Decompiler/Scanning/Backwalker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public class Backwalker

public Backwalker(IBackWalkHost host, RtlTransfer xfer, ExpressionSimplifier eval)
{
if (xfer is RtlGoto) //$DEBUG
xfer.ToString();
this.host = host;
this.eval = eval;
var target = xfer.Target;
Expand Down
4 changes: 0 additions & 4 deletions src/Gui/Windows/Controls/TextView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ private Brush GetBackground(string styleSelector)
private SizeF GetSize(TextSpan span, string text, Font font, Graphics g)
{
var size = span.GetSize(text, font, g);
if (span.Style == "dasm-bytes") //$DEBUG
span.Style.ToString();
UiStyle style = GetStyle(span.Style);
if (style != null && style.Width.HasValue)
{
Expand Down Expand Up @@ -347,8 +345,6 @@ private void PaintLine(LayoutLine line, Graphics g)
foreach (var span in line.Spans)
{
var text = span.Text;
if (span.Style == "link") //$DEBUG
span.Style.ToString();
var font = GetFont(span.Style);
var fg = GetForeground(span.Style);
var bg = GetBackground(span.Style);
Expand Down
1 change: 0 additions & 1 deletion src/UnitTests/Analysis/DeclarationInserterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ private void Build(Procedure proc)
SsaTransform sst = new SsaTransform(new ProgramDataFlow(), proc, doms);

this.ssaIds = sst.SsaState.Identifiers;
sst.SsaState.DebugDump(true);//$DEBUG
}
}
}

0 comments on commit 4192c35

Please sign in to comment.