Provide access to raw backtraces and object offsets

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Dev Tools 2019-11-04
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      mongo/util/stacktrace.h provides a function printStackTrace().

      I would like an accompanying function to provide the raw backtrace via either:

      std::vector<uintptr_t> getStackTrace()

      or:

      template<typename F> requires Invokable<F, uintptr_t> void iterateStackTrace(F functor)

      I would also like a function to convert a uintptr_t instruction address into a tuple object of dynamic object name and file offset:

      std::pair<std::string, uintptr_t> getDynamicObjectOffset(uintptr_t instructionAddress)

      Actual container or functor types are relatively immaterial to me so long as they do not incur overhead.

            Assignee:
            Billy Donahue
            Reporter:
            Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: