Ghidra is a software reverse engineering (SRE) framework
Merge remote-tracking branch 'origin/GP-5083_d-millar_warn_def_lang'
Ryan Kurtzc702d7c66d61
diff --cc Ghidra/Debug/Debugger-agent-lldb/src/main/py/src/ghidralldb/arch.pyindex e0fb5a9f07,87146b2730..35dabef52b--- a/Ghidra/Debug/Debugger-agent-lldb/src/main/py/src/ghidralldb/arch.py+++ b/Ghidra/Debug/Debugger-agent-lldb/src/main/py/src/ghidralldb/arch.py@@@ -225,14 -225,21 +225,18 @@@ def compute_ghidra_compiler(lang)key=lambda l: compiler_map[l])if len(matched_lang) == 0:+ print(f"{lang} not found in compiler map")return 'default'+comp_map = compiler_map[matched_lang[0]]+ if comp_map == data64_compiler_map:+ print(f"Using the DATA64 compiler map")osabi = get_osabi()- matched_osabi = sorted(- (l for l in comp_map if l in osabi),- key=lambda l: comp_map[l]- )- if len(matched_osabi) > 0:- return comp_map[matched_osabi[0]]+ if osabi in comp_map:+ return comp_map[osabi]if None in comp_map:return comp_map[None]+ print(f"{osabi} not found in compiler map")return 'default'