summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-09-06 15:46:36 +0200
committerLuboš Luňák <l.lunak@collabora.com>2021-09-07 09:19:36 +0200
commit57cac3a19f5e07da137ecd616ccddf81ca185fa9 (patch)
tree44be3cb0235a22470c53531efde92aeb14aa09aa /sal
parent2284be4f80664c54fa2ef8652030aa14d63c13a2 (diff)
prepend #<num> to frames in unx backtraces
To make complex backtraces readable. Change-Id: I3a95d03d97c8e6d1aa7aeab37957d3b8441c3c90 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121724 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/backtraceapi.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/osl/unx/backtraceapi.cxx b/sal/osl/unx/backtraceapi.cxx
index 8e55cc338020..1868ae7132bb 100644
--- a/sal/osl/unx/backtraceapi.cxx
+++ b/sal/osl/unx/backtraceapi.cxx
@@ -213,6 +213,7 @@ OUString sal::backtrace_to_string(BacktraceState* backtraceState)
{
if (i != 0)
b3.append("\n");
+ b3.append( "#" + OUString::number( i ) + " " );
if(!frameData[i].info.isEmpty())
b3.append(o3tl::runtimeToOUString(frameData[i].info.getStr()));
else
@@ -245,6 +246,7 @@ OUString sal::backtrace_to_string(BacktraceState* backtraceState)
if (i != 0) {
b3.append("\n");
}
+ b3.append( "#" + OUString::number( i ) + " " );
b3.append(o3tl::runtimeToOUString(b2.get()[i]));
}
return b3.makeStringAndClear();