brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 7ab7fab Raw
50 lines · c
1//===-- CommandOptionsProcessLaunch.h ---------------------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLDB_SOURCE_COMMANDS_COMMANDOPTIONSPROCESSLAUNCH_H10#define LLDB_SOURCE_COMMANDS_COMMANDOPTIONSPROCESSLAUNCH_H11 12#include "lldb/Host/ProcessLaunchInfo.h"13#include "lldb/Interpreter/Options.h"14 15namespace lldb_private {16 17// CommandOptionsProcessLaunch18 19class CommandOptionsProcessLaunch : public lldb_private::OptionGroup {20public:21  CommandOptionsProcessLaunch() {22    // Keep default values of all options in one place: OptionParsingStarting23    // ()24    OptionParsingStarting(nullptr);25  }26 27  ~CommandOptionsProcessLaunch() override = default;28 29  lldb_private::Status30  SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg,31                 lldb_private::ExecutionContext *execution_context) override;32 33  void OptionParsingStarting(34      lldb_private::ExecutionContext *execution_context) override {35    launch_info.Clear();36    disable_aslr = lldb_private::eLazyBoolCalculate;37  }38 39  llvm::ArrayRef<lldb_private::OptionDefinition> GetDefinitions() override;40 41  // Instance variables to hold the values for command options.42 43  lldb_private::ProcessLaunchInfo launch_info;44  lldb_private::LazyBool disable_aslr;45}; // CommandOptionsProcessLaunch46 47} // namespace lldb_private48 49#endif // LLDB_SOURCE_COMMANDS_COMMANDOPTIONSPROCESSLAUNCH_H50