From Fedora Project Wiki

Revision as of 09:52, 21 August 2023 by Sumantrom (talk | contribs) (Created page with "{{QA/Test_Case |description=This test case ensures that `dwz` can optimize DWARF debugging information in ELF binaries without corruption. |setup= 1. Install a fresh copy of Fedora. 2. Ensure `dwz` is installed using: `dnf install dwz`. 3. Compile a helloworld C/C++ application with debugging information: `gcc -g -o sample sample.c`. |actions= # Optimize the debugging information with `dwz`: `dwz sample`. # Use a debugging tool, like `gdb`, to debug the `sample` binary....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case ensures that dwz can optimize DWARF debugging information in ELF binaries without corruption.

Setup

1. Install a fresh copy of Fedora. 2. Ensure dwz is installed using: dnf install dwz. 3. Compile a helloworld C/C++ application with debugging information: gcc -g -o sample sample.c.

How to test

  1. Optimize the debugging information with dwz: dwz sample.
  2. Use a debugging tool, like gdb, to debug the sample binary.
  3. Check if debug symbols are accessible and the application is debuggable.

Expected Results

  1. dwz should complete its optimization without errors.
  2. Debugging tools should access the symbols and debug the application without any issues, indicating the DWARF sections were not corrupted.

Optional

1. Run dwz on more complex applications or shared libraries. 2. Monitor for any size reduction in the debugging information. 3. Check for speed improvements during debugging due to optimized debug info.