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
- Optimize the debugging information with
dwz
:dwz sample
. - Use a debugging tool, like
gdb
, to debug thesample
binary. - Check if debug symbols are accessible and the application is debuggable.
Expected Results
dwz
should complete its optimization without errors.- 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.