Skip to content

Commit

Permalink
Implement symreader dependency on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wrwilliams committed Oct 24, 2016
1 parent 583211a commit 1a1bc8a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions symtabAPI/src/Object-nt.C
Original file line number Diff line number Diff line change
Expand Up @@ -2218,6 +2218,22 @@ bool AObject::getSegments(vector<Segment> &segs) const
return true;
}

void Object::getSegmentsSymReader(std::vector<SymSegment> & sym_segs)
{
for(auto i = regions_.begin();
i != regions_.end();
++i)
{
SymSegment s;
s.file_offset = (*i)->getDiskOffset();
s.file_size = (*i)->getDiskSize();
s.mem_addr = (*i)->getMemOffset();
s.mem_size = (*i)->getMemSize();
s.perms = (*i)->getRegionPermissions();
s.type = (*i)->getRegionType();
}
}

bool Object::emitDriver(string fName, std::vector<Symbol *> &allSymbols, unsigned flag)
{
emitWin *em = new emitWin((PCHAR)GetMapAddr(), this, err_func_);
Expand Down
1 change: 1 addition & 0 deletions symtabAPI/src/Object-nt.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ class Object : public AObject
SYMTAB_EXPORT void rebase(Offset off);
SYMTAB_EXPORT Region* findRegionByName(const std::string& name) const;
SYMTAB_EXPORT void applyRelocs(Region* relocs, Offset delta);
SYMTAB_EXPORT virtual void getSegmentsSymReader(std::vector<SymSegment> &);

private:
SYMTAB_EXPORT void ParseSymbolInfo( bool );
Expand Down

0 comments on commit 1a1bc8a

Please sign in to comment.