Commit Graph

12241 Commits

Author SHA1 Message Date
Stephane Carrez 5706502aab * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
(M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
	(m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
	registers.
	(m68hc11_register_raw_size): Likewise.
2002-08-13 16:19:22 +00:00
Andrew Cagney 28fc674094 2002-08-13 Andrew Cagney <cagney@redhat.com>
* i386-tdep.c (i386_register_name): Handle mmx registers.
(mmx_regnum_p): New function.
(i386_mmx_names): New array.
(mmx_num_regs): New variable.
(i386_pseudo_register_read): New function.
(i386_pseudo_register_write): New function.
(mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.

* regcache.c (regcache_raw_read_unsigned): New function.
(regcache_raw_read_signed): New function.
* regcache.h (regcache_raw_read_unsigned): Declare.
(regcache_raw_read_signed): Declare.
2002-08-13 14:32:28 +00:00
Andrew Cagney a378f41926 2002-08-12 Andrew Cagney <cagney@redhat.com>
* regcache.c (regcache_raw_read_as_address): Delete function.
(regcache_cooked_read_signed): New function.
(regcache_cooked_read_unsigned): New function.
* regcache.h (regcache_cooked_read_signed): Declare.
(regcache_cooked_read_unsigned): Declare.
(regcache_raw_read_as_address): Delete declaration.
* blockframe.c (generic_read_register_dummy): Use
regcache_cooked_read_unsigned.
* i386-tdep.c (i386_extract_struct_value_address): Use
regcache_cooked_read_unsigned.
2002-08-13 13:58:50 +00:00
Stephane Carrez 81967506b7 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
double sizes according to ELF ABI flags.
	(gdbarch_tdep): Record elf_flags.
2002-08-13 13:10:42 +00:00
Stephane Carrez ffe1f3ee3f * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
(m6812_prolog): They can appear in 68HC12 function prologue.
	(m68hc11_frame_chain): Cleanup.
2002-08-13 11:03:42 +00:00
gdbadmin 8e7157081c *** empty log message *** 2002-08-13 00:00:33 +00:00
Andrew Cagney 98216c5d02 2002-08-12 Andrew Cagney <cagney@redhat.com>
* i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
declarations.
* i386-linux-tdep.c (i386_linux_register_byte): Delete function.
(i386_linux_register_raw_size): Delete function.
i386_linux_init_abi): Update.
* i386-tdep.c (i386_register_raw_size): Delete function.
(i386_register_byte): Delete function.
(i386_gdbarch_init): Update.
(i386_register_size): Delete array.
(i386_register_offset): Delete array.

* config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
(REGISTER_RAW_SIZE): Delete macro.
* config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
(REGISTER_BYTE): Delete macro.
2002-08-12 19:05:33 +00:00
gdbadmin cf1d5986d8 *** empty log message *** 2002-08-12 00:00:32 +00:00
Aidan Skinner 3b19021e44 * ada-lang.c (ada_lookup_partial_symbol)
(to_fixed_variant_branch_type) (find_line_in_linetable): Fix
	prototype names so that grep ^func works properly.

	* ada-lang.c (ada_array_element_type)
	(ada_lookup_partial_symbol): Fix typos in parameter list.

	* ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
	Fix prototype names so that grep ^func works properly.
2002-08-11 18:15:49 +00:00
gdbadmin 661757b496 *** empty log message *** 2002-08-11 00:00:33 +00:00
Andrew Cagney b063e7a269 2002-08-10 Andrew Cagney <cagney@redhat.com>
Elena Zannoni  <ezannoni@redhat.com>
            Martin M. Hunt  <hunt@redhat.com>

* gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
(build_builtin_type_vec128i): Set the vector bit.
* gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
* gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
(build_builtin_type_vec64): New function.
(build_builtin_type_vec64i): New function.
(build_gdbtypes): Initialize builtin_type_vec64 and
builtin_type_vec64i.
2002-08-10 05:12:40 +00:00
Andrew Cagney a7e3c2ad4b 2002-08-09 Andrew Cagney <cagney@redhat.com>
* regcache.c (regcache_dump): Compare the register offset
with REGISTER_BYTE.
* arch-utils.c (generic_register_byte): New function.
* arch-utils.h (generic_register_byte): Declare.
* gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
* gdbarch.h, gdbarch.c: Regenerate.
2002-08-10 02:00:16 +00:00
Michael Snyder 119d55d8e4 Oversights in previous checkin. 2002-08-10 01:09:11 +00:00
Andrew Cagney ee0cf7cc8a Shh, revert unintended commit. 2002-08-10 00:40:40 +00:00
Andrew Cagney af030b9af8 2002-08-09 Andrew Cagney <cagney@redhat.com>
* regcache.c: Include "gdbcmd.h"
(_initialize_regcache): Add commands "maintenance print
registers", "maintenance print raw-registers" and "maintenance
print cooked-registers".
(enum regcache_dump_what): Define.
(dump_endian_bytes): New function.
(regcache_dump): New function.
(regcache_print): New function.
(maintenance_print_registers): New function.
(maintenance_print_raw_registers): New function.
(maintenance_print_cooked_registers): New function.
* Makefile.in (regcache.o): Update dependencies.
2002-08-10 00:36:46 +00:00
Michael Snyder cb3d25d11f 2002-08-09 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
	(mips_push_arguments): Correct some comments.  Use paddr_nz
	for printing addresses in debug output.  Replace static
	allocation using MAX_REGISTER_RAW_SIZE with alloca.
	(mips_n32n64_push_arguments): New function, cloned from
	mips_push_arguments and tuned for the n32/n64 ABI.
	(mips_push_register): Buffer needs dynamic allocation.
	(mips_print_register): Ditto.
	(do_gp_register_row): Ditto.
	(mips_store_return_value): Ditto.
	(mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2002-08-10 00:34:04 +00:00
gdbadmin 94fdcfdc0a *** empty log message *** 2002-08-10 00:00:32 +00:00
Don Howard 2163ab9d5c 2002-08-09 Don Howard <dhoward@redhat.com>
* memattr.c (mem_info_command): Print special case of upper bound
        as max CORE_ADDR + 1.
2002-08-09 22:50:31 +00:00
Michael Snyder b78bcb188c 2002-08-08 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
	returns structs by ref if they're too big to fit in two registers.
2002-08-09 21:58:14 +00:00
Kevin Buettner c4ac3e633c Fix minor formatting problem in previous patch. 2002-08-09 20:38:49 +00:00
Kevin Buettner ffabd70d00 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
saved regs value.
	(read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
	mips_find_saved_regs().
	(mips_pop_frame): Likewise.
2002-08-09 20:30:20 +00:00
Kevin Buettner fbcdb4a3f0 * blockframe.c (frame_saved_regs_register_unwind): Revise
PC_IN_CALL_DUMMY assertion to only apply when generic dummy
	frames are in use.
2002-08-09 18:26:15 +00:00
Grace Sainsbury 3c3bea1c7e * remote.c: (remote_wait, remote_async_wait): Add check for awatch
T-packets; the 'a' is not taken as a register number.
	(remote_check_watch_resources, remote_stopped_by_watchpoint)
        (remote_stopped_data_address): New functions; add to target
        vector.
        (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
        prototypes to match other implementations of this
        function. replace integer argument with pointer -- the length
        field in the Z-packet is the length of what is pointed to or 1 if
        pointer is null. Add to target vector.
        (remote_insert_watchpoint, remote_remove_watchpoint): Add to
        target vector.

        From Mark Salter:
        * remote.c (remote_wait): Add support to extract optional
        watchpoint information from T-packet. Ignore unrecognized
        optional info in T-packet.
        (remote_async_wait): Ditto.
doc:
	From Mark Salter:
	* gdb.texinfo (Protocol): Document T packet extension to
	allow watchpoint address reporting.
2002-08-09 16:41:25 +00:00
Corinna Vinschen 5d1d95de0e * cli/cli-dump.c: Change fopen modes to use binary open modes
as defined in include/fopen-bin.h throughout.
2002-08-09 16:36:10 +00:00
Michael Snyder c86b5b3893 2002-08-08 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c: Minor whitespace and indentation clean-ups.
2002-08-09 01:42:41 +00:00
Kevin Buettner b30590dca4 * doublest.c (store_floating): Avoid floatformat_from_doublest()
assertion failure by returning early after a warning.
2002-08-09 00:45:10 +00:00
gdbadmin fd3f43685d *** empty log message *** 2002-08-09 00:00:02 +00:00
Kevin Buettner 498868ed65 Multiarch FRAME_INIT_SAVED_REGS for mips. 2002-08-08 23:42:26 +00:00
Kevin Buettner d28e01f471 * mips-tdep.c (mips_find_saved_regs): Make static.
(mips_frame_init_saved_regs): New function.
	(mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
	* config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
	(mips_find_saved_regs): Delete declaration.
2002-08-08 23:32:52 +00:00
Michael Snyder 7dc213a6bb 2002-08-06 Michael Snyder <msnyder@redhat.com>
* config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2002-08-08 22:44:46 +00:00
Grace Sainsbury b2dd631140 * remote.c (remote_wait, remote_async_wait): Change
thread_num from int to ULONGEST.
(unpack_varlen_hex): Change result parameter from
int * to ULONGEST *.
2002-08-08 19:45:50 +00:00
Andrew Cagney ea47855f18 2002-08-08 Andrew Cagney <ac131313@redhat.com>
* configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
powerpc*-*-*.
* MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2002-08-08 15:37:29 +00:00
Andrew Cagney 69db8baec7 2002-08-08 Andrew Cagney <cagney@redhat.com>
* gcore.c (override_derive_stack_segment): Delete variable.
(preempt_derive_stack_segment): Delete function.
(derive_stack_segment): Delete function.
(default_derive_stack_segment): Renamed to derive_stack_segment.
(override_derive_heap_segment): Delete variable.
(preempt_derive_heap_segment): Delete function.
(derive_heap_segment): Delete function.
(default_derive_heap_segment): Rename to derive_heap_segment.
2002-08-08 14:59:35 +00:00
Michael Snyder cb811fe799 2002-08-06 Michael Snyder <msnyder@redhat.com>
* config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
	* mips-tdep.c (mips_EABI_use_struct_convention,
	mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
	New functions.  (mips_use_struct_convention): Delete.
	(mips_gdbarch_init): set use_gdbarch_convention.
2002-08-08 00:26:51 +00:00
gdbadmin ff4d0f4f8e *** empty log message *** 2002-08-08 00:00:03 +00:00
Michael Snyder 8b389c40fe 2002-08-06 Michael Snyder <msnyder@redhat.com>
*  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
	(mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
	mips_o32_reg_struct_has_addr): New functions.
	(mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2002-08-07 18:17:26 +00:00
Andrew Cagney 5c27f28ad0 2002-08-07 Andrew Cagney <ac131313@redhat.com>
* regcache.c (pseudo_register): Delete function.
(fetch_register): Delete function.
(store_register): Delete function.
(regcache_raw_read, legacy_read_register_gen): Use
target_fetch_registers instead of fetch_register.
(legacy_write_register_gen, regcache_raw_write): Use
target_store_register instead of store_register.
(write_register_bytes): Ditto.

* gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
(STORE_PSEUDO_REGISTER): Delete.
* gdbarch.h, gdbarch.c: Regenerate.
2002-08-07 16:01:58 +00:00
Corinna Vinschen 5b3316750e * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
write dump file binary.
2002-08-07 08:52:24 +00:00
Michael Snyder 6acdf5c773 2002-08-05 Michael Snyder <msnyder@redhat.com>
*  mips-tdep.c (mips_find_saved_regs): Adjust stack according
	to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
	(mips_gdbarch_init): Set N32 target to be mips64.
2002-08-07 00:28:31 +00:00
gdbadmin d9f21e48eb *** empty log message *** 2002-08-07 00:00:02 +00:00
Kevin Buettner b2f01c350b * frame.c (find_saved_register): Break out of loop once saved
register address is found.  Don't mention sparc in loop comment
	anymore.
2002-08-06 22:42:56 +00:00
Kevin Buettner 63db558029 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
mips_default_saved_regsize to 8.
2002-08-06 19:03:40 +00:00
Andrew Cagney 5e34e75e9e 2002-08-06 Andrew Cagney <ac131313@redhat.com>
* gcore.c: Do not include <sys/procfs.h>.
* Makefile.in (gcore.o): Update dependencies.
2002-08-06 15:53:08 +00:00
Andrew Cagney eb4c54a288 2002-08-06 Andrew Cagney <cagney@redhat.com>
* configure.tgt: Make arc-*-* obsolete.
* NEWS: Mention that arc-*-* has been identifed as obsolete.
* MAINTAINERS: Make arc-elf obsolete.
* arc-tdep.c: Make file obsolete.
* config/arc/arc.mt: Ditto.
* config/arc/tm-arc.h: Ditto.
2002-08-06 14:12:47 +00:00
gdbadmin 0ebdfbbcd0 *** empty log message *** 2002-08-06 00:00:02 +00:00
Theodore A. Roth ced15480d0 * gdb/avr-tdep.c(avr_skip_prologue): Fix to return the correct pc. 2002-08-05 17:27:55 +00:00
Andrew Cagney b474382262 2002-08-05 Andrew Cagney <ac131313@redhat.com>
* mcore-tdep.c (mcore_gdbarch_init): Use
generic_unwind_get_saved_register instead of
generic_get_saved_register.
* v850-tdep.c (v850_gdbarch_init): Ditto.
* frv-tdep.c (frv_gdbarch_init): Ditto.
* mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
* s390-tdep.c (s390_gdbarch_init): Ditto.
* d10v-tdep.c (d10v_gdbarch_init): Ditto.
* config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
* config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2002-08-05 17:12:56 +00:00
Joel Brobecker 3956d554e9 * objfiles.h: Add missing #include "symfile.h"
* Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2002-08-05 16:17:41 +00:00
gdbadmin ae9f69648b *** empty log message *** 2002-08-05 00:00:02 +00:00
Andrew Cagney 8249c0d6ec From 2002-08-01 david carlton <carlton@math.stanford.edu>:
* hpread.c (hpread_read_struct_type): Deleted superfluous setting
of FIELD_BITSIZE.
2002-08-04 19:11:12 +00:00