Fix snafu in aarch64 opcodes debugging statement.
[deliverable/binutils-gdb.git] / gdb / osdata.h
CommitLineData
07e059b5
VP
1/* Routines for handling XML generic OS data provided by target.
2
61baf725 3 Copyright (C) 2008-2017 Free Software Foundation, Inc.
07e059b5
VP
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 "vec.h"
24
25typedef struct osdata_column
26{
27 char *name;
28 char *value;
29} osdata_column_s;
30DEF_VEC_O(osdata_column_s);
31
32typedef struct osdata_item
33{
34 VEC(osdata_column_s) *columns;
35} osdata_item_s;
36DEF_VEC_O(osdata_item_s);
37
38struct osdata
39{
40 char *type;
41
42 VEC(osdata_item_s) *items;
43};
44typedef struct osdata *osdata_p;
45DEF_VEC_P(osdata_p);
46
47struct osdata *osdata_parse (const char *xml);
48void osdata_free (struct osdata *);
e0665bc8 49struct cleanup *make_cleanup_osdata_free (struct osdata *data);
07e059b5
VP
50struct osdata *get_osdata (const char *type);
51const char *get_osdata_column (struct osdata_item *item, const char *name);
fdf9e36f
PA
52
53/* Dump TYPE info to the current uiout builder. If TYPE is either
54 NULL or empty, then dump the top level table that lists the
55 available types of OS data. */
56void info_osdata (const char *type);
07e059b5
VP
57
58#endif /* OSDATA_H */
This page took 0.823205 seconds and 4 git commands to generate.