lldb-dwz: Be compatible with compat packages
Avoid running rpm against package names because they change when we test a compat package. Use the executable path instead because PATH gets modified when testing compat packages.
This commit is contained in:
parent
4c4d9b3bc5
commit
4f4c834e22
1 changed files with 2 additions and 1 deletions
|
|
@ -7,11 +7,12 @@ cp hello1 hello2
|
|||
dwz hello1 hello2 -m hello.common
|
||||
lldb -b -o 'b main' -o 'run --usage' -o c -- hello1 2>&1 | tee lldb.log
|
||||
|
||||
exe=$(command -v lldb)
|
||||
# Until LLVM 23, DW_FORM GNU_ref_alt and GNU_strp_alt are unsupported.
|
||||
# In that case, lldb should report "unsupported DW_FORM values: 0x1f20 0x1f21"
|
||||
# as a warning, and continue the execution without any crash. Support added in:
|
||||
# https://github.com/llvm/llvm-project/commit/16149ca93227d0d26a2f7387e95ad30971e99f43
|
||||
if [[ "$(rpm -q --qf "%{version}" lldb | cut -d. -f1)" -lt "23" ]] ; then
|
||||
if [[ "$(rpm -q --qf "%{version}" -f $exe | cut -d. -f1)" -lt "23" ]] ; then
|
||||
grep "unsupported DW_FORM values" lldb.log
|
||||
fi
|
||||
grep "stop reason = breakpoint" lldb.log
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue