aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/module.cc2
-rw-r--r--src/common/module.h7
2 files changed, 7 insertions, 2 deletions
diff --git a/src/common/module.cc b/src/common/module.cc
index 2d2e4efc..244fc988 100644
--- a/src/common/module.cc
+++ b/src/common/module.cc
@@ -155,7 +155,7 @@ void Module::GetFiles(vector<File *> *vec) {
vec->push_back(it->second);
}
-void Module::GetStackFrameEntries(vector<StackFrameEntry *> *vec) {
+void Module::GetStackFrameEntries(vector<StackFrameEntry *> *vec) const {
*vec = stack_frame_entries_;
}
diff --git a/src/common/module.h b/src/common/module.h
index 398bc315..440298f0 100644
--- a/src/common/module.h
+++ b/src/common/module.h
@@ -247,7 +247,7 @@ class Module {
// effectively a copy of the stack frame entry list, this is mostly
// useful for testing; other uses should probably get
// a more appropriate interface.)
- void GetStackFrameEntries(vector<StackFrameEntry *> *vec);
+ void GetStackFrameEntries(vector<StackFrameEntry *> *vec) const;
// Find those files in this module that are actually referred to by
// functions' line number data, and assign them source id numbers.
@@ -270,6 +270,11 @@ class Module {
// established by SetLoadAddress.
bool Write(std::ostream &stream, SymbolData symbol_data);
+ string name() const { return name_; }
+ string os() const { return os_; }
+ string architecture() const { return architecture_; }
+ string identifier() const { return id_; }
+
private:
// Report an error that has occurred writing the symbol file, using
// errno to find the appropriate cause. Return false.