Skip to contentSkip to conversation

manuals: document minidebuginfo

PATCH Etienne Cordonnier 1 participant 1 message Dec 11, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

v3 of the patch: implemented feedback of Michael Opdenacker

Quoted 78 lines · Etienne Cordonnier via lists.yoctoproject.org

From: Etienne Cordonnier <[email protected]>

---
 documentation/dev-manual/debugging.rst | 15 +++++++++++++++
 documentation/ref-manual/features.rst  |  3 +++
 2 files changed, 18 insertions(+)
documentation/dev-manual/debugging.rst +0 -0
index fea2cb30a..b12dc284f 100644
@@ -1173,6 +1173,21 @@ To support this kind of debugging, you need do the

following:
Consider that this will reduce the application's performance and is recommended only for debugging purposes.

documentation/dev-manual/debugging.rst +4 -0
+Enabling Minidebuginfo
+======================
+
+Enabling the :term:`DISTRO_FEATURES` minidebuginfo adds a compressed ELF

section ``.gnu_debugdata``
+to all binary files, containing only function names, and thus increasing the size of the
+binaries only by 5 to 10%. For comparison, full debug symbols can be 10 times as big as
+a stripped binary, and it is thus not always possible to deploy full debug symbols.

documentation/dev-manual/debugging.rst +2 -0
+Minidebuginfo data allows, on the one side, to retrieve a call-stack using
+GDB (command backtrace) without deploying full debug symbols to the

target. It also
+allows to retrieve a symbolicated call-stack when using ``systemd-coredump`` to manage

documentation/dev-manual/debugging.rst +3 -0
+coredumps (commands ``coredumpctl list`` and ``coredumpctl info``).
+
+This feature was created by Fedora, see

https://urldefense.proofpoint.com/v2/url?u=https-3A__fedoraproject.org_wiki_Features_MiniDebugInfo&d=DwIDAg&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=vDt1_X7POBAHcGehPe3ik0sGLll7WzlCH4W4-ZuMuJfOwHXsvL4rW_X8pojKevL5&s=Ok_SWBcsPgxZEk2l_Jm-vio0sz8uHQ4PKMTpKzd3VOk&e=
for

documentation/dev-manual/debugging.rst +2 -0
+more details.
+
 Other Debugging Tips
 ====================
documentation/ref-manual/features.rst +1 -0
index dd14339bc..b9d3b30f1 100644
@@ -161,6 +161,9 @@ metadata, as extra layers can define their own:
 -  *keyboard:* Include keyboard support (e.g. keymaps will be loaded
    during boot).
 
+-  *minidebuginfo:* Add minimal debug symbols

:ref:(minidebuginfo)<dev-manual/debugging:enabling minidebuginfo>
+ to binary files containing, allowing ``coredumpctl`` and ``gdb`` to
show symbolicated stack traces.
+
- *multiarch:* Enable building applications with multiple architecture support.

--
2.36.1.vfs.0.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#4672):
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_g_docs_message_4672&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=vDt1_X7POBAHcGehPe3ik0sGLll7WzlCH4W4-ZuMuJfOwHXsvL4rW_X8pojKevL5&s=JCr6PqJ-NLnFV3liItW6-fha6S55zl_u0yM3goUFPmk&e=
Mute This Topic:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_mt_103105997_7048771&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=vDt1_X7POBAHcGehPe3ik0sGLll7WzlCH4W4-ZuMuJfOwHXsvL4rW_X8pojKevL5&s=ClsIna0CQXzIj8FL8pjoZ2Fd55V_PqvStm_vLdRY1ps&e=
Group Owner: [email protected] Unsubscribe:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_g_docs_unsub&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=vDt1_X7POBAHcGehPe3ik0sGLll7WzlCH4W4-ZuMuJfOwHXsvL4rW_X8pojKevL5&s=0MXnC_FMQeban-zqknf7r8y06cdHK_qUw32qh0ryEys&e=
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-