Changeset 806


Ignore:
Timestamp:
2011-04-27T07:10:28+02:00 (4 years ago)
Author:
moo
Message:

Decompiler: dump any unhandled complex block

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Decompiler.class.php

    r804 r806  
    700700    } 
    701701    // }}} 
    702     function decompileBasicBlock(&$EX, $range, $indent) // {{{ 
     702    function decompileBasicBlock(&$EX, $range, $indent, $unhandled = false) // {{{ 
    703703    { 
    704704        $this->dasmBasicBlock($EX, $range); 
    705         // $this->dumpRange($EX, $range, $indent); 
     705        if ($unhandled) { 
     706            $this->dumpRange($EX, $range, $indent); 
     707        } 
    706708        $this->outputPhp($EX, $range, $indent); 
    707709    } 
     
    10051007 
    10061008            $this->endComplexBlock($EX); 
     1009            if ($opcodes[$range[1] + 1]['opcode'] == XC_SWITCH_FREE) { 
     1010                $this->removeJmpInfo($EX, $range[1] + 1); 
     1011            } 
    10071012            return; 
    10081013        } 
    10091014        // }}} 
    10101015 
    1011         $this->decompileBasicBlock($EX, $range, $indent); 
     1016        $this->decompileBasicBlock($EX, $range, $indent, true); 
    10121017    } 
    10131018    // }}} 
Note: See TracChangeset for help on using the changeset viewer.