Files
jsix_import/src/tools/makerd/entry.h
Justin C. Miller bbb9aae198 [kernel] Use symbol table in stack traces
Now using the symbol table built by build_symbol_table.py in the kernel
when printing stack traces.
2020-08-09 17:27:51 -07:00

32 lines
680 B
C++

#pragma once
#include <string>
#include <fstream>
class entry
{
public:
entry(
const std::string &in,
const std::string &out,
bool executable = false,
bool symbols = false);
inline const std::string & in() const { return m_in; }
inline const std::string & out() const { return m_out; }
inline const std::ifstream & file() const { return m_file; }
inline bool executable() const { return m_exec; }
inline bool symbols() const { return m_syms; }
inline size_t size() const { return m_size; }
inline bool good() const { return m_file.good(); }
private:
std::string m_in;
std::string m_out;
std::ifstream m_file;
size_t m_size;
bool m_exec;
bool m_syms;
};