60 #ifndef BinUtil_Proc_hpp 61 #define BinUtil_Proc_hpp 243 std::string& func, std::string& file,
250 std::string& func, std::string& file,
252 unsigned flags = 1)
const 255 func, file, begLine, endLine, flags);
269 dump(std::ostream& o = std::cerr,
285 flagword flg = sym->flags;
287 return ( ((flg & BSF_FUNCTION) && !bfd_is_und_section(sym->section))
289 ((flg & BSF_GLOBAL) && !(flg & BSF_OBJECT)
290 && !(flg & BSF_THREAD_LOCAL)
291 && !bfd_is_abs_section(sym->section)
292 && !bfd_is_und_section(sym->section)) );
298 flagword flg = sym->flags;
300 return (flg & BSF_OBJECT);
398 {
return (it != endIt); }
402 {
return (it == endIt); }
421 LM::InsnMap::const_iterator
it;
430 #endif // BinUtil_Proc_hpp
const std::string & linkName() const
static unsigned int nextId
Insn * findInsn(VMA vma, ushort opIndex) const
void name(const std::string &name)
Proc(const Proc &GCC_ATTR_UNUSED p)
const std::string & name() const
virtual void dump(std::ostream &o=std::cerr, int flags=LM::DUMP_Short, const char *pre="") const
SrcFile::ln begLine() const
bool isValid(SrcFile::ln line)
Proc & operator=(const Proc &GCC_ATTR_UNUSED p)
bool findSrcCodeInfo(VMA vma, ushort opIndex, std::string &func, std::string &file, SrcFile::ln &line) const
MachInsn * findMachInsn(VMA vma, ushort &size) const
friend class ProcInsnIterator
void size(unsigned int size)
static bool isDummyProcBFDSym(asymbol *sym)
MachInsn * findMachInsn(VMA vma, ushort &sz) const
unsigned short int ushort
unsigned int numInsns() const
void filename(std::string &x)
bool findSrcCodeInfo(VMA begVMA, ushort bOpIndex, VMA endVMA, ushort eOpIndex, std::string &func, std::string &file, SrcFile::ln &begLine, SrcFile::ln &endLine, unsigned flags=1) const
ProcInsnIterator & operator=(const ProcInsnIterator &GCC_ATTR_UNUSED i)
std::string toString(int flags=LM::DUMP_Short) const
LM::InsnMap::const_iterator endIt
static bool isProcBFDSym(asymbol *sym)
Insn * findInsn(VMA vma, ushort opIndex) const
LM::InsnMap::const_iterator it
bool findSrcCodeInfo(VMA vma, ushort opIndex, std::string &func, std::string &file, SrcFile::ln &line)
const std::string & filename() const
void begLine(SrcFile::ln x)