Print (2 more) if stack trace truncated
[folly.git] / folly / experimental / exception_tracer / ExceptionTracer.cpp
index 19b85ec2006ef1ddd8c63c94000d49439e68392a..2e84227a0b6bb3b471a0623d67be5f9125652326 100644 (file)
@@ -54,7 +54,7 @@ std::ostream& operator<<(std::ostream& out, const ExceptionInfo& info) {
       << (info.frames.size() == 1 ? " frame" : " frames")
       << ")\n";
   try {
-    std::vector<AddressInfo> addresses;
+    std::vector<FrameInfo> addresses;
     addresses.reserve(info.frames.size());
     for (auto ip : info.frames) {
       // Symbolize the previous address because the IP might be in the
@@ -66,7 +66,7 @@ std::ostream& operator<<(std::ostream& out, const ExceptionInfo& info) {
     symbolizer.symbolize(addresses.data(), addresses.size());
 
     OStreamSymbolizePrinter osp(out);
-    osp.print(addresses.data(), addresses.size());
+    osp.print(addresses.data(), addresses.size(), addresses.size());
   } catch (const std::exception& e) {
     out << "\n !! caught " << folly::exceptionStr(e) << "\n";
   } catch (...) {