summaryrefslogtreecommitdiffstats
path: root/include/backtrace/Backtrace.h
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2014-01-13 18:12:04 -0800
committerChristopher Ferris <cferris@google.com>2014-01-13 18:14:11 -0800
commit4167d7e5c23b3b3056107b18bae7a871cf974414 (patch)
tree1ddbe300520347c445ca21c3889fa1bafb6299bc /include/backtrace/Backtrace.h
parentda1f43f0753ef1d3f01e5eaf01280ef611f4abfb (diff)
parent8791ee5c1486c9d6f9bf275bb096179dce95f309 (diff)
downloadsystem_core-4167d7e5c23b3b3056107b18bae7a871cf974414.zip
system_core-4167d7e5c23b3b3056107b18bae7a871cf974414.tar.gz
system_core-4167d7e5c23b3b3056107b18bae7a871cf974414.tar.bz2
resolved conflicts for merge of 8791ee5c to master
Change-Id: I107bb055941809331c451c1d903f231f07a86ece
Diffstat (limited to 'include/backtrace/Backtrace.h')
-rw-r--r--include/backtrace/Backtrace.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/backtrace/Backtrace.h b/include/backtrace/Backtrace.h
index bf4efd3..df40b87 100644
--- a/include/backtrace/Backtrace.h
+++ b/include/backtrace/Backtrace.h
@@ -60,6 +60,7 @@ public:
// Create a string representing the formatted line of backtrace information
// for a single frame.
virtual std::string FormatFrameData(size_t frame_num);
+ virtual std::string FormatFrameData(const backtrace_frame_data_t* frame);
pid_t Pid() { return backtrace_.pid; }
pid_t Tid() { return backtrace_.tid; }
@@ -68,9 +69,16 @@ public:
const backtrace_t* GetBacktrace() { return &backtrace_; }
const backtrace_frame_data_t* GetFrame(size_t frame_num) {
+ if (frame_num > NumFrames()) {
+ return NULL;
+ }
return &backtrace_.frames[frame_num];
}
+ const backtrace_map_info_t* GetMapList() {
+ return map_info_;
+ }
+
protected:
Backtrace(BacktraceImpl* impl, pid_t pid, backtrace_map_info_t* map_info);