summaryrefslogtreecommitdiff
path: root/gdb/valprint.c
Commit message (Collapse)AuthorAgeFilesLines
* 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-02-271-4/+35
| | | | | | | | | * valprint.h (print_hex_chars, print_char_chars): New prototypes. * valprint.c (print_hex_chars): Change from static to external. (print_char_chars): New function. * printcmd.c (print_scalar_formatted): For integer and enum types that are longer than LONGEST, perform processing via appropriate print_*_chars routines.
* 2003-09-20 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-211-6/+0
| | | | | | | | | | | | | * breakpoint.c: Eliminate ARGSUSED. * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto. * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto. * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto. * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto. * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto. * remote.c, sol-thread.c, source.c, stabsread.c: Ditto. * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto. * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto. * wince.c, remote-vx.c: Ditto.
* 2003-08-04 David Carlton <carlton@kealia.com>David Carlton2003-08-041-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args to internal_error call. * source.c (forward_search_command): Add "%s" format argument. (reverse_search_command): Ditto. * top.c (quit_confirm): Ditto. * cli/cli-setshow.c (do_setshow_command): Ditto. * cp-valprint.c (cp_print_class_method): Replace {f,}printf_{un,}filtered by {f,}puts_{un,}filtered. (cp_print_class_member): Ditto. * event-top.c (command_line_handler): Ditto. * linux-proc.c (linux_info_proc_cmd): Ditto. * p-typeprint.c (pascal_type_print_base): Ditto. * p-valprint.c (pascal_object_print_class_method): Ditto. (pascal_object_print_class_member): Ditto. * printcmd.c (print_scalar_formatted,printf_command): Ditto. * remote.c (remote_cisco_section_offsets): Ditto. * top.c (command_line_input): Ditto. * utils.c (vwarning,error_stream,quit): Ditto. * valprint.c (print_floating,print_binary_chars) (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto. 2003-08-04 David Carlton <carlton@kealia.com> * mi-main.c (mi_error_last_message): Add "%s" second argument to xasprintf call. 2003-08-04 David Carlton <carlton@kealia.com> * generic/gdbtk.c (gdbtk_source_start_file): Add "%s" first argument to error call. (tk_command): Ditto. (view_command): Ditto.
* 2003-04-06 Andrew Cagney <cagney@redhat.com>kettenis_i386newframe-20030406-branchpointkettenis_i386newframe-20030406-branchcvs/kettenis_i386newframe-20030406-branchAndrew Cagney2003-04-061-4/+0
| | | | | * valprint.c (val_print_type_code_int): Delete #ifdef PRINT_TYPELESS_INTEGER code.
* * valprint.c (print_longest) [CC_HAS_LONG_LONG &&readline_4_3-import-branchpointMark Kettenis2002-08-241-3/+3
| | | | | PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned long long) to prevent compiler warning on 64-bit systems.
* 2002-07-26 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2002-07-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | * z8k-tdep.c: Do not include "obstack.h". * h8300-tdep.c, h8500-tdep.c: Ditto. * m68hc11-tdep.c, sh-tdep.c: Ditto. * valprint.c, v850-tdep.c: Ditto. * d10v-tdep.c, mn10300-tdep.c: Ditto. * mn10200-tdep.c: Ditto. * Makefile.in (z8k-tdep.o): Update dependencies. (m68hc11-tdep.o, valprint.o): Ditto. (v850-tdep.o, d10v-tdep.o): Ditto. (mn10300-tdep.o, sparc-tdep.o): Ditto. (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto. (m32r-tdep.o, mn10200-tdep.o): Specify dependencies. (sh_opc_h, gdb_sim_sh_h): Define. (elf_sh_h, elf_bfd_h): Define. (opcode_m68hc11_h): Define. (OPCODES_SRC, OPCODES_DIR): define. (OPCODES): Use $(OPCODES_DIR). (gdb_sim_d10v_h): Rename sim_d10v_h. (gdb_sim_arm_h): Rename sim_arm_h.
* * valprint.c (strcat_longest): Delete commented out function.Andrew Cagney2002-05-041-106/+4
| | | | Update copyright.
* * findvar.c (extract_signed_integer): Cast printf argumentJason Thorpe2002-04-231-1/+1
| | | | | | | | | to suppress format warning. (extract_unsigned_integer): Likewise. * infcmd.c (registers_info): Likewise. * top.c (get_prompt_1): Likewise. * valops.c (value_assign): Likewise. * valprint.c (print_decimal): Likewise.
* * valprint.c (set_input_radix): Use input_radix.Andrew Cagney2002-03-171-2/+6
| | | | | | (set_output_radix): Use output_radix. (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix isn't reverted.
* * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.Andrew Cagney2002-02-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (do_sfunc, set_cmd_sfunc): New functions. * command.h (struct cmd_list_element): Add field func. * cli/cli-decode.h (struct cmd_list_element): Ditto. * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare. * cli/cli-decode.h: Ditto. * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc. (help_all, help_cmd_list): Ditto. (find_cmd, complete_on_cmdlist): Ditto. * top.c (execute_command): Ditto. * cli/cli-setshow.c (do_setshow_command): Call func instead of function.sfunc. * infcmd.c (notice_args_read): Fix function signature. * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc. * cli/cli-decode.c (add_set_cmd): Ditto. * utils.c (initialize_utils): Ditto. * maint.c (_initialize_maint_cmds): Ditto. * infrun.c (_initialize_infrun): Ditto. * demangle.c (_initialize_demangler): Ditto. * remote.c (add_packet_config_cmd): Ditto. * mips-tdep.c (_initialize_mips_tdep): Ditto. * cris-tdep.c (_initialize_cris_tdep): Ditto. * proc-api.c (_initialize_proc_api): Ditto. * kod.c (_initialize_kod): Ditto. * valprint.c (_initialize_valprint): Ditto. * top.c (init_main): Ditto. * infcmd.c (_initialize_infcmd): Ditto. * corefile.c (_initialize_core): Ditto. * arm-tdep.c (_initialize_arm_tdep): Ditto. * arch-utils.c (initialize_current_architecture): Ditto. (_initialize_gdbarch_utils): Ditto. * alpha-tdep.c (_initialize_alpha_tdep): Ditto. * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc. * wince.c (_initialize_inftarg): Ditto. * symfile.c (_initialize_symfile): Ditto. * mips-tdep.c (_initialize_mips_tdep): Ditto. * language.c (_initialize_language): Ditto. * arc-tdep.c (_initialize_arc_tdep): Ditto.
* * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.Andrew Cagney2002-02-041-13/+19
| | | | | Restore behavour broken by 2002-01-20 Andrew Cagney <ac131313@redhat.com> IEEE_FLOAT removal.
* Eliminate IEEE_FLOAT.Andrew Cagney2002-01-201-13/+12
|
* s/BIG_ENDIAN/BFD_ENDIAN_BIG/Andrew Cagney2002-01-051-6/+6
|
* Approved by Jim Blandy:Fred Fish2001-12-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 2001-12-11 Fred Fish <fnf@redhat.com> * c-typeprint.c (c_type_print_base): Use type flags access macros to test bits. * ch-typeprint.c (chill_type_print_base): Ditto. * ch-valprint.c (chill_val_print): Ditto. * d10v-tdep.c (d10v_pointer_to_address): Ditto. * dwarf2read.c (dwarf2_add_member_fn): Ditto. * dwarfread.c (read_structure_scope): Ditto. * gdbtypes.c (create_range_type): Dittol (create_set_type): Ditto. (check_typedef): Ditto. * jv-typeprint.c (java_type_print_base): Ditto. * p-typeprint.c (pascal_type_print_base): Ditto * p-valprint.c (pascal_val_print): Ditto. * stabsread.c (read_cfront_member_functions): Ditto. (read_member_functions): Ditto. (cleanup_undefined_types): Ditto. * valprint.c (val_print): Ditto. * valops.c (hand_function_call): Remove is_prototyped variable and just use type flag test macro directly.
* s/value_ptr/struct value */Andrew Cagney2001-11-101-1/+1
|
* Revert previous erroneous checkin.Christopher Faylor2001-10-201-1/+0
|
* * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin may notChristopher Faylor2001-10-201-0/+1
| | | | be able to read them in certain situations.
* * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)Andrew Cagney2001-08-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) (HOST_LONG_DOUBLE_FORMAT, DOUBLEST) (floatformat_to_doublest, floatformat_from_doublest) (floatformat_is_negative, floatformat_is_nan) (floatformat_mantissa, store_floating) (extract_floating): Move declaration from here. * doublest.h: To here. New file. * utils.c (get_field, floatformat_to_doublest, put_field) (ldfrexp, floatformat_from_doublest, floatformat_is_negative) (floatformat_is_nan, floatformat_mantissa) (FLOATFORMAT_CHAR_BIT): Move from here. * doublest.c: To here. New file. * findvar.c (store_floating, extract_floating): Move from here. * doublest.c: To here. * Makefile.in (SFILES): Add doublest.c. (COMMON_OBS): Add doublest.o. (doublest.o): Specify dependencies. (doublest_h): Define. * config/m88k/tm-m88k.h: Include "doublest.h". * config/i960/tm-i960.h: Ditto. * config/i386/tm-symmetry.h: Ditto. * rs6000-tdep.c, valarith.c: Ditto. * valprint.c, stabsread.c, sh-tdep.c: Ditto. * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto. * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto. * alpha-tdep.c, ax.h, expression.h: Ditto. * sh-tdep.c, parse.c, top.c, value.h: Ditto. * Makefile.in (arm-tdep.o): Add $(doublest_h). (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto. (rs6000-tdep.o, stabsread.o, valarith.o): Ditto. (values.o, valprint.o, arm-linux-tdep.o): Ditto. (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto. (parser_defs_h): Ditto. (expression_h): Add $(doublest_h) and $(symtab_h).
* malloc() -> xmalloc.Andrew Cagney2001-03-201-3/+1
| | | | Move malloc() decl to utils.c
* * defs.h: Provide prototypes for floatformat_is_negative,Mark Kettenis2001-03-071-77/+29
| | | | | | | | | | | | | floatformat_is_nan and floatformat_mantissa. * utils.c: Include "gdb_assert.h". (floatformat_is_negative): New function. (floatformat_is_nan): New function. (floatformat_mantissa): New function. * valprint.c: Include "floatformat.h". (print_floating): Get rid of the Linux-specific TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the help these new functions. Print NaN's in a format conforming to ISO C99.
* 2001-03-06 J.T. Conklin <jtc@redback.com>jimb_gnu_v3_branchpointJ.T. Conklin2001-03-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * symtab.h (decode_line_1): Removed declaration. * symfile.c (#include <assert.h>): Removed. * arch-utils.c (#include <ctype.h>): Removed. * c-typeprint.c: Likewise. * dbxread.c: Likewise. * gdbtypes.c: Likewise. * target.c: Likewise. * os9kread.c: Likewise. * c-valprint.c (#include "demangle.h"): Removed. * ch-typeprint.c: Likewise. * eval.c: Likewise. * f-typeprint.c: Likewise. * f-valprint.c: Likewise. * m2-typeprint.c: Likewise. * typeprint.c: Likewise. * p-typeprint.c: Likewise. * valarith.c: Likewise. * valprint.c: Likewise. * m2-typeprint.c (#include "gdb_string.h"): Removed. * nlmread.c: Likewise. * mdebugread.c (#include "gdb-stabs.h"): Removed. * minsyms.c: Likewise. * mipsread.c: Likewise. * nlmread.c: Likewise. * m2-typeprint.c (#include "obstack.h"): Removed. * m2-valprint.c: Likewise. * event-loop.c (#include <setjmp.h>): Removed.
* Update/correct copyright notices.Kevin Buettner2001-03-061-1/+2
|
* Replace calls to abort() with calls to internal_error().Kevin Buettner2001-02-251-5/+5
|
* Replace free() with xfree().Kevin Buettner2000-12-151-3/+3
|
* Protoization.Kevin Buettner2000-11-081-6/+3
|
* * eval.c (parse_and_eval_long): New function.David Taylor2000-10-301-1/+1
| | | | | | | | | | | | | | | | * value.h: Declare it. * breakpoint.c (breakpoints_info, maintenance_info_breakpoints): Call parse_and_eval_long, not parse_and_eval_address. * command.c (do_setshow_command): Ditto. * infcmd.c (step_1, signal_command, continue_command): Ditto. * infrun.c (signals_info): Ditto. * stack.c (set_backtrace_limit_command, backtrace_command_1, up_silently_base, down_silently_base): Ditto. * tracepoints.c (tracepoints_info, trace_find_command, trace_find_tracepoint_command): Ditto. * valprint.c (set_radix): Ditto. * values.c (show_values): Ditto.
* Protoization.gdb-post-protoization-2000-07-29Kevin Buettner2000-07-301-95/+33
|
* PARAMS removal.gdb-post-params-removal-2000-05-28Kevin Buettner2000-05-281-9/+9
|
* * gdbarch.sh: Make multi-arch variable defaults, defaults for non-Andrew Cagney2000-04-201-6/+0
| | | | | | | | | | multi-arch targets. (TARGET_BFD_VMA_BIT, IEEE_FLOAT, CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Update. * inferior.h (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Default provided by gdbarch. (CALL_DUMMY_P): Add FIXME. gdbarch should provide default. * valprint.c (IEEE_FLOAT): Default provided by gdbarch.
* Bring IEEE_FLOAT under gdbarch's control.Jim Blandy2000-04-141-70/+74
| | | | | | | | | | | | | | | | | * gdbarch.sh (IEEE_FLOAT): New entry. * gdbarch.c, gdbarch.h: Regenerated. * valprint.c (IEEE_FLOAT): Provide a default #definition for this. (print_floating): Use IEEE_FLOAT as if it were an expression; use the code specific to IEEE-format numbers whenever the value of IEEE_FLOAT is non-zero. * config/a29k/tm-a29k.h, config/alpha/tm-alpha.h, config/arc/tm-arc.h, config/arm/tm-arm.h, config/fr30/tm-fr30.h, config/h8300/tm-h8300.h, config/i386/tm-i386.h, config/i960/tm-i960.h, config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h, config/sparc/tm-sparc.h, config/delta/tm-delta.h, config/frv/tm-frv.h (IEEE_FLOAT): For all ports that #define IEEE_FLOAT, make sure they give it the value (1).
* Clean up compiler warnings:Jim Kingdon2000-02-081-1/+1
| | | | | | | | | | | | | * bcache.h, bcache.c, c-valprint.c, coffread.c, stabsread.c, stack.c, valprint.c: Change variables to unsigned. * bcache.c: Rearrange to avoid warnings about variables not being set. * c-lang.c, ch-lang.c, f-lang.c, m2-lang.c: Include valprint.h rather than declaring print_max and repeat_count_threashold ourselves (incorrectly). * valprint.h: Do declare repeat_count_threashold. * ch-exp.c: Use default case for internal error. * findvar.c: Don't omit argument type. * symtab.c: Remove unused variable.
* import gdb-2000-02-01 snapshotJason Molenda2000-02-021-16/+17
|
* import gdb-1999-10-18 snapshotJason Molenda1999-10-191-2/+46
|
* import gdb-1999-09-08 snapshotStan Shebs1999-09-091-5/+11
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-277/+290
|
* import gdb-19990422 snapshotStan Shebs1999-04-261-0/+3
|
* Initial revisionStan Shebs1999-04-161-0/+1567