OSDN Git Service

* wrapper.h (gdb_value_struct_elt): New function.
[pf3gnuchains/pf3gnuchains3x.git] / gdb / wrapper.h
1 /* Longjump free calls to gdb internal routines.
2    Copyright 1999, 2000 Free Software Foundation, Inc.
3
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; either version 2 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program; if not, write to the Free Software
16    Foundation, Inc., 59 Temple Place - Suite 330,
17    Boston, MA 02111-1307, USA.  */
18
19 #ifndef WRAPPER_H
20 #define WRAPPER_H 1
21 #include "gdb.h"
22
23 struct value;
24
25 /* Use this struct to pass arguments to wrapper routines. */
26 struct gdb_wrapper_arguments;
27
28 extern int gdb_parse_exp_1 (char **, struct block *,
29                             int, struct expression **);
30
31 extern int gdb_evaluate_expression (struct expression *, struct value **);
32
33 extern int gdb_value_fetch_lazy (struct value *);
34
35 extern int gdb_value_equal (struct value *, struct value *, int *);
36
37 extern int gdb_value_assign (struct value *, struct value *, struct value **);
38
39 extern int gdb_value_subscript (struct value *, struct value *, struct value **);
40
41 extern enum gdb_rc gdb_value_struct_elt (struct ui_out *uiout, struct value **result_ptr,
42                                          struct value **argp, struct value **args,
43                                          char *name, int *static_memfuncp, char *err);
44
45 extern int gdb_value_ind (struct value *val, struct value ** rval);
46
47 extern int gdb_parse_and_eval_type (char *, int, struct type **);
48
49 #endif /* WRAPPER_H */