1# UNSUPPORTED: system-windows
2# This tests the reproducer dump functionality.
3
4# Generate a reproducer.
5# RUN: mkdir -p %t
6# RUN: rm -rf %t.repro
7# RUN: %clang_host %S/Inputs/simple.c -g -o %t/reproducer.out
8# RUN: %lldb -x -b -s %S/Inputs/FileCapture.in -o 'reproducer dump -p files' --capture --capture-path %t.repro %t/reproducer.out
9
10# RUN: %lldb -b -o 'reproducer dump -p files -f %t.repro' | FileCheck %s --check-prefix FILES
11# FILES-DAG: 'reproducer.out'
12# FILES-DAG: 'FileCapture.in'
13
14# RUN: %lldb -b -o 'reproducer dump -p version -f %t.repro' | FileCheck %s --check-prefix VERSION
15# VERSION: lldb version
16
17# RUN: %lldb -b -o 'reproducer dump -p commands -f %t.repro' | FileCheck %s --check-prefix COMMANDS
18# COMMANDS: command source
19# COMMANDS: target create
20# COMMANDS: command source
21
22# RUN: %lldb -b -o 'reproducer dump -p gdb -f %t.repro' | FileCheck %s --check-prefix GDB
23# GDB: send packet: $QStartNoAckMode#b0
24# GDB: read packet: $OK#9a
25
26# RUN: %lldb --replay %t.repro | FileCheck %s --check-prefix FILES
27