summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/TestNamespaceLookup.py
diff options
context:
space:
mode:
authorMichael Trent <mtrent@apple.com>2018-01-03 23:28:32 +0000
committerMichael Trent <mtrent@apple.com>2018-01-03 23:28:32 +0000
commitca30902ff841ab4f505a0732c1e517e4ed231b1c (patch)
tree19dff876c5918934a303764f688ead4a987f5406 /lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/TestNamespaceLookup.py
parentbba410668a7c2b2af2d23a047260e568e5b622ee (diff)
downloadbcm5719-llvm-ca30902ff841ab4f505a0732c1e517e4ed231b1c.tar.gz
bcm5719-llvm-ca30902ff841ab4f505a0732c1e517e4ed231b1c.zip
Do not look up symbol names when n_strx == 0
Summary: Historical tools for working with mach-o binaries verify the nlist field n_strx has a non-zero value before using that value to retrieve symbol names. Under some cirumstances, llvm-nm will attempt to display the symbol name at position 0, even though symbol names at that position are not well defined. This change addresses this problem by returning an empty string when n_strx is zero. rdar://problem/35750548 Reviewers: enderby, davide Reviewed By: enderby, davide Subscribers: davide, llvm-commits, JDevlieghere Differential Revision: https://reviews.llvm.org/D41657 llvm-svn: 321773
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/TestNamespaceLookup.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud