Skip to content

Provide debugging information for toolchain-bundled libraries #546

@stephanosio

Description

@stephanosio

Zephyr SDK bundles various libraries as part of the toolchains included in it:

The Zephyr SDK build process currently strips out all the debug information for the above libraries in order to reduce the toolchain size, effectively making it impossible to debug the internals of these libraries.

Note that it is often necessary to debug the internals of the C and C++ standard libraries to fully understand the complex issues involving the functions from these libraries, and that is especially true for the Zephyr RTOS for which almost all of its users are writing very low-level code.

To fix this problem, consider providing the debug symbols for these libraries in one or more of the following ways:

  1. a separate tarball containing the debug symbols (still requires users to manually obtain the source code)
  2. debuginfod server (simply setting DEBUGINFOD_URLS environment variable to point to the Zephyr debuginfod server should be enough to allow the debug symbols and source code access)

Metadata

Metadata

Assignees

Labels

area: GDBIssues related to GDB (GNU Debugger)area: ToolchainIssues related to Toolchain (Binutils+GCC+GDB+libs)

Projects

Status

No status

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions