diff options
author | Fred Fish <fnf@specifix.com> | 1993-04-29 07:07:39 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1993-04-29 07:07:39 +0000 |
commit | 7efb57c33d3a34339e53ed959d42e1e21c938ca2 (patch) | |
tree | 4f3721162f566308e7ea6928a0ac8521932e909f /gdb/c-valprint.c | |
parent | 3602ba816321c98552a25ed520495e8c6443909c (diff) | |
download | ppe42-binutils-7efb57c33d3a34339e53ed959d42e1e21c938ca2.tar.gz ppe42-binutils-7efb57c33d3a34339e53ed959d42e1e21c938ca2.zip |
* 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/c-valprint.c')
-rw-r--r-- | gdb/c-valprint.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index 1a3151b627..14deef869b 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -304,11 +304,7 @@ c_val_print (type, valaddr, address, stream, format, deref_ref, recurse, } else { -#ifdef LONG_LONG - fprintf_filtered (stream, "%lld", val); -#else - fprintf_filtered (stream, "%ld", val); -#endif + print_longest (stream, 'd', 0, val); } break; |