mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-2358 Packed protocol for decompiler marshaling
This commit is contained in:
parent
6a1a649213
commit
79c3508f54
119 changed files with 4238 additions and 2207 deletions
|
@ -2287,7 +2287,7 @@ const string &Element::getAttributeValue(const string &nm) const
|
|||
for(uint4 i=0;i<attr.size();++i)
|
||||
if (attr[i] == nm)
|
||||
return value[i];
|
||||
throw XmlError("Unknown attribute: "+nm);
|
||||
throw DecoderError("Unknown attribute: "+nm);
|
||||
}
|
||||
|
||||
DocumentStorage::~DocumentStorage(void)
|
||||
|
@ -2312,7 +2312,7 @@ Document *DocumentStorage::openDocument(const string &filename)
|
|||
{
|
||||
ifstream s(filename.c_str());
|
||||
if (!s)
|
||||
throw XmlError("Unable to open xml document "+filename);
|
||||
throw DecoderError("Unable to open xml document "+filename);
|
||||
Document *res = parseDocument(s);
|
||||
s.close();
|
||||
return res;
|
||||
|
@ -2342,7 +2342,7 @@ Document *xml_tree(istream &i)
|
|||
TreeHandler handle(doc);
|
||||
if (0!=xml_parse(i,&handle)) {
|
||||
delete doc;
|
||||
throw XmlError(handle.getError());
|
||||
throw DecoderError(handle.getError());
|
||||
}
|
||||
return doc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue