#include "dynutil/h/util.h"#include "dynutil/h/Annotatable.h"#include "dynutil/h/Serialization.h"#include "common/h/headers.h"#include <string>#include <vector>#include <map>#include <stdexcept>#include <stdio.h>#include "common/h/Types.h"#include "common/h/sha1.h"#include "common/h/pathName.h"Go to the source code of this file.
Data Structures | |
| class | Dyninst::SerializerXML |
| class | Dyninst::SerializerBin |
| class | Dyninst::SerDes |
| class | Dyninst::SerDesXML |
| class | Dyninst::SerDesBin |
| struct | Dyninst::SerDesBin::cache_header_t |
| class | Dyninst::SerFile |
| class | Dyninst::SpecAdaptor< S, T > |
| class | Dyninst::SpecAdaptor< S, T * > |
Namespaces | |
| namespace | Dyninst |
Defines | |
| #define | SERIALIZE_ENABLE_FLAG (short) 1 |
| #define | DESERIALIZE_ENABLE_FLAG (short) 2 |
| #define | DESERIALIZE_ENFORCE_FLAG (short) 4 |
| #define | SER_ERR(cmsg) |
| #define | CACHE_DIR_VAR "DYNINST_CACHE_DIR" |
| #define | DEFAULT_DYNINST_DIR ".dyninstAPI" |
| #define | DEFAULT_CACHE_DIR "caches" |
| #define | CACHE_MAGIC 0x555 |
| #define | CACHE_PREFIX "cache_" |
| #define | PATH_MAX 512 |
| #define | SER_CATCH(x) |
Functions | |
| void COMMON_EXPORT | Dyninst::serialize_debug_init () |
| bool | Dyninst::start_xml_elem (void *writer, const char *tag) |
| bool | Dyninst::end_xml_elem (void *) |
| template<class S , class T > | |
| void | Dyninst::sd_translate (S *sd, T &it, const char *tag) |
| #define CACHE_DIR_VAR "DYNINST_CACHE_DIR" |
Definition at line 93 of file serialize.h.
Referenced by Dyninst::SerDesBin::resolveCachePath().
| #define CACHE_MAGIC 0x555 |
Definition at line 96 of file serialize.h.
Referenced by Dyninst::SerDesBin::readHeaderAndVerify(), and Dyninst::SerDesBin::writeHeaderPreamble().
| #define CACHE_PREFIX "cache_" |
Definition at line 97 of file serialize.h.
Referenced by Dyninst::SerDesBin::resolveCachePath().
| #define DEFAULT_CACHE_DIR "caches" |
Definition at line 95 of file serialize.h.
Referenced by Dyninst::SerDesBin::getDefaultCacheDir().
| #define DEFAULT_DYNINST_DIR ".dyninstAPI" |
Definition at line 94 of file serialize.h.
Referenced by Dyninst::SerDesBin::getDefaultCacheDir().
| #define DESERIALIZE_ENABLE_FLAG (short) 2 |
Definition at line 70 of file serialize.h.
| #define DESERIALIZE_ENFORCE_FLAG (short) 4 |
Definition at line 71 of file serialize.h.
| #define PATH_MAX 512 |
Definition at line 100 of file serialize.h.
Referenced by deref_link(), resolve_file_path(), and resolve_file_path_local().
| #define SER_CATCH | ( | x | ) |
catch (const SerializerError &err) { \ fprintf(stderr, "%s[%d]: %s from %s[%d]\n", FILE__, __LINE__, \ err.what(), err.file().c_str(), err.line()); \ SER_ERR(x); }
Definition at line 109 of file serialize.h.
| #define SER_ERR | ( | cmsg | ) |
do { \ if (serializer_debug_flag()) { \ serialize_printf("SER_ERR: %s", cmsg); \ throw SerializerError(__FILE__, __LINE__, std::string(cmsg)); \ } else { \ throw SerializerError(__FILE__, __LINE__, std::string(cmsg)); \ } \ } while (0)
Definition at line 81 of file serialize.h.
Referenced by Dyninst::SerDesBin::init(), Dyninst::SerDesBin::readHeaderAndVerify(), Dyninst::SerFile::SerFile(), Dyninst::SerDesBin::translate(), and Dyninst::SerDesBin::writeHeaderPreamble().
| #define SERIALIZE_ENABLE_FLAG (short) 1 |
Definition at line 69 of file serialize.h.
1.6.1