diff options
Diffstat (limited to 'includes/trygvis')
-rw-r--r-- | includes/trygvis/elfinfo/Ld.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/trygvis/elfinfo/Ld.h b/includes/trygvis/elfinfo/Ld.h index 09dcaec..03559a2 100644 --- a/includes/trygvis/elfinfo/Ld.h +++ b/includes/trygvis/elfinfo/Ld.h @@ -10,11 +10,17 @@ namespace elfinfo { class LdParseException : public std::runtime_error { public: - explicit LdParseException(const std::vector<std::string> messages) : runtime_error("Parse error"), messages(messages) {} + explicit LdParseException(const std::vector<std::string> &messages) : + runtime_error("Parse error"), messages(messages) {} const std::vector<std::string> messages; }; +class LdInternalErrorException : public std::runtime_error { +public: + explicit LdInternalErrorException(const std::string &what) : runtime_error(what) {} +}; + enum class MemoryAttribute { R, W, X }; @@ -69,6 +75,7 @@ public: LdScript load(std::string path); void setDebug(bool debug); + private: bool debug_; }; |