[Libreoffice-commits] core.git: sal/osl

Luboš Luňák (via logerrit) logerrit at kemper.freedesktop.org
Tue Sep 7 07:20:08 UTC 2021


 sal/osl/unx/backtraceapi.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 57cac3a19f5e07da137ecd616ccddf81ca185fa9
Author:     Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Mon Sep 6 15:46:36 2021 +0200
Commit:     Luboš Luňák <l.lunak at collabora.com>
CommitDate: Tue Sep 7 09:19:36 2021 +0200

    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 at collabora.com>

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();


More information about the Libreoffice-commits mailing list