| 1 | /* varobj support for Ada. |
| 2 | |
| 3 | Copyright (C) 2012 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 ADA_VAROBJ_H |
| 21 | #define ADA_VAROBJ_H |
| 22 | |
| 23 | #include "defs.h" |
| 24 | #include "varobj.h" |
| 25 | |
| 26 | struct value; |
| 27 | struct value_print_options; |
| 28 | |
| 29 | extern int ada_varobj_get_number_of_children (struct value *parent_value, |
| 30 | struct type *parent_type); |
| 31 | |
| 32 | extern char *ada_varobj_get_name_of_child (struct value *parent_value, |
| 33 | struct type *parent_type, |
| 34 | const char *parent_name, |
| 35 | int child_index); |
| 36 | |
| 37 | extern char *ada_varobj_get_path_expr_of_child (struct value *parent_value, |
| 38 | struct type *parent_type, |
| 39 | const char *parent_name, |
| 40 | const char *parent_path_expr, |
| 41 | int child_index); |
| 42 | |
| 43 | extern struct value *ada_varobj_get_value_of_child (struct value *parent_value, |
| 44 | struct type *parent_type, |
| 45 | const char *parent_name, |
| 46 | int child_index); |
| 47 | |
| 48 | extern struct type *ada_varobj_get_type_of_child (struct value *parent_value, |
| 49 | struct type *parent_type, |
| 50 | int child_index); |
| 51 | |
| 52 | extern char *ada_varobj_get_value_of_variable |
| 53 | (struct value *value, struct type *type, |
| 54 | struct value_print_options *opts); |
| 55 | |
| 56 | #endif /* ADA_VAROBJ_H */ |