[PATCH v2] libstdc++: Improve ostream output for std::stacktrace
Antony Polukhin
antoshkka@gmail.com
Thu Oct 16 14:03:36 GMT 2025
> Maybe we could put the hex address at the front, and then pad it
It has a readability downside. The output is for consuming by humans, and
for humans the most valuable part is the function name. If the function
name does not help, then the source file name with the line do the job.
Putting address at the beginning of the output forces the user to look
through the output line and mentally skip the address, which is not hard
but causes minor inconvenience.
Addresses in GDB have value, because in GDB you could jump to the address.
While outputting std::stacktrace the debugger is rarely present, so the
address has less value.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20251016/ba63f983/attachment.htm>
More information about the Libstdc++
mailing list