summaryrefslogtreecommitdiff
path: root/gdb/findvar.c
Commit message (Collapse)AuthorAgeFilesLines
* Update/correct copyright notices.Kevin Buettner2001-03-061-1/+2
|
* Create new file regcache.h. Update all uses.Andrew Cagney2001-03-011-0/+1
|
* Add __FILE__ and __LINE__ parameter to internal_error() /Andrew Cagney2001-02-081-5/+9
| | | | internal_verror().
* 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>Michael Snyder2001-02-061-4/+4
| | | | | | | | | | | | | | 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.
* Protoization.gdb-post-protoization-2000-07-29Kevin Buettner2000-07-301-14/+5
|
* 2000-07-07 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2000-07-101-810/+5
| | | | | | | | | | | | | | | | | | | | * findvar.c (_initialize_findvar, build_findvar, write_fp, read_fp, generic_target_write_fp, generic_target_read_fp, write_sp, read_sp, generic_target_write_sp, generic_target_read_sp, write_pc, read_pc, generic_target_write_pc, generic_target_read_pc, write_pc_pid, read_pc_pid, supply_register, write_register_pid, write_register, read_register_pid, read_register, write_register_bytes, read_register_bytes, write_register_gen, read_register_gen, registers_fetched, registers_changed, find_saved_register, read_relative_register_raw_bytes, default_get_saved_register, read_relative_register_raw_bytes_for_frame, get_saved_register): Move from this file into new file regcache.c. (register_valid, registers_pid, registers): Ditto. * regcache.c: New file to hold the register cache. (register_cached): New function to read register_valid array. * value.h (register_cached): Declare. * defs.h (default_get_saved_register): Delete decl of static function. * Makefile.in: Add regcache module.
* Add host_pointer_to_address() and address_to_host_pointer(). AddAndrew Cagney2000-06-041-2/+12
| | | | | signed_pointer_to_address() etc. Rename generic_pointer_to_address() to unsigned_pointer_to_address() etc.
* PARAMS removal.gdb-post-params-removal-2000-05-28Kevin Buettner2000-05-281-7/+7
|
* 2000-05-24 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2000-05-241-18/+14
| | | | * findvar.c (value_from_register): Factor code, simplify logic.
* Multi-arch NPC_REGNUM NNPC_REGNUM.Andrew Cagney2000-05-021-4/+0
|
* 2000-04-27 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2000-04-271-3/+6
| | | | | | | | | | * jv-valprint.c (java_val_print): Add arg declaration, fix compiler warning. * corelow.c (core_open): Call set_gdbarch_from_file so that gdbarch becomes aware of the architecture encoded in the corefile. * findvar.c (write_register_gen): Export this useful interface. * value.h (write_register_gen): Declare.
* * remote.c (REMOTE_TRANSLATE_XFER_ADDRESS), mem-break.cAndrew Cagney2000-04-171-8/+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.
* * findvar.c (store_typed_address, extract_typed_address): FixJim Blandy2000-04-161-2/+2
| | | | function names in error messages.
* * gdbarch.sh (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Two newJim Blandy2000-04-141-12/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 2000-03-29 Mark Kettenis <kettenis@gnu.org>Mark Kettenis2000-03-311-8/+0
| | | | | | * findvar.c (extract_floating): Remove reference to TARGET_EXTRACT_FLOATING. (store_floating): Remove reference to TARGET_STORE_FLOATING.
* Convert extract/store functions to ISO-C.Andrew Cagney2000-03-041-26/+8
|
* Fixes for extract_floating() and store_floating().Kevin Buettner2000-03-021-13/+8
|
* 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-01-31 snapshotJason Molenda2000-02-011-0/+27
|
* import gdb-1999-12-06 snapshotJason Molenda1999-12-071-62/+42
|
* import gdb-1999-09-08 snapshotStan Shebs1999-09-091-0/+8
|
* import gdb-1999-08-09 snapshotJason Molenda1999-08-091-10/+12
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-104/+112
|
* import gdb-1999-06-14 snapshotJason Molenda1999-06-141-28/+118
|
* import gdb-1999-05-25 snapshotJason Molenda1999-05-251-11/+6
|
* import gdb-19990422 snapshotStan Shebs1999-04-261-30/+48
|
* Initial revisionStan Shebs1999-04-161-0/+1630