aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/gdbclientutils.py
diff options
context:
space:
mode:
authorAmir Ayupov <aaupov@fb.com>2024-04-29 18:07:26 +0200
committerGitHub <noreply@github.com>2024-04-29 09:07:26 -0700
commitdf6d2faa22bf19fb27b5c083e590d13024a8d7cd (patch)
tree5c32dbd35a2559c7d27ef6ec99fe4b1c60ef8373 /lldb/packages/Python/lldbsuite/test/gdbclientutils.py
parent1e174a7656f943fa2cad2489a226c90e03ca29ac (diff)
downloadllvm-df6d2faa22bf19fb27b5c083e590d13024a8d7cd.zip
llvm-df6d2faa22bf19fb27b5c083e590d13024a8d7cd.tar.gz
llvm-df6d2faa22bf19fb27b5c083e590d13024a8d7cd.tar.bz2
[Object] Provide operator< for ELFSymbolRef (#89861)
Normally, operator< accepting DataRefImpl is used when comparing SymbolRef/ELFSymbolRef. However, it uses std::memcmp which interprets DataRefImpl union as char string so that the result depends on host endianness. For ELFSymbolRef a specialized operator< can be used instead to produce consistent ordering regardless of endianness by comparing the symbol table index and symbol index fields separately.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/gdbclientutils.py')
0 files changed, 0 insertions, 0 deletions