GDB (xrefs)
/tmp/gdb-8.1/gdb/osdata.h
Go to the documentation of this file.
1 /* Routines for handling XML generic OS data provided by target.
2 
3  Copyright (C) 2008-2018 Free Software Foundation, Inc.
4 
5  This file is part of GDB.
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 
20 #ifndef OSDATA_H
21 #define OSDATA_H
22 
23 #include <vector>
24 
26 {
28  : name (std::move (name_)), value (std::move (value_))
29  {}
30 
33 };
34 
36 {
37  std::vector<osdata_column> columns;
38 };
39 
40 struct osdata
41 {
42  osdata (std::string &&type_)
43  : type (std::move (type_))
44  {}
45 
47  std::vector<osdata_item> items;
48 };
49 
50 std::unique_ptr<osdata> osdata_parse (const char *xml);
51 std::unique_ptr<osdata> get_osdata (const char *type);
52 const std::string *get_osdata_column (const osdata_item &item,
53  const char *name);
54 
55 /* Dump TYPE info to the current uiout builder. If TYPE is either
56  NULL or empty, then dump the top level table that lists the
57  available types of OS data. */
58 void info_osdata (const char *type);
59 
60 #endif /* OSDATA_H */
const char * string
Definition: signals.c:50
void info_osdata(const char *type)
Definition: osdata.c:195
std::string type
Definition: osdata.h:46
osdata(std::string &&type_)
Definition: osdata.h:42
const char *const name
Definition: aarch64-tdep.c:76
osdata_column(std::string &&name_, std::string &&value_)
Definition: osdata.h:27
Definition: gdbtypes.h:749
std::vector< osdata_column > columns
Definition: osdata.h:37
Definition: osdata.h:40
Definition: value.c:169
std::vector< osdata_item > items
Definition: osdata.h:47
std::string name
Definition: osdata.h:31
std::string value
Definition: osdata.h:32
std::unique_ptr< osdata > get_osdata(const char *type)
Definition: osdata.c:160
std::unique_ptr< osdata > osdata_parse(const char *xml)
Definition: osdata.c:144
const std::string * get_osdata_column(const osdata_item &item, const char *name)
Definition: osdata.c:185