Skip to content

Commit 8533494

Browse files
stravinskiikeith
authored andcommitted
Add long format options to llvm-objdump command
PiperOrigin-RevId: 461704984 (cherry picked from commit e0de2e9)
1 parent 76752fe commit 8533494

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/apple_shell_testutils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ function assert_objdump_contains() {
606606
local symbol_regexp="$3"
607607

608608
[[ -f "$path" ]] || fail "$path does not exist"
609-
local contents=$(objdump -t --macho --arch="$arch" "$path" | grep -v "*UND*")
609+
local contents=$(objdump --syms --macho --arch="$arch" "$path" | grep -v "*UND*")
610610
echo "$contents" | grep -e "$symbol_regexp" >& /dev/null && return 0
611611
fail "Expected binary '$path' to contain '$symbol_regexp' but it did not." \
612612
"contents were: $contents"
@@ -622,7 +622,7 @@ function assert_objdump_not_contains() {
622622
local symbol_regexp="$3"
623623

624624
[[ -f "$path" ]] || fail "$path does not exist"
625-
local contents=$(objdump -t --macho --arch="$arch" "$path" | grep -v "*UND*")
625+
local contents=$(objdump --syms --macho --arch="$arch" "$path" | grep -v "*UND*")
626626
echo "$contents" | grep -e "$symbol_regexp" >& /dev/null || return 0
627627
fail "Expected binary '$path' to not contain '$symbol_regexp' but it did." \
628628
"contents were: $contents"

0 commit comments

Comments
 (0)