Lines Matching refs:out
88 std::ostream &Print(const std::vector<uintptr_t> &stacktrace, std::ostream &out) in Print() argument
93 PrintFrame(frame_num, stacktrace[frame_num], out); in Print()
95 return out; in Print()
105 void PrintFrame(size_t frame_num, uintptr_t pc, std::ostream &out) in PrintFrame() argument
107 std::ios_base::fmtflags f = out.flags(); in PrintFrame()
108 auto w = out.width(); in PrintFrame()
109 out << "#" << std::setw(2U) << std::left << frame_num << ": 0x" << std::hex << pc << " "; in PrintFrame()
110 out.flags(f); in PrintFrame()
111 out.width(w); in PrintFrame()
128 PrintFrame(function, src_file, line, out); in PrintFrame()
133 PrintFrame(function, offset, out); in PrintFrame()
137 out << "??:??\n"; in PrintFrame()
140 …ame(const std::string &function, const std::string &src_file, unsigned int line, std::ostream &out) in PrintFrame() argument
143 out << "??"; in PrintFrame()
145 Demangle(function, out); in PrintFrame()
147 out << "\n at "; in PrintFrame()
149 out << "??"; in PrintFrame()
151 out << src_file; in PrintFrame()
153 out << ":"; in PrintFrame()
155 out << "??"; in PrintFrame()
157 out << line; in PrintFrame()
160 out << "\n"; in PrintFrame()
163 void PrintFrame(const std::string &function, uintptr_t offset, std::ostream &out) in PrintFrame() argument
165 std::ios_base::fmtflags f = out.flags(); in PrintFrame()
166 Demangle(function, out); in PrintFrame()
167 out << std::hex << "+0x" << offset << "\n"; in PrintFrame()
168 out.flags(f); in PrintFrame()
182 void Demangle(const std::string &function, std::ostream &out) in Demangle() argument
188 out << demangled_function; in Demangle()
191 out << function; in Demangle()
316 std::ostream &PrintStack(const std::vector<uintptr_t> &stacktrace, std::ostream &out) in PrintStack() argument
318 return StackPrinter::GetInstance().Print(stacktrace, out); in PrintStack()