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
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
Kevin Buettner
498868ed65
Multiarch FRAME_INIT_SAVED_REGS for mips.
2002-08-08 23:42:26 +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
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
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
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
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
Daniel Jacobowitz
b9d147054e
* NEWS: Cleanup and nitpick.
2002-08-04 15:12:09 +00:00
Andrew Cagney
dd73b9bbd8
NEWS cleanups
2002-08-04 00:02:49 +00:00
Andrew Cagney
043a27f8cf
Index: ChangeLog
...
2002-08-03 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (gdbtk-bp.o): Update dependencies.
(gdbtk-register.o): Ditto.
(gdbtk-varobj.o): Ditto.
Index: gdbtk/ChangeLog
2002-08-03 Andrew Cagney <ac131313@redhat.com>
* generic/gdbtk-bp.c: Include "gdb_string.h".
* generic/gdbtk-register.c: Ditto.
* generic/gdbtk-varobj.c: Ditto.
2002-08-03 16:22:06 +00:00
Andrew Cagney
46ce284d66
2002-08-03 Andrew Cagney <cagney@redhat.com>
...
* m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
m68hc11_fetch_pseudo_register.
(m68hc11_pseudo_register_write): Replace
m68hc11_store_pseudo_register.
(m68hc11_gdbarch_init): Update.
2002-08-03 15:56:23 +00:00
Andrew Cagney
b66d6d2e12
Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
...
* gdbarch.sh: Include "gdb_string.h".
* gdbarch.c: Regenerate.
* regcache.c: Include "gdb_string.h".
* ax-general.c: Ditto.
* varobj.c: Ditto.
* std-regs.c: Ditto.
* fbsd-proc.c: Ditto.
* thread.c: Ditto.
* Makefile.in (regcache.o): Update dependencies.
(thread.o, gdbarch.o): Ditto.
(ax-general.o, gdbarch.o): Ditto.
(varobj.o, std-regs.o): Ditto.
(fbsd-proc.o): Specify dependencies.
2002-08-02 20:51:21 +00:00
Andrew Cagney
29e1842b36
2002-08-02 Andrew Cagney <cagney@redhat.com>
...
* regcache.c (regcache_cooked_read): Rename rawnum parameter to
regnum.
(regcache_cooked_write): Ditto.
2002-08-02 19:06:21 +00:00
Andrew Cagney
68365089fc
Add the cooked register interface.
2002-08-02 18:08:31 +00:00
Andrew Cagney
d8124050fd
2002-08-02 Andrew Cagney <cagney@redhat.com>
...
* gdbarch.sh (pseudo_register_read, pseudo_register_write):
Replace the architecture methods register_read and register_write.
* gdbarch.h, gdbarch.c: Regenerate.
* regcache.c (init_regcache_descr): Update.
(read_register_gen): Update.
(write_register_gen): Update.
(supply_register): Update comment.
* sh-tdep.c (sh_gdbarch_init): Update.
(sh_pseudo_register_read, sh64_pseudo_register_read): Add
`regcache' and `gdbarch' parameters. Make `buffer' a void
pointer. Update code.
(sh_pseudo_register_write, sh64_pseudo_register_write): Add
`regcache' and `gdbarch' parameters. Make `buffer' a constant
void pointer. Update code.
(sh64_register_write): Delete.
(sh4_register_read): Delete.
(sh64_register_read): Delete.
(sh4_register_write): Delete.
(sh_sh4_register_convert_to_raw): Make `from' parameter a constant
void pointer, `to' parameter a void pointer.
(sh_sh64_register_convert_to_raw): Ditto.
2002-08-02 14:48:19 +00:00
Kevin Buettner
a642592427
* mips-tdep.c (mips_register_virtual_type): Use architecture
...
invariant return values.
2002-08-01 23:10:34 +00:00
Andrew Cagney
ff5922b550
* linux-proc.c: Include "gdb_string.h".
...
* Makefile.in (linux-proc.o): Update dependency list.
2002-08-01 22:55:36 +00:00
Kevin Buettner
32a6503c60
* mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
...
comment.
2002-08-01 21:36:27 +00:00
Grace Sainsbury
ccaa32c7e8
* target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
...
to_insert_watchpoint, to_remove_watchpoint,
to_stopped_by_watchpoint, to_stopped_data_address,
to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
target vecctor. Define their corresponding macros so they call
them.
* target.c: Add default and debug versions of for
to_insert_hw_breakpoint, to_remove_hw_breakpoint,
to_insert_watchpoint, to_remove_watchpoint,
to_stopped_by_watchpoint, to_stopped_data_address,
to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2002-08-01 21:20:14 +00:00
Kevin Buettner
78fde5f8a3
Multiarch REGISTER_VIRTUAL_TYPE for Irix 6.
2002-08-01 19:57:41 +00:00
Andrew Cagney
db034ac512
2002-08-01 Andrew Cagney <cagney@redhat.com>
...
* NEWS: Menion that CHILL has been made obsolete.
* gdbtypes.c (chill_varying_type): Make chill references obsolete.
* gdbserver/Makefile.in: Ditto.
* stabsread.c (read_range_type): Ditto.
* gdbtypes.h: Ditto.
* language.c (binop_type_check): Ditto.
(binop_result_type): Ditto.
(integral_type): Ditto.
(character_type): Ditto.
(string_type): Ditto.
(boolean_type): Ditto.
(structured_type): Ditto.
(lang_bool_type): Ditto.
(binop_type_check): Ditto.
* language.h (_LANG_chill): Ditto.
* dwarfread.c (set_cu_language): Ditto.
* dwarfread.c (CHILL_PRODUCER): Ditto.
* dwarfread.c (handle_producer): Ditto.
* expression.h (enum exp_opcode): Ditto.
* eval.c: Ditto for comments.
* typeprint.c (typedef_print) [_LANG_chill]: Ditto.
* expprint.c (print_subexp): Ditto.
(print_subexp): Ditto.
* valops.c (value_cast): Ditto.
(search_struct_field): Ditto.
* value.h (COERCE_VARYING_ARRAY): Ditto.
* symfile.c (init_filename_language_table): Ditto.
(add_psymbol_with_dem_name_to_list): Ditto.
* valarith.c (value_binop): Ditto.
(value_neg): Ditto.
* valops.c (value_slice): Ditto.
* symtab.h (union language_specific): Ditto.
(SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
(SYMBOL_DEMANGLED_NAME): Ditto.
(SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
* defs.h (enum language): Ditto.
* symtab.c (got_symtab): Ditto.
* utils.c (fprintf_symbol_filtered): Ditto.
* ch-typeprint.c: Make file obsolete.
* ch-valprint.c: Make file obsolete.
* ch-lang.h: Make file obsolete.
* ch-exp.c: Make file obsolete.
* ch-lang.c: Make file obsolete.
* Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
CHILL_LIB.
(TARGET_FLAGS_TO_PASS): Ditto.
(CHILLFLAGS): Obsolete.
(CHILL): Obsolete.
(CHILL_FOR_TARGET): Obsolete.
(CHILL_LIB): Obsolete.
(SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
ch-valprint.c.
(HFILES_NO_SRCDIR): Remove ch-lang.h.
(COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
ch-lang.o.
(ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
targets.
2002-08-01 Andrew Cagney <cagney@redhat.com>
* stabs.texinfo, gdb.texinfo, gdbint.texinfo: Obsolete references
to CHILL.
2002-08-01 Andrew Cagney <cagney@redhat.com>
* Makefile.in (TARGET_FLAGS_TO_PASS): Remove CHILLFLAGS, CHILL,
CHILL_FOR_TARGET and CHILL_LIB.
* configure.in (configdirs): Remove gdb.chill.
* configure: Regenerate.
* lib/gdb.exp: Obsolete references to chill.
* gdb.fortran/types.exp: Ditto.
* gdb.fortran/exprs.exp: Ditto.
2002-08-01 17:18:35 +00:00
Joel Brobecker
8aaf0b4716
* dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
...
This does not change anything at the moment, but will be helpful
later when full Ada support is integrated.
2002-07-31 22:35:48 +00:00
Kevin Buettner
f3a7b3a584
* mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
...
help message.
2002-07-31 20:26:49 +00:00
Kevin Buettner
fb850278da
* mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
...
and save it in a local variable. Use variable in later test.
2002-07-31 20:08:20 +00:00
Kevin Buettner
e3bddbfa39
* mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
...
test. (Thanks to Daniel Jacobowitz.)
2002-07-31 19:08:46 +00:00
Kevin Buettner
28d169dec8
* mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
...
(mips_abi_strings): Add "n64".
(mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2002-07-31 18:13:24 +00:00
Kevin Buettner
7fe7e44e2c
* config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
...
(REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2002-07-31 17:22:06 +00:00
Kevin Buettner
c6caf09098
* utils.c (host_pointer_to_address, address_to_host_pointer):
...
Use gdb_assert() instead of explicit call to internal_error().
2002-07-31 17:01:01 +00:00
Kevin Buettner
c41669e09a
Configury changes to enable recently added AIX thread support.
2002-07-30 19:59:06 +00:00
Daniel Jacobowitz
2fda49774f
* ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
...
(ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
(fetch_core_registers, ppc_linux_supply_gregset)
(ppc_linux_supply_fpregset): New functions.
(ppc_linux_regset_core_fns): New.
(_initialize_ppc_linux_tdep): Call add_core_fns.
* ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
and ppc_linux_supply_gregset.
* ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
(supply_fpregset): Call ppc_linux_supply_fpregset.
* config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
corelow.o.
* config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2002-07-30 19:03:49 +00:00
Daniel Jacobowitz
729051e6cb
* symtab.c (lookup_symbol): Demangle before lowercasing.
2002-07-30 15:42:07 +00:00
Andrew Cagney
5f8a318830
2002-07-30 Andrew Cagney <ac131313@redhat.com>
...
* symtab.h: Replace #include "gdb_obstack.h" with opaque
declaration.
* cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
* gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
* avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
* arch-utils.c, cli/cli-setshow.c: Unconditionally include
"gdb_string.h".
* Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
(gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
(cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
(avr-tdep.o, mon960-rom.o): Ditto.
(aout_stabs_gnu_h): Define.
(symtab_h): Remove $(gdb_obstack_h).
2002-07-30 13:45:15 +00:00
Jim Blandy
67f0714670
Patch from David Carlton <carlton@math.stanford.edu>:
...
* gdbinit.in: Move the `dir' commands that add GDB's own source
directory to the search path to the end, so that the `gdb' source
directory will be searched first.
2002-07-30 07:01:23 +00:00