mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 21:55:39 +08:00
The reproducers' working directory is set to the current working directory when they are initialized. While this is not optimal, as the cwd can change during a debug session, it has been sufficient so far. The current approach doesn't work for the API test suite however because dotest temporarily changes the directory to where the test's Python file lives. This patch adds an API to tell the reproducers what to set the CWD to. This is a NO-OP in every mode but capture. Differential revision: https://reviews.llvm.org/D79825
19 lines
643 B
C++
19 lines
643 B
C++
//===-- SWIG Interface for SBReproducer--------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
namespace lldb {
|
|
class SBReproducer
|
|
{
|
|
public:
|
|
static const char *Capture(const char *path);
|
|
static const char *PassiveReplay(const char *path);
|
|
static bool SetAutoGenerate(bool b);
|
|
static void SetWorkingDirectory(const char *path);
|
|
};
|
|
}
|