diff options
Diffstat (limited to 'source/ucli/symbol.h')
| -rw-r--r-- | source/ucli/symbol.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/ucli/symbol.h b/source/ucli/symbol.h index 7831845..4f074fa 100644 --- a/source/ucli/symbol.h +++ b/source/ucli/symbol.h @@ -57,6 +57,7 @@ struct vma { }; size_t map(size_t pc) { + // printf("pc: %lx, start: %lx, offset: %lx\n", pc, start, offset); return pc - start + offset; } @@ -89,9 +90,10 @@ struct symbol { size_t start; size_t end; size_t ip; + size_t base; std::string name; - symbol() :start(0), end(0), ip(0) {} + symbol() :start(0), end(0), ip(0) , base(0) {} symbol(size_t pc) :start(0), end(0), ip(pc) {} void reset(size_t va) { start = end = 0; ip = va; } @@ -135,7 +137,7 @@ public: void dump(void); private: bool load_pid_maps(int pid); - bool load_elf(pid_t pid, const elf_file& file); + bool load_elf(pid_t pid, const elf_file& file, size_t file_base_addr); bool load_perf_map(int pid, int pid_ns); public: int java_only; |
