aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1993-04-29 07:07:39 +0000
committerFred Fish <fnf@specifix.com>1993-04-29 07:07:39 +0000
commit7efb57c33d3a34339e53ed959d42e1e21c938ca2 (patch)
tree4f3721162f566308e7ea6928a0ac8521932e909f /gdb/value.h
parent3602ba816321c98552a25ed520495e8c6443909c (diff)
downloadgdb-7efb57c33d3a34339e53ed959d42e1e21c938ca2.zip
gdb-7efb57c33d3a34339e53ed959d42e1e21c938ca2.tar.gz
gdb-7efb57c33d3a34339e53ed959d42e1e21c938ca2.tar.bz2
* defs.h (CC_HAS_LONG_LONG): Set up to define CC_HAS_LONG_LONG
when compiling with gcc, but disable it for now. See comment. * defs.h (LONGEST): Define as either "long" or "long long" based on CC_HAS_LONG_LONG. * defs.h (longest_to_int): Use CC_HAS_LONG_LONG to control how longest_to_int is defined. * c-valprint.c (c_val_print): Call print_longest. * expprint.c (dump_expression): Use PRINTF_HAS_LONG_LONG instead of LONG_LONG. * {printcmd.c, gdbtypes.h} (LONG_LONG): Replace usages with CC_HAS_LONG_LONG. * printcmd.c (print_scalar_formatted): Call print_longest and let it figure out what to do for PRINTF_HAS_LONG_LONG. * typeprint.c (print_type_scalar): Call print_longest and let it figure out what to do for PRINTF_HAS_LONG_LONG. * valprint.c (val_print_type_code_int): Call print_longest and let it figure out what to do for PRINTF_HAS_LONG_LONG. * stabsread.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG. * value.h (struct value): Replace usage of LONG_LONG with CC_HAS_LONG_LONG. * value.h (print_longest): Add prototype. * values.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG. * values.c (unpack_double): Collapse code that was unnecessarily dependent on CC_HAS_LONG_LONG. Use LONGEST instead of direct types. * values.c (value_from_longest): Remove dependency on CC_HAS_LONG_LONG and just use LONGEST. * solib.c (solib_map_sections): Use bfd_get_filename to access filename field. * solib.c (clear_solib): Save filename and free it later, after bfd_close, since bfd_close may reference it. Use bfd_get_filename to access the field. * config/convex/xm-convex.h (LONG_LONG): Replace with CC_HAS_LONG_LONG. Add define for PRINTF_HAS_LONG_LONG. * doc/gdbint.texinfo (LONG_LONG): Replace with CC_HAS_LONG_LONG. Add PRINTF_HAS_LONG_LONG references.
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/gdb/value.h b/gdb/value.h
index e7c65dd..15b5053 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -102,7 +102,7 @@ struct value
union {
long contents[1];
double force_double_align;
-#ifdef LONG_LONG
+#ifdef CC_HAS_LONG_LONG
long long force_longlong_align;
#endif
} aligner;
@@ -272,6 +272,12 @@ extern value
value_string PARAMS ((char *ptr, int len));
extern value
+value_array PARAMS ((int lowbound, int highbound, value *elemvec));
+
+extern value
+value_concat PARAMS ((value arg1, value arg2));
+
+extern value
value_binop PARAMS ((value arg1, value arg2, enum exp_opcode op));
extern value
@@ -420,9 +426,6 @@ extern int
unop_user_defined_p PARAMS ((enum exp_opcode op, value arg1));
extern int
-typecmp PARAMS ((int staticp, struct type *t1[], value t2[]));
-
-extern int
destructor_name_p PARAMS ((const char *name, const struct type *type));
#define value_free(val) free ((PTR)val)
@@ -475,6 +478,10 @@ baseclass_addr PARAMS ((struct type *type, int index, char *valaddr,
value *valuep, int *errp));
extern void
+print_longest PARAMS ((FILE *stream, char format, int use_local,
+ LONGEST value));
+
+extern void
print_floating PARAMS ((char *valaddr, struct type *type, FILE *stream));
extern int
@@ -487,7 +494,7 @@ val_print PARAMS ((struct type *type, char *valaddr, CORE_ADDR address,
int recurse, enum val_prettyprint pretty));
extern int
-val_print_string PARAMS ((CORE_ADDR addr, FILE *stream));
+val_print_string PARAMS ((CORE_ADDR addr, unsigned int len, FILE *stream));
/* FIXME: Assumes equivalence of "struct frame_info *" and "FRAME" */
extern void