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