summaryrefslogtreecommitdiff
path: root/gdb/value.c
Commit message (Collapse)AuthorAgeFilesLines
* * value.c (value_contents_writeable): Use value_contents_raw.Daniel Jacobowitz2005-08-021-1/+1
|
* * bsd-kvm.c (bsd_kvm_open): Properly cast sentinel in concat call.Mark Kettenis2005-07-041-1/+1
| | | | | | | | | | | | | | | * coffread.c (patch_type, process_coff_symbol): Likewise. * corelow.c (core_open): Likewise. * dwarf2read.c (dwarf_decode_lines, dwarf2_start_subfile): * language.c (set_lang_str, set_type_str, set_range_str) (set_case_str): Likewise. * source.c (add_path, openp): Likewise. * stabsread.c: Likewise. * top.c (init_history): Likewise. * utils.c (xfullpath): Likewise. * value.c (lookup_internalvar): Likewise. * cli/cli-cmds.c (cd_command): Likewise. * cli/cli-dump.c (add_dump_command): Likewise.
* 2005-05-09 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-05-091-12/+12
| | | | | | | | | | | | | | | Use gdb_byte in preference to bfd_byte. * gdbarch.sh: Update. * gdbarch.h, gdbarch.c: Re-generate. * ada-lang.c, ada-lang.h, ada-valprint.c, arch-utils.c: Update. * c-lang.c, c-lang.h, c-valprint.c, cp-valprint.c: Update. * f-lang.c, f-lang.h, f-valprint.c, gdbcore.h, jv-lang.h: Update. * jv-valprint.c, language.c, language.h, m2-lang.c: Update. * m2-lang.h, m2-valprint.c, objc-lang.c, p-lang.c: Update. * p-lang.h, p-valprint.c, regcache.c, scm-lang.c: Update. * scm-lang.h, scm-valprint.c, target.c, target.h: Update. * tramp-frame.c, valarith.c, valops.c, valprint.c: Update. * valprint.h, value.c, value.h: Update.
* 2005-04-28 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-04-281-5/+5
| | | | | | | * valops.c (check_field): Make buffer a bfd_byte. * value.c (unpack_long, unpack_double, unpack_pointer) (unpack_field_as_long, modify_field): Ditto. * value.h: Update declarations.
* * value.h (value_contents_equal): New prototype.Mark Kettenis2005-02-201-0/+20
| | | | | | | | | | | * value.c (value_contents_equal): New function. * varobj.c: Include "exceptions.h" and "gdb_assert.h". Don't include <math.h>. (varobj_set_value): Initialize error to zero. (varobj_update): Rename error2 to error and initialize it to zero. Slightly change the wording of some comments. (my_value_equal): Reimplement using TRY_CATCH and value_contents_equal.
* 2005-02-14 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-141-5/+6
| | | | | | | | | | | | | | Mark up add_cmd. * arch-utils.c, avr-tdep.c, breakpoint.c, corefile.c: Update. * cp-abi.c, cp-namespace.c, cp-support.c, dummy-frame.c: Update. * exec.c, gnu-nat.c, go32-nat.c, hppa-tdep.c, infcmd.c: Update. * infrun.c, interps.c, macrocmd.c, maint.c, memattr.c: Update. * mips-tdep.c, ocd.c, osabi.c, printcmd.c, regcache.c: Update. * reggroups.c, remote-fileio.c, remote-rdi.c, remote.c: Update. * sol-thread.c, source.c, stack.c, symfile-mem.c: Update. * symfile.c, thread.c, tracepoint.c, valprint.c, value.c: Update. * win32-nat.c, cli/cli-cmds.c, cli/cli-dump.c: Update. * cli/cli-logging.c, tui/tui-regs.c: Update.
* 2005-02-11 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-121-6/+7
| | | | | | | | | | | | | | | | | | Mark up some of printf_filtered and printf_unfiltered. * ada-lang.c, annotate.c, arch-utils.c, breakpoint.c: Update. * corelow.c, cp-namespace.c, cp-support.c, dcache.c: Update. * demangle.c, dsrec.c, dwarf2read.c, dwarfread.c: Update. * event-loop.c, event-top.c, exec.c, f-valprint.c: Update. * gdbtypes.c, inf-loop.c, inf-ptrace.c, inf-ttrace.c: Update. * infcmd.c, inflow.c, infrun.c, inftarg.c, language.c: Update. * linespec.c, linux-nat.c, linux-thread-db.c, maint.c: Update. * mdebugread.c, memattr.c, monitor.c, objc-lang.c: Update. * ocd.c, osabi.c, printcmd.c, procfs.c, regcache.c: Update. * remote.c, solib-som.c, solib.c, somsolib.c, source.c: Update. * stack.c, symfile.c, symmisc.c, target.c, thread.c: Update. * top.c, utils.c, valprint.c, value.c, cli/cli-cmds.c: Update. * cli/cli-dump.c, cli/cli-logging.c, tui/tui-hooks.c: Update. * tui/tui-regs.c, tui/tui-win.c: Update.
* 2005-02-10 Andrew Cagney <cagney@gnu.org>gdb-post-i18n-errorwarning-20050211Andrew Cagney2005-02-111-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mark up all error and warning messages. * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update. * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update. * core-aout.c, core-regset.c, corefile.c, corelow.c: Update. * cp-abi.c, cp-support.c, cp-valprint.c, cris-tdep.c: Update. * dbxread.c, demangle.c, doublest.c, dsrec.c: Update. * dve3900-rom.c, dwarf2expr.c, dwarf2loc.c: Update. * dwarf2read.c, dwarfread.c, elfread.c, eval.c: Update. * event-top.c, exec.c, expprint.c, f-lang.c: Update. * f-typeprint.c, f-valprint.c, fbsd-nat.c, findvar.c: Update. * frame.c, frv-linux-tdep.c, gcore.c, gdbtypes.c: Update. * gnu-nat.c, gnu-v2-abi.c, gnu-v3-abi.c, go32-nat.c: Update. * hpacc-abi.c, hppa-hpux-nat.c, hppa-hpux-tdep.c: Update. * hppa-linux-nat.c, hppa-linux-tdep.c, hppa-tdep.c: Update. * hpread.c, hpux-thread.c, i386-linux-nat.c: Update. * i386-linux-tdep.c, i386-tdep.c, i386bsd-nat.c: Update. * i386gnu-nat.c, i387-tdep.c, ia64-linux-nat.c: Update. * ia64-tdep.c, inf-child.c, inf-ptrace.c, inf-ttrace.c: Update. * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update. * inftarg.c, interps.c, irix5-nat.c, jv-lang.c: Update. * kod-cisco.c, kod.c, language.c, libunwind-frame.c: Update. * linespec.c, linux-nat.c, linux-thread-db.c, m2-lang.c: Update. * m32r-rom.c, m68hc11-tdep.c, m68k-tdep.c: Update. * m68klinux-nat.c, macrocmd.c, macroexp.c, main.c: Update. * maint.c, mdebugread.c, mem-break.c, memattr.c: Update. * mips-linux-tdep.c, mips-tdep.c, mipsread.c, monitor.c: Update. * nlmread.c, nto-procfs.c, objc-lang.c, objfiles.c: Update. * observer.c, ocd.c, p-lang.c, p-typeprint.c: Update. * p-valprint.c, pa64solib.c, parse.c, ppc-linux-tdep.c: Update. * ppcnbsd-tdep.c, printcmd.c, procfs.c, remote-e7000.c: Update. * remote-fileio.c, remote-m32r-sdi.c, remote-rdi.c: Update. * remote-rdp.c, remote-sim.c, remote-st.c: Update. * remote-utils.c, remote-utils.h, remote.c: Update. * rom68k-rom.c, rs6000-nat.c, s390-tdep.c, scm-lang.c: Update. * ser-e7kpc.c, ser-tcp.c, ser-unix.c, sh-tdep.c: Update. * sh3-rom.c, shnbsd-tdep.c, sol-thread.c, solib-aix5.c: Update. * solib-frv.c, solib-irix.c, solib-osf.c, solib-pa64.c: Update. * solib-som.c, solib-sunos.c, solib-svr4.c, solib.c: Update. * somread.c, somsolib.c, source.c, stabsread.c: Update. * stack.c, std-regs.c, symfile-mem.c, symfile.c: Update. * symmisc.c, symtab.c, target.c, thread.c, top.c: Update. * tracepoint.c, trad-frame.c, typeprint.c, utils.c: Update. * uw-thread.c, valarith.c, valops.c, valprint.c: Update. * value.c, varobj.c, version.in, win32-nat.c, wince.c: Update. * xcoffread.c, xcoffsolib.c, cli/cli-cmds.c: Update. * cli/cli-decode.c, cli/cli-dump.c, cli/cli-logging.c: Update. * cli/cli-script.c, cli/cli-setshow.c, mi/mi-cmd-break.c: Update. * mi/mi-cmd-disas.c, mi/mi-cmd-env.c, mi/mi-cmd-file.c: Update. * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-getopt.c: Update. * mi/mi-symbol-cmds.c, tui/tui-layout.c, tui/tui-stack.c: Update. * tui/tui-win.c: Update.
* 2005-02-08 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-081-0/+133
| | | | | | * value.c (struct value): Move to here ... * value.h (struct value): ... from here. Copy comments to corresponding function declarations, re-order.
* 2005-02-07 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-081-0/+10
| | | | | | * value.c (set_value_bitpos, set_value_bitsize): Define. * value.h (set_value_bitpos, set_value_bitsize): Declare. * ada-lang.c, valarith.c: Update.
* 2005-02-07 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-081-0/+5
| | | | | | | * value.h (set_value_offset): Declare. * value.c (set_value_offset): Declare. * gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update. * findvar.c: Update.
* 2005-02-07 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-081-0/+6
| | | | | | * value.h (value_next): Declare. * value.c (value_next): Define. * breakpoint.c: Update.
* 2005-02-07 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-081-4/+11
| | | | | | | | * value.h (deprecated_set_value_modifiable) (deprecated_value_modifiable): Declare. * value.c (deprecated_set_value_modifiable): Define. (deprecated_value_modifiable): Define. * ada-lang.c, valops.c, breakpoint.c, tracepoint.c: Update.
* 2005-02-07 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-071-0/+9
| | | | | | | | | * value.h (deprecated_set_value_type): Declare. * value.c (deprecated_set_value_type): Define. * hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update. * c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update. * infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update. * ax-gdb.c, tracepoint.c: Update.
* 2005-02-07 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-071-0/+30
| | | | | | | | | | | | | * value.h (deprecated_value_lval_hack) (deprecated_value_address_hack) (deprecated_value_internalvar_hack_hack) (deprecated_value_regnum_hack): Declare. (VALUE_LVAL, VALUE_ADDRESS, VALUE_INTERNALVAR) (VALUE_FRAME_ID, VALUE_REGNUM): Use. * value.c (deprecated_value_lval_hack) (deprecated_value_address_hack) (deprecated_value_internalvar_hack_hack) (deprecated_value_regnum_hack): Define.
* 2005-02-07 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-071-2/+14
| | | | | | | | * value.h (VALUE_POINTED_TO_OFFSET): Delete. (set_value_pointed_to_offset, value_pointed_to_offset): Declare. * value.c (set_value_pointed_to_offset): Define (value_pointed_to_offset): Define. * valops.c: Update.
* 2005-02-07 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-071-7/+17
| | | | | | | | | * value.h (value_embedded_offset): Delete. (value_embedded_offset): Declare. * value.c (value_embedded_offset): Define. * valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update. * gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update. * cp-abi.h: Update.
* 2005-02-07 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-071-2/+8
| | | | | | | | * value.h (VALUE_LAZY): Delete (set_value_lazy): Declare. * value.c (set_value_lazy): Define. * valops.c, valarith.c, jv-valprint.c, jv-lang.c: Update. * gnu-v2-abi.c, findvar.c, dwarf2loc.c, ada-lang.c: Update.
* 2005-02-06 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-071-2/+13
| | | | | | | * value.h (VALUE_OPTIMIZED_OUT): Delete. (value_optimized_out, set_value_optimized_out): Declare. * value.c (set_value_optimized_out, value_optimized_out): Define. * valprint.c, findvar.c, dwarf2loc.c: Update.
* 2005-02-06 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-071-8/+22
| | | | | | | | | | | | | | | | | | | * value.c (value_contents, value_contents_writeable): New functions. * value.h (VALUE_CONTENTS): Delete macro. (value_contents, value_contents_writeable): Declare. * xstormy16-tdep.c, value.c, valops.c, valarith.c: Update. * stack.c, sparc-tdep.c, sparc64-tdep.c, sh-tdep.c: Update. * sh64-tdep.c, scm-valprint.c, scm-exp.c, s390-tdep.c: Update. * rs6000-tdep.c, p-valprint.c, printcmd.c: Update. * ppc-sysv-tdep.c, mips-tdep.c, mi/mi-main.c: Update. * m88k-tdep.c, m68hc11-tdep.c, m32r-tdep.c: Update. * jv-valprint.c, ia64-tdep.c, hppa-tdep.c: Update. * hpacc-abi.c, f-valprint.c, frv-tdep.c, eval.c: Update. * c-valprint.c, cris-tdep.c, cp-valprint.c: Update. * cli/cli-dump.c, breakpoint.c, avr-tdep.c, arm-tdep.c: Update. * arm-linux-tdep.c, amd64-tdep.c, alpha-tdep.c: Update. * ada-valprint.c, ada-lang.c: Update.
* 2005-02-03 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-061-1/+1
| | | | | | | | * utils.c (xzalloc): New function. * defs.h (XZALLOC): Use xzalloc. (xzalloc): Declare. * value.c (allocate_value): Allocate a zeroed buffer. * mdebugread.c (xzalloc): Delete.
* 2005-02-02 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-021-8/+14
| | | | | | * value.h (value_lazy): Declare. * varobj.c, value.c, valops.c, valarith.c, printcmd.c: Update. * cp-valprint.c, breakpoint.c, ada-lang.c: Update.
* 2005-02-02 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-021-0/+8
| | | | | | | | * value.h (VALUE_CONTENTS_ALL): Delete. (value_contents_all): Declare. * value.c (value_contents_all): New function. * hpacc-abi.c, cp-valprint.c, valops.c, c-valprint.c: Update. * m68k-tdep.c, i386-tdep.c, infcall.c, valops.c: Update.
* 2005-02-02 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-021-8/+14
| | | | | | | | * value.c (value_enclosing_type): New function. * value.h (VALUE_ENCLOSING_TYPE): Delete. (value_enclosing_type): Declare. * xstormy16-tdep.c, vax-tdep.c, m68k-tdep.c, i386-tdep.c: Update. * gnu-v3-abi.c, hpacc-abi.c, infcall.c, valops.c: Update.
* 2005-02-01 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-02-021-11/+24
| | | | | | | | | | * value.c (value_contents_all_raw) (value_contents_raw): New functions. * value.h (VALUE_CONTENTS_ALL_RAW, VALUE_CONTENTS_RAW): Delete. (value_contents_raw, value_contents_all_raw): Declare functions. (VALUE_CONTENTS, VALUE_CONTENTS_ALL): Update. * std-regs.c, valarith.c, valops.c, eval.c: Update. * tracepoint.c, findvar.c: Update.
* 2005-01-27 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-01-271-3/+4
| | | | | | | | * gdbarch.sh (integer_to_address): Change buf parameter to a const bfd_byte, make pure-multi-arch. * gdbarch.h, gdbarch.c: Regenerate. * mips-tdep.c (mips_integer_to_address): Update. * value.c (value_as_address): Update.
* 2004-11-15 Andrew Cagney <cagney@gnu.org>Andrew Cagney2004-11-151-0/+1
| | | | | | | * findvar.c (value_of_register): Set the frame ID. * value.c (value_primitive_field): Copy the frame ID. * valops.c (value_assign): Simplify lval_register case, there's always a frame.
* 2004-11-12 Andrew Cagney <cagney@gnu.org>Andrew Cagney2004-11-131-3/+3
| | | | | | | | | Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM. * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete. (VALUE_REGNUM): Define. (struct value): Delete location.regnum, rename "regno" to "regnum". * value.c, valops.c, valarith.c, findvar.c: Update.
* 2004-11-12 Andrew Cagney <cagney@gnu.org>Andrew Cagney2004-11-121-38/+64
| | | | | | | | | | | | | | | | | * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE) (VALUE_BITPOS): Delete. (value_type, value_offset, value_bitsize, value_bitpos): Declare. * value.c (value_type, value_offset, value_bitpos) (value_bitsize): New functions. Update references. * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update. * f-valprint.c, cp-valprint.c, c-valprint.c: Update. * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update. * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update. * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update. * infcall.c, linespec.c, printcmd.c, valarith.c: Update. * valops.c, eval.c, findvar.c, breakpoint.c: Update. * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c: * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
* 2004-11-10 Andrew Cagney <cagney@gnu.org>Andrew Cagney2004-11-101-2/+41
| | | | | | | | | | | | | | | | | | * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM) (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace macros with function declarations. * value.c (coerce_ref, coerce_array, coerce_number) (coerce_enum): New functions. (value_as_long, value_as_address): Update. * ada-lang.c (ada_coerce_ref, ada_value_binop) (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update. * jv-lang.c (evaluate_subexp_java): Update. * valarith.c (value_less, value_neg, value_complement) (value_binop, value_add, value_subscript, value_x_binop) (value_logical_not, value_sub): Update. * valops.c (check_field, value_struct_elt, value_ind) (value_find_oload_method_list, value_cast, value_assign): Update. * eval.c (evaluate_subexp_standard): Update.
* 2004-11-09 Andrew Cagney <cagney@gnu.org>Andrew Cagney2004-11-091-0/+1267
* values.c: Rename to ... * value.c: ..., new file. * Makefile.in: Update.