aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1993-01-14 05:10:12 +0000
committerFred Fish <fnf@specifix.com>1993-01-14 05:10:12 +0000
commitc7da3ed3cd1cf1168a969567f4b0741718fe61f3 (patch)
tree56f6182cad9e333090634900354e51144d42ed15 /gdb/value.h
parent31883f012edd3136e402c13a5a14971cde5cb31f (diff)
downloadgdb-c7da3ed3cd1cf1168a969567f4b0741718fe61f3.zip
gdb-c7da3ed3cd1cf1168a969567f4b0741718fe61f3.tar.gz
gdb-c7da3ed3cd1cf1168a969567f4b0741718fe61f3.tar.bz2
* c-valprint.c (cp_print_class_member): Add extern decl.
* c-valprint.c (c_val_print): Extract code for printing methods and move it to cp_print_class_method in cp-valprint.c. * c-valprint.c (c_val_print): Extract code to print strings and move it to val_print_string in valprint.c. * cp-valprint.c (cp_print_class_method): New function using code extracted from c_val_print. * valprint.c (val_print_string): New function using code extracted from c_val_print. * value.h (val_print_string): Add prototype. **** start-sanitize-chill **** * ch-exp.y (CHARACTER_STRING_LITERAL): Set correct token type. * ch-exp.y (literal): Add action for CHARACTER_STRING_LITERAL. * ch-exp.y (tempbuf, tempbufsize, tempbufindex, GROWBY_MIN_SIZE, CHECKBUF, growbuf_by_size): New variables, macros, and support functions for implementing a dynamically expandable temp buffer. * ch-exp.y (match_string_literal): New lexer function. * ch-exp.y (match_bitstring_literal): Dynamic buffer code removed and replaced with new CHECKBUF macro. * ch-exp.y (yylex): Call match_string_literal when appropriate. * ch-valprint.c (ch_val_print): Add code for TYPE_CODE_PTR. **** end-sanitize-chill ****
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h26
1 files changed, 10 insertions, 16 deletions
diff --git a/gdb/value.h b/gdb/value.h
index 43408a9..e7c65dd 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -197,6 +197,7 @@ struct internalvar
#ifdef __STDC__
struct frame_info;
+struct fn_field;
#endif
extern void
@@ -298,7 +299,7 @@ extern value
value_neg PARAMS ((value arg1));
extern value
-value_lognot PARAMS ((value arg1));
+value_complement PARAMS ((value arg1));
extern value
value_struct_elt PARAMS ((value *argp, value *args, char *name,
@@ -390,7 +391,7 @@ extern int
value_less PARAMS ((value arg1, value arg2));
extern int
-value_zerop PARAMS ((value arg1));
+value_logical_not PARAMS ((value arg1));
/* C++ */
@@ -469,19 +470,6 @@ extern void
type_print PARAMS ((struct type *type, char *varstring, FILE *stream,
int show));
-extern void
-type_print_1 PARAMS ((struct type *type, char *varstring, FILE *stream,
- int show, int level));
-
-/* Possibilities for prettyprint parameters to routines which print
- things. */
-enum val_prettyprint {
- Val_no_prettyprint = 0,
- Val_prettyprint,
- /* Use the default setting which the user has specified. */
- Val_pretty_default
- };
-
extern char *
baseclass_addr PARAMS ((struct type *type, int index, char *valaddr,
value *valuep, int *errp));
@@ -498,6 +486,9 @@ val_print PARAMS ((struct type *type, char *valaddr, CORE_ADDR address,
FILE *stream, int format, int deref_ref,
int recurse, enum val_prettyprint pretty));
+extern int
+val_print_string PARAMS ((CORE_ADDR addr, FILE *stream));
+
/* FIXME: Assumes equivalence of "struct frame_info *" and "FRAME" */
extern void
print_variable_value PARAMS ((struct symbol *var, struct frame_info *frame,
@@ -510,7 +501,7 @@ extern int
check_field PARAMS ((value, const char *));
extern void
-typedef_print PARAMS ((struct type *type, struct symbol *new, FILE *stream));
+c_typedef_print PARAMS ((struct type *type, struct symbol *new, FILE *stream));
extern char *
internalvar_name PARAMS ((struct internalvar *var));
@@ -526,6 +517,9 @@ clear_internalvars PARAMS ((void));
extern value
value_copy PARAMS ((value));
+extern int
+baseclass_offset PARAMS ((struct type *, int, value, int));
+
/* From valops.c */
extern value