]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/tools/lldb-mi/MIUtilSystemLinux.h
Merge ^/head r279759 through r279892.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / tools / lldb-mi / MIUtilSystemLinux.h
1 //===-- CMIUtilSystemLinux.h ------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 //++
11 // File:        CMIUtilSystemLinux.h
12 //
13 // Overview:    CMIUtilSystemLinux interface.
14 //
15 // Environment: Compilers:  Visual C++ 12.
16 //                          gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
17 //              Libraries:  See MIReadmetxt.
18 //
19 // Copyright:   None.
20 //--
21
22 #pragma once
23
24 #if defined(__FreeBSD__) || defined(__linux__)
25
26 // In-house headers:
27 #include "MIUtilString.h"
28
29 //++ ============================================================================
30 // Details: MI common code utility class. Used to set or retrieve information
31 //          about the current system or user.
32 //          *** If you change, remove or add functionality it must be replicated
33 //          *** for the all platforms supported; Windows, OSX, LINUX
34 // Gotchas: None.
35 // Authors: Illya Rudkin 29/01/2014.
36 // Changes: None.
37 //--
38 class CMIUtilSystemLinux
39 {
40     // Methods:
41   public:
42     /* ctor */ CMIUtilSystemLinux(void);
43
44     bool GetOSErrorMsg(const MIint vError, CMIUtilString &vrwErrorMsg) const;
45     CMIUtilString GetOSLastError(void) const;
46     bool GetExecutablesPath(CMIUtilString &vrwFileNamePath) const;
47     bool GetLogFilesPath(CMIUtilString &vrwFileNamePath) const;
48
49     // Overrideable:
50   public:
51     // From CMICmnBase
52     /* dtor */ virtual ~CMIUtilSystemLinux(void);
53 };
54
55 typedef CMIUtilSystemLinux CMIUtilSystem;
56
57 #endif // #if defined( __linux__ )