Fix for "Unknown function tag: scope" error

This commit is contained in:
caheckman 2019-07-04 12:53:36 -04:00
parent a3ea66e4db
commit ef12c20829
3 changed files with 21 additions and 3 deletions

View File

@ -298,6 +298,12 @@ public class HighFunction extends PcodeSyntaxTree {
// Do nothing with override at the moment
parser.discardSubTree();
}
else if (subel.getName().equals("scope")) {
// This must be a subscope of the local scope
// Currently this can only hold static variables of the function
// which ghidra already knows about
parser.discardSubTree();
}
else {
throw new PcodeXMLException("Unknown tag in function: " + subel.getName());
}

View File

@ -132,7 +132,7 @@
<addr offset="40" space="stack"/>
</pentry>
</input>
<output killedbycall="true">
<output>
<pentry minsize="4" maxsize="8" metatype="float">
<register name="XMM0_Qa"/>
</pentry>
@ -153,6 +153,10 @@
<register name="R15"/>
<register name="DF"/>
</unaffected>
<killedbycall>
<register name="RAX"/>
<register name="XMM0"/>
</killedbycall>
<localrange>
<range space="stack" first="0xfffffffffff0bdc1" last="0xffffffffffffffff"/>
<range space="stack" first="8" last="39"/>

View File

@ -64,7 +64,7 @@
<addr offset="40" space="stack"/>
</pentry>
</input>
<output killedbycall="true">
<output>
<pentry minsize="4" maxsize="8" metatype="float">
<register name="XMM0_Qa"/>
</pentry>
@ -85,6 +85,10 @@
<register name="R15"/>
<register name="DF"/>
</unaffected>
<killedbycall>
<register name="RAX"/>
<register name="XMM0"/>
</killedbycall>
<localrange>
<range space="stack" first="0xfffffffffff0bdc1" last="0xffffffffffffffff"/>
<range space="stack" first="8" last="39"/>
@ -121,7 +125,7 @@
<addr offset="40" space="stack"/>
</pentry>
</input>
<output killedbycall="true">
<output>
<pentry minsize="4" maxsize="8" metatype="float">
<register name="XMM0_Qa"/>
</pentry>
@ -142,6 +146,10 @@
<register name="R15"/>
<register name="DF"/>
</unaffected>
<killedbycall>
<register name="RAX"/>
<register name="XMM0"/>
</killedbycall>
<localrange>
<range space="stack" first="0xfffffffffff0bdc1" last="0xffffffffffffffff"/>
<range space="stack" first="8" last="39"/>