summaryrefslogtreecommitdiff
path: root/gdb/valops.c
Commit message (Collapse)AuthorAgeFilesLines
* A single-file branch to help me keep things straight while adaptingjimb_gnu_v3_branchcvs/jimb_gnu_v3_branchJim Blandy2001-03-241-3648/+0
| | | | | | GDB to the GNU V3 C++ ABI. * c-typeprint.c: Commit Dan Berlin's changes.
* Update/correct copyright notices.Kevin Buettner2001-03-061-2/+2
|
* Create new file regcache.h. Update all uses.Andrew Cagney2001-03-011-2/+3
|
* 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>Michael Snyder2001-02-061-3/+3
| | | | | | | | | | | | | | Submitted by Paul Hilfinger (hilfingr@gnat.com) and Andrei Petrov (and@genesyslab.com). * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES must be allocated dynamically, since these are no longer constants. * infcmd.c: Ditto. * regcache.c: Ditto. * remote.c: Ditto. * sol-thread.c: Ditto. * valops.c: Ditto. * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a work-around for a missing Sun header file in solaris for sparc64.
* * valops.c (value_cast): If casting a scalar to a pointer, do notDavid Taylor2001-02-061-4/+15
| | | | | | | | | | issue a message about truncation unless it exceeds the length of an address, not the length of a pointer. This is because what the user gives us is an address, not a pointer, and we will ultimately convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it to a pointer. This allows things like "print *(int *)0x01000234" to work without generating a misleading message on a target having two byte pointers and four byte addresses.
* * valops.c (VALUE_SUBSTRING_START): Delete.Nicholas Duffek2001-01-041-2/+0
|
* Replace free() with xfree().Kevin Buettner2000-12-151-2/+2
|
* Protoization.Kevin Buettner2000-11-081-4/+1
|
* * arch-utils.c, arch-utils.h (default_convert_from_func_ptr_addr):Peter Schauer2000-10-261-5/+0
| | | | | | | | | | | | | | | | New function. * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Add. * gdbarch.c, gdbarch.h: Regenerate. * valops.c (find_function_addr): Use CONVERT_FROM_FUNC_PTR_ADDR unconditionally. * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): Delete definition. * config/powerpc/tm-linux.h (CONVERT_FROM_FUNC_PTR_ADDR): Remove undef. * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Fix comment. (rs6000_gdbarch_init): Register rs6000_convert_from_func_ptr_addr if not ELFOSABI_LINUX.
* 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2000-08-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | * valops.c (value_cast): Indentation fix-up. * acconfig.h (HAVE_PRGREGSET32_T, HAVE_PRFPREGSET32_T, HAVE_STRUCT_LINK_MAP32): New configure macros. * config.in: Ditto. * configure.in: Test for the above new macros. * breakpoint.c: Update copyright date. * core-sol2.c: Include v9/sys/privregs.h directly to work around a bug in Sun's Solaris 8 header files. (fetch_core_registers): Use the above new configure macros to handle cross-debugging of 32-bit core files on a 64-bit host. * sol-thread.c (ps_pdmodel) New function. (rw_common): For debugging of 32-bit apps on a 64-bit host, truncate addresses to 32 bits. * solib.c (solib_extract_address): Functionize. Make 32/64 aware. (LM_ADDR, LM_NEXT, LM_NAME): Ditto. (IGNORE_FIRST_LINK_MAP): Ditto. (first_link_map_member): Make 32/64 aware. (open_symbol_file_object): Ditto. (current_sos): Ditto.
* Multi-arch EXTRA_STACK_ALIGNMENT_NEEDED (nee NO_EXTRA_ALIGNMENT_NEEDED).Andrew Cagney2000-08-041-20/+20
|
* Protoization.gdb-post-protoization-2000-07-29Kevin Buettner2000-07-301-175/+61
|
* modify error messageDaniel Berlin2000-07-171-4/+4
|
* Properly handle referencesDaniel Berlin2000-07-151-12/+22
|
* * valops.c (value_cast): Allow cast from INT, ENUM or RANGE toAndrew Cagney2000-07-121-0/+14
| | | | POINTER.
* * gdbtypes.c (is_ancestor): Infer type equivalence from nameNicholas Duffek2000-07-091-19/+15
| | | | | | | | | equivalence. (rank_one_type): Use strcmp instead of == to compare type names. Don't swap parm with arg when checking TYPE_CODE_REF types. * valops.c (find_overload_match): Fix indentation. Compare parameter rankings to 0..9, 10..99, and 100+ instead of 0, 10, and 100.
* 2000-06-15 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2000-06-151-2/+4
| | | | * valops.c (value_cast): Break up long lines.
* 2000-06-12 Fernando Nasser <fnasser@cygnus.com>Fernando Nasser2000-06-121-1/+2
| | | | | * valops.c (value_assign): Adjust the length to take into consideration that we are not starting from the beginning.
* PARAMS removal.gdb-post-params-removal-2000-05-28Kevin Buettner2000-05-281-15/+20
|
* Purge (almost) make_cleanup_func.Andrew Cagney2000-05-221-2/+1
|
* * target.h (target_memory_bfd_section): Removed declaration.J.T. Conklin2000-05-201-3/+3
| | | | | | | | | | | | | | | | | | | * target.c (target_memory_bfd_section): Removed. * exec.c (xfer_memory): Removed #if'ed-out code which referenced target_memory_bfd_section. * target.h (target_read_memory_section): Removed declaration. * target.c (target_read_memory_section): Removed. (target_xfer_memory): Update, removed bfd_section argument. (target_read_string, target_read_memory, target_write_memory): Update for above change. * gdbcore.h (read_memory_section): Removed declaration. * corefile.c (read_memory_section): Removed. * jv-lang.c (get_java_utf8_name): Changed calls to read_memory_section to read_memory. * printcmd.c (printf_command): Likewise. * valops.c (value_at, value_fetch_lazy): Likewise.
* Convert SAVE_DUMMY_FRAME_TOS to multi-arch.Andrew Cagney2000-05-151-3/+2
|
* Convert REG_STRUCT_HAS_ADDR to multi-arch. Use REG_STRUCT_HAS_ADDR_PAndrew Cagney2000-04-221-66/+66
| | | | in conversion.
* * valops.c (hand_function_call): Replace #ifdef STACK_ALIGN withAndrew Cagney2000-04-211-20/+15
| | | | | | | run-time test for STACK_ALIGN_P. * gdbarch.sh: Add support for function and variable predicates. (STACK_ALIGN): Add. Implement with predicate - STACK_ALIGN_P. * gdbarch.h, gdbarch.c: Re-generate.
* * remote.c (REMOTE_TRANSLATE_XFER_ADDRESS), mem-break.cAndrew Cagney2000-04-171-12/+0
| | | | | | | | | | | | | | | | | | | | | | (MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT), target.h (BREAKPOINT_FROM_PC), valops.c (COERCE_FLOAT_TO_DOUBLE), gdbarch.sh (D10V_MAKE_DADDR, D10V_MAKE_IADDR, FRAMELESS_FUNCTION_INVOCATION, REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, REGISTER_NAME), findvar.c (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Delete default definition. Handled by gdbarch. * gdbarch.sh: Make multi-arch defaults, defaults for non- multi-arch targets. (REGISTER_NAME, COERCE_FLOAT_TO_DOUBLE, REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, D10V_MAKE_DADDR, D10V_MAKE_IADDR, BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT, REMOTE_TRANSLATE_XFER_ADDRESS, FRAMELESS_FUNCTION_INVOCATION): Provide default/legacy implementation. (REGISTER_NAMES, CALL_DUMMY): Allow legacy definition. * gdbarch.h, gdbarch.c: Re-generate.
* * gdbarch.sh (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Two newJim Blandy2000-04-141-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | functions which architectures can redefine, defaulting to generic_pointer_to_address and generic_address_to_pointer. * findvar.c (extract_typed_address, store_typed_address, generic_pointer_to_address, generic_address_to_pointer): New functions. (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Provide default definitions. (extract_address, store_address): Doc fixes. * values.c (value_as_pointer): Doc fix. (value_from_pointer): New function. * defs.h (extract_typed_address, store_typed_address): New declarations. * inferior.h (generic_address_to_pointer, generic_pointer_to_address): New declarations. * value.h (value_from_pointer): New declaration. * ax-gdb.c (const_var_ref): Use value_from_pointer, not value_from_longest. * blockframe.c (generic_push_dummy_frame): Use read_pc and read_sp, not read_register. * c-valprint.c (c_val_print): Use extract_typed_address instead of extract_address to extract vtable entries and references. * cp-valprint.c (cp_print_value_fields): Use value_from_pointer instead of value_from_longest to extract the vtable's address. * eval.c (evaluate_subexp_standard): Use value_from_pointer instead of value_from_longest to compute `this', and for doing pointer-to-member dereferencing. * findvar.c (read_register): Use extract_unsigned_integer, not extract_address. (read_var_value): Use store_typed_address instead of store_address for building label values. (locate_var_value): Use value_from_pointer instead of value_from_longest. * hppa-tdep.c (find_stub_with_shl_get): Use value_from_pointer, instead of value_from_longest, to build arguments to __d_shl_get. * printcmd.c (set_next_address): Use value_from_pointer, not value_from_longest. (x_command): Use value_from_pointer, not value_from_longest. * tracepoint.c (set_traceframe_context): Use value_from_pointer, not value_from_longest. * valarith.c (value_add, value_sub): Use value_from_pointer, not value_from_longest. * valops.c (find_function_in_inferior, value_coerce_array, value_coerce_function, value_addr, hand_function_call): Same. * value.h (COERCE_REF): Use unpack_pointer, not unpack_long. * values.c (unpack_long): Use extract_typed_address to produce addresses from pointers and references, not extract_address. (value_from_longest): Use store_typed_address instead of store_address to produce pointer and reference values.
* Compare VALUE_ADDRESS() return value with ZERO not NULL.Andrew Cagney2000-04-091-1/+1
|
* C++ changes for 5.0, finally committed.Daniel Berlin2000-04-041-114/+212
|
* From Daniel Berlin:Andrew Cagney2000-03-131-13/+59
| | | | Fix C++ overloading, add support for seeing through references.
* Revert: ``Fix C++ overload support, see through references''.Andrew Cagney2000-03-131-131/+89
| | | | Change also contained numerous white-space changes.
* Fix C++ overload support, see through referencesDaniel Berlin2000-03-101-89/+131
|
* 2000-02-23 Fernando Nasser <fnasser@cygnus.com>Fernando Nasser2000-02-231-8/+50
| | | | | | * infcmd.c (run_stack_dummy): Do not pop frame on random signal. * valops.c (_initialize_valops): Add command "set unwindonsignal". (hand_function_call): Test for unwind_on_signal and act accordingly.
* Bring COERCE_FLOAT_TO_DOUBLE under gdbarch's control.Jim Blandy2000-02-221-10/+41
| | | | | | | | | | | | | | | | | | | * valops.c (COERCE_FLOAT_TO_DOUBLE): Rework definition to be more function-like. (default_coerce_float_to_double, standard_coerce_float_to_double): New functions. (value_arg_coerce): Adjust for new definition. * value.h (default_coerce_float_to_double, standard_coerce_float_to_double): New declarations for the above. * gdbarch.sh (coerce_float_to_double): New entry, replacing macro. * gdbarch.c, gdbarch.h: Regenerated. * tm-alpha.h, tm-fr30.h, tm-m32r.h, tm-mips.h, tm-hppa.h, tm-rs6000.h, tm-sh.h, tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Change definitions. * mips-tdep.c (mips_coerce_float_to_double): Supply our own custom function here. (mips_gdbarch_init): Install that as our coerce_float_to_double function.
* import gdb-2000-01-31 snapshotJason Molenda2000-02-011-2/+23
|
* import gdb-1999-12-06 snapshotJason Molenda1999-12-071-2/+2
|
* import gdb-1999-10-18 snapshotJason Molenda1999-10-191-1/+9
|
* import gdb-1999-10-11 snapshotJason Molenda1999-10-121-5/+23
|
* import gdb-1999-09-21Jason Molenda1999-09-221-8/+0
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-569/+583
|
* import gdb-1999-07-05 snapshotJason Molenda1999-07-051-0/+4
|
* import gdb-1999-06-01 snapshotJason Molenda1999-06-011-4/+3
|
* import gdb-1999-05-25 snapshotJason Molenda1999-05-251-14/+21
|
* import gdb-19990422 snapshotStan Shebs1999-04-261-94/+104
|
* Initial revisionStan Shebs1999-04-161-0/+3461