summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2022-08-18 15:15:04 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-08-24 17:11:23 +0000
commit0d8f92ec8fb3d92ece59123d48187c96f28be4ae (patch)
treef1498662ad47b889ad1faa80ffcdab227a5434c2 /src
parent3638a46b67df366bda6a2f8c1c10f716a6fdc5eb (diff)
Doc: Generalize info about -rdynamic to be not qmake specific
Fixes: QTBUG-88044 Change-Id: I079cb75b5a5c32e38dec73474c967cc836d94b68 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 54e01d50f44044e6b8d7a26a8f095702c6739bdf) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/global/qlogging.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp
index 94ec78f382..ad43c89724 100644
--- a/src/corelib/global/qlogging.cpp
+++ b/src/corelib/global/qlogging.cpp
@@ -2040,9 +2040,12 @@ void qErrnoWarning(int code, const char *msg, ...)
\row \li \c{%{backtrace [depth=N] [separator="..."]}} \li A backtrace with the number of frames
specified by the optional \c depth parameter (defaults to 5), and separated by the optional
\c separator parameter (defaults to "|").
+
This expansion is available only on some platforms (currently only platfoms using glibc).
Names are only known for exported functions. If you want to see the name of every function
- in your application, use \c{QMAKE_LFLAGS += -rdynamic}.
+ in your application, make sure your application is compiled and linked with \c{-rdynamic},
+ or an equivalent of it.
+
When reading backtraces, take into account that frames might be missing due to inlining or
tail call optimization.
\endtable