mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
[lldb] Fix flakyness in command-disassemble-process.yaml
This commit is contained in:
parent
8e893dfed5
commit
557a0e7b96
@ -3,6 +3,5 @@ disassemble --line
|
||||
disassemble --frame
|
||||
disassemble --pc
|
||||
disassemble --address 0x4004
|
||||
disassemble --address 0xdead
|
||||
disassemble --count 7
|
||||
disassemble --pc --count 7
|
||||
|
@ -13,6 +13,11 @@
|
||||
# RUN: -o "settings set stop-disassembly-max-size 8000" \
|
||||
# RUN: -o disassemble -o exit 2>&1 | FileCheck %s --check-prefix=BIG
|
||||
|
||||
# RUN: %lldb -c %t %T/command-disassemble-process.exe \
|
||||
# RUN: -o "settings set interpreter.stop-command-source-on-error false" \
|
||||
# RUN: -o "disassemble --address 0xdead" -o exit 2>&1 \
|
||||
# RUN: | FileCheck %s --check-prefix=INVALID
|
||||
|
||||
# CHECK: (lldb) disassemble
|
||||
# CHECK-NEXT: command-disassemble-process.exe`main:
|
||||
# CHECK-NEXT: 0x4002 <+0>: addb %al, (%rcx)
|
||||
@ -43,8 +48,6 @@
|
||||
# CHECK-NEXT: -> 0x4004 <+2>: addb %al, (%rdx)
|
||||
# CHECK-NEXT: 0x4006 <+4>: addb %al, (%rbx)
|
||||
# CHECK-NEXT: 0x4008 <+6>: addb %al, (%rsi)
|
||||
# CHECK-NEXT: (lldb) disassemble --address 0xdead
|
||||
# CHECK-NEXT: error: Could not find function bounds for address 0xdead
|
||||
# CHECK-NEXT: (lldb) disassemble --count 7
|
||||
# CHECK-NEXT: command-disassemble-process.exe`main:
|
||||
# CHECK-NEXT: 0x4002 <+0>: addb %al, (%rcx)
|
||||
@ -64,6 +67,9 @@
|
||||
# CHECK-NEXT: 0x400e: addb %cl, (%rcx)
|
||||
# CHECK-NEXT: 0x4010: addb %cl, (%rdx)
|
||||
|
||||
# INVALID: (lldb) disassemble --address 0xdead
|
||||
# INVALID: error: Could not find function bounds for address 0xdead
|
||||
|
||||
# BIG: error: Not disassembling the current function because it is very large [0x0000000000004002-0x0000000000005f42). To disassemble specify an instruction count limit, start/stop addresses or use the --force option.
|
||||
|
||||
--- !ELF
|
||||
|
Loading…
x
Reference in New Issue
Block a user