-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Description
Search before asking
- I had searched in the issues and found no similar issues.
Description
This issue proposes two changes to improve debugging experience.
- Use
lldto speed the link time ofdoris_be_testup. - Explicitly set the version of
dwarfto use debug info indwarf-5format which is the latest and has numerous minor additions to improve functionality and performance.
Foregoings are NOT mandatory.
REMARK
GCC 11.0+ produces DWARF debugging information in dwarf-5 format by default if it was built against binutils version 2.35.2 or higher according to GCC 11 Release Note. GCC 11.1 in ldb toolchain may be built against binutils with earlier version, hence, it doesn't produces the debugging information in version 5 format.
Solution
- Use
lldto speed the link time ofdoris_be_testup. - Explicitly set the version of
dwarfto use debug info indwarf-5.
Usage
# For debug build
BUILD_TYPE=DEBUG USE_LLD=ON USE_DWARF=ON ./build.sh --be --clean
# For ut
USE_LLD=ON USE_DWARF=ON ./run-be-ut.sh --cleanAre you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
No labels