AERA
|
Public Member Functions | |
void | init (r_comp::Metadata *metadata) |
uint32 | decompile (r_comp::Image *image, std::ostringstream *stream, Timestamp time_reference, bool ignore_named_objects) |
uint32 | decompile (r_comp::Image *image, std::ostringstream *stream, Timestamp time_reference, std::vector< r_code::SysObject * > &imported_objects, bool include_oid=true, bool include_label=true, bool include_views=true) |
uint32 | decompile_references (r_comp::Image *image, std::unordered_map< uint16, std::string > *object_names=NULL) |
void | decompile_object (uint16 object_index, std::ostringstream *stream, Timestamp time_reference, bool include_oid=true, bool include_label=true, bool include_views=true) |
void | decompile_object (const std::string object_name, std::ostringstream *stream, Timestamp time_reference) |
Definition at line 98 of file decompiler.h.
void r_comp::Decompiler::decompile_object | ( | uint16 | object_index, |
std::ostringstream * | stream, | ||
Timestamp | time_reference, | ||
bool | include_oid = true , |
||
bool | include_label = true , |
||
bool | include_views = true |
||
) |
Decompile a single object.
object_index | The position of the object in image_->code_segment_.objects_. |
stream | The output stream. |
time_reference | The timestamp of the start of the run for showing relative times. |
include_oid | (optional) If true, prepend with the OID (and detail OID if enabled). If omitted, include the OID. |
include_label | (optional) If true, prepend the label and ':'. If omitted, include the label. |
include_views | (optional) If true, include the set of view, or |[] if there are not views. If omitted, include the views. |
Definition at line 317 of file decompiler.cpp.
uint32 r_comp::Decompiler::decompile_references | ( | r_comp::Image * | image, |
std::unordered_map< uint16, std::string > * | object_names = NULL |
||
) |
initialize a reference table so that objects can be decompiled individually; returns the number of objects.
image | The Image containing the objects. |
object_names | (optional) The initial mapping from the index of the object in image to its name. If image->object_names_.symbols_ already has a name for the OID, then it must match. This is necessary to supply names of objects which don't have an OID if available. If omitted or NULL, then use names from image->object_names_.symbols_ and create names for objects that don't have an OID. |
Definition at line 225 of file decompiler.cpp.