diff options
author | Tom Tromey <tromey@redhat.com> | 2010-02-08 20:55:43 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-02-08 20:55:43 +0000 |
commit | 714f19d5576e314d5b9c3b674b11bf4212a3faeb (patch) | |
tree | 6b850af87174bbcde740d2a842519fe41cd4436c /gdb/value.h | |
parent | d0c9aeb3fc18f9f77a8e173b1fb9616931f669bd (diff) | |
download | gdb-714f19d5576e314d5b9c3b674b11bf4212a3faeb.zip gdb-714f19d5576e314d5b9c3b674b11bf4212a3faeb.tar.gz gdb-714f19d5576e314d5b9c3b674b11bf4212a3faeb.tar.bz2 |
gdb
PR c++/8017:
* value.h: Update.
* valops.c (search_struct_field): Make 'name' const.
(search_struct_method): Likewise.
(find_method_list): Make 'method' const.
(value_struct_elt): Make 'name' and 'err' const.
(value_find_oload_method_list): Make 'method' const.
(find_overload_match): Make 'name' const.
* eval.c (evaluate_subexp_standard): New locals function,
function_name.
<OP_FUNCALL>: Handle OP_SCOPE specially.
gdb/testsuite
PR c++/8017:
* gdb.cp/overload.exp: Add tests.
* gdb.cp/overload.cc (struct K): New.
(namespace N): New.
(main): Call new functions.
(K::staticoverload): Define.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/value.h b/gdb/value.h index 42b4497..43b8c3b 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -431,8 +431,8 @@ extern struct value *value_complement (struct value *arg1); extern struct value *value_struct_elt (struct value **argp, struct value **args, - char *name, int *static_memfuncp, - char *err); + const char *name, int *static_memfuncp, + const char *err); extern struct value *value_aggregate_elt (struct type *curtype, char *name, @@ -442,12 +442,13 @@ extern struct value *value_aggregate_elt (struct type *curtype, extern struct value *value_static_field (struct type *type, int fieldno); -extern struct fn_field *value_find_oload_method_list (struct value **, char *, +extern struct fn_field *value_find_oload_method_list (struct value **, + const char *, int, int *, struct type **, int *); extern int find_overload_match (struct type **arg_types, int nargs, - char *name, int method, int lax, + const char *name, int method, int lax, struct value **objp, struct symbol *fsym, struct value **valp, struct symbol **symp, int *staticp); |