Daniel Jacobowitz [Tue, 17 Jun 2003 19:17:59 +0000 (19:17 +0000)]
* breakpoint.c (insert_catchpoint): New function.
(insert_breakpoints): Use catch_exceptions to call
insert_catchpoint. Disable catchpoints if they fail to insert.
Daniel Jacobowitz [Tue, 17 Jun 2003 19:15:24 +0000 (19:15 +0000)]
* symfile.c (reread_symbols): Clear sym_private.
Andrew Cagney [Tue, 17 Jun 2003 19:00:20 +0000 (19:00 +0000)]
2003-06-17 Andrew Cagney <cagney@redhat.com>
* trad-frame.h (struct frame_info): Add opaque declaration.
* remote-fileio.h (struct cmd_list_element): Add opaque
declaration.
* h8300-tdep.c (h8300s_register_name): Avoid C++ // style
comments.
Kris Warkentin [Tue, 17 Jun 2003 18:30:48 +0000 (18:30 +0000)]
* nto-tdep.c (nto_map_arch_to_cputype): Recognize powerpc.
(nto_find_and_open_solib): Likewise.
(nto_init_solib_absolute_prefix): Likewise.
(_initialize_nto_tdep): Fix indentation.
Daniel Jacobowitz [Tue, 17 Jun 2003 18:18:57 +0000 (18:18 +0000)]
* remote.c (remote_prepare_to_store): Replace call to
deprecated_read_register_bytes with multiple regcache_raw_read
calls.
Kris Warkentin [Tue, 17 Jun 2003 17:49:39 +0000 (17:49 +0000)]
* i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
Kris Warkentin [Tue, 17 Jun 2003 17:38:32 +0000 (17:38 +0000)]
* i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
DJ Delorie [Tue, 17 Jun 2003 16:31:07 +0000 (16:31 +0000)]
merge from gcc
Jim Blandy [Tue, 17 Jun 2003 16:06:18 +0000 (16:06 +0000)]
* ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
Alan Modra [Tue, 17 Jun 2003 14:22:46 +0000 (14:22 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Do unaligned reloc
optimizations earlier.
Alan Modra [Tue, 17 Jun 2003 13:43:02 +0000 (13:43 +0000)]
* elf64-ppc.c (struct ppc_link_hash_table): Reinstate top_index.
Restore previous input_list type.
(ppc64_elf_link_hash_table_create): Undo last change.
(ppc64_elf_setup_section_lists): Reinstate code setting up input lists
per output section, but don't bother with bfd_abs_section marker.
(ppc64_elf_next_input_section): Adjust for multiple input section
lists.
(group_sections): Likewise.
Jakub Jelinek [Tue, 17 Jun 2003 12:39:41 +0000 (12:39 +0000)]
* elf64-ppc.c (ppc64_elf_relocation_section): Ensure
*r_offset == r_addend for RELATIVE relocs against .got.
Alan Modra [Tue, 17 Jun 2003 12:37:26 +0000 (12:37 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Optimize unaligned relocs.
Nick Clifton [Tue, 17 Jun 2003 12:05:33 +0000 (12:05 +0000)]
Catch and ignore an ARM_26D reloc.
Nick Clifton [Tue, 17 Jun 2003 11:46:34 +0000 (11:46 +0000)]
Tweak expected results for i386-pc-cygwin target.
Nick Clifton [Tue, 17 Jun 2003 11:16:16 +0000 (11:16 +0000)]
Allow system-specific gunk after canonical file format.
Nick Clifton [Tue, 17 Jun 2003 11:01:17 +0000 (11:01 +0000)]
* ld-undefined/undefined.exp (i?86-*-freebsd*): Remove xfail.
* configure.host (*-*-freebsd*): Add known path for ld-elf.so.1 if not produced by gcc.
Nick Clifton [Tue, 17 Jun 2003 09:57:18 +0000 (09:57 +0000)]
(elf_gc_record_vtentry): Allocate an extra element in the vtable_entries_used
array to allow for the accessing the largest element.
Alan Modra [Tue, 17 Jun 2003 09:10:41 +0000 (09:10 +0000)]
* elf64-ppc.c (struct ppc_link_hash_table): Remove top_index. Modify
input_list.
(ppc64_elf_link_hash_table_create): Init input_list here.
(ppc64_elf_setup_section_lists): Remove code setting up input lists
per output section. Set toc_off for abs and other standard sections.
(ppc64_elf_reinit_toc): Don't set elf_gp on input bfds lacking a toc.
(ppc64_elf_next_input_section): Adjust for single input section list.
Don't set toc_curr from input bfds that haven't set elf_gp.
(group_sections): Adjust for single input section list.
Theodore A. Roth [Tue, 17 Jun 2003 04:44:18 +0000 (04:44 +0000)]
* avr-tdep.c (avr_extract_return_value): New function.
(avr_gdbarch_init): Set extract_return_value method.
Alan Modra [Tue, 17 Jun 2003 00:25:45 +0000 (00:25 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Correct pcrel section zero.
Alan Modra [Tue, 17 Jun 2003 00:14:24 +0000 (00:14 +0000)]
* config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
gdbadmin [Tue, 17 Jun 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 17 Jun 2003 00:00:04 +0000 (00:00 +0000)]
daily update
Andrew Cagney [Mon, 16 Jun 2003 20:05:56 +0000 (20:05 +0000)]
2003-06-16 Andrew Cagney <cagney@redhat.com>
* frame.h (deprecated_get_next_frame_hack): Declare.
* frame.c (legacy_saved_regs_prev_register): Only require
DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
there are always saved regs.
(deprecated_generic_get_saved_register): Do not require
DEPRECATED_FRAME_INIT_SAVED_REGS.
(legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
use frame ID unwind instead.
(deprecated_get_next_frame_hack): New function.
Corinna Vinschen [Mon, 16 Jun 2003 19:40:51 +0000 (19:40 +0000)]
* h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
(h8300_push_dummy_call): ...this function. Some minor optimization.
(h8300_push_return_address): Remove.
(h8300_gdbarch_init): Remove calls to
set_gdbarch_deprecated_dummy_write_sp,
set_gdbarch_deprecated_push_arguments and
set_gdbarch_deprecated_push_return_address.
Add call to set_gdbarch_push_dummy_call.
Corinna Vinschen [Mon, 16 Jun 2003 17:13:02 +0000 (17:13 +0000)]
* h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
(E_PSEUDO_EXR_REGNUM): Ditto.
(h8300_is_argument_spill): Check for instructions moving argument
registers into safe registers.
(h8300_skip_prologue): Check for stm instruction to push registers
used for register variables onto stack.
(gdb_print_insn_h8300): Remove.
(h8300_examine_prologue): Add a comment.
(h8300_register_name): Take pseudo registers into account.
(h8300s_register_name): Ditto.
(h8300sx_register_name): Ditto.
(h8300_print_register): Ditto.
(h8300_print_registers_info): Define "nice" printing order.
(h8300_saved_pc_after_call): Take pseudo registers into account.
(h8300_register_type): Ditto. Return type used for remote connection
when requesting real CCR or EXR register, return actual type when
requesting pseudo CCR or EXR.
(h8300_pseudo_register_read): New function.
(h8300_pseudo_register_write): Ditto.
(h8300_dbg_reg_to_regnum): Ditto.
(h8300s_dbg_reg_to_regnum): Ditto.
(h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
set_gdbarch_print_insn architecture dependent.
Call set_gdbarch_pseudo_register_read and
set_gdbarch_pseudo_register_write.
(_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
Andrew Cagney [Mon, 16 Jun 2003 16:52:24 +0000 (16:52 +0000)]
Revert previous change. Wait for approval.
Andrew Cagney [Mon, 16 Jun 2003 16:47:44 +0000 (16:47 +0000)]
2003-06-16 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
* gdbarch.h, gdbarch.c: Re-generate.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
* s390-tdep.c (s390_gdbarch_init): Update.
* rs6000-tdep.c (rs6000_gdbarch_init): Update.
* mn10300-tdep.c (mn10300_gdbarch_init): Update.
* mips-tdep.c (mips_gdbarch_init): Update.
* mcore-tdep.c (mcore_gdbarch_init): Update.
* cris-tdep.c (cris_gdbarch_init): Update.
* infcall.c (call_function_by_hand): Update.
* ia64-tdep.c (ia64_push_arguments): Update comment.
* frame.c (legacy_get_prev_frame): Do not assume
SAVE_DUMMY_FRAME_TOS_P.
* dummy-frame.c (find_dummy_frame): Update comment.
Andrew Cagney [Mon, 16 Jun 2003 13:19:36 +0000 (13:19 +0000)]
2003-06-16 Andrew Cagney <cagney@redhat.com>
* regcache.c (do_cooked_read): Do not use register_valid_p.
Thiemo Seufer [Mon, 16 Jun 2003 12:13:10 +0000 (12:13 +0000)]
* config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
(macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
s_cprestore,s_cpadd): Use them.
Alan Modra [Mon, 16 Jun 2003 10:51:07 +0000 (10:51 +0000)]
* ld-powerpc/tlsexetoc.d: Update.
* ld-powerpc/tlsso.d: Update.
* ld-powerpc/tlstoc.d: Update.
* ld-powerpc/tlstocso.d: Update.
* ld-powerpc/tlstocso.r: Update.
Alan Modra [Mon, 16 Jun 2003 10:50:22 +0000 (10:50 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): When optimizing toctprel
tls, check that a TOC16_DS or TOC16_LO_DS reloc isn't pointing to a
dtprel entry. Ensure TLS_LD DTPMOD reloc has a zero addend. Write
got section for RELATIVE relocs. Fix wrong comment. Change condition
under which dynamic relocs update the section contents.
Theodore A. Roth [Mon, 16 Jun 2003 05:50:16 +0000 (05:50 +0000)]
* avr-tdep.c (avr_register_type): Remove a blank line.
(avr_scan_prologue): Correct some comments.
Hans-Peter Nilsson [Mon, 16 Jun 2003 00:38:58 +0000 (00:38 +0000)]
* configure.in: Add specific case for cris-*-linux-gnu* with
em=linux.
* configure: Regenerate.
* config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
if TE_LINUX defined, else FALSE.
(bfd_boolean demand_register_prefix): Set default from
DEFAULT_CRIS_AXIS_LINUX_GNU.
(symbols_have_leading_underscore): Similar.
* config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
Theodore A. Roth [Mon, 16 Jun 2003 00:36:59 +0000 (00:36 +0000)]
* avr-tdep.c (avr_scan_prologue): Update comment describing the various
prologue types.
Properly scan prologues generated by gcc with the -mcall-prologues option.
Add code to scan -mcall-prologues for mega devices.
Hans-Peter Nilsson [Mon, 16 Jun 2003 00:03:48 +0000 (00:03 +0000)]
* configure.tgt: Add specific case for cris-*-linux-gnu*
with crislinux emulation only.
Hans-Peter Nilsson [Mon, 16 Jun 2003 00:02:36 +0000 (00:02 +0000)]
* ld-cris/ldsym1.d: Restrict to cris-*-*elf* and cris-*-*aout*.
* ld-cris/noglob1.d: Ditto.
* ld-cris/badgotr1.d: Pass --underscore to gas.
Alan Modra [Mon, 16 Jun 2003 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 16 Jun 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***
Hans-Peter Nilsson [Sun, 15 Jun 2003 23:46:37 +0000 (23:46 +0000)]
* gas/cris: Match output having $ register prefix. Deal with
target variants default requiring register prefix on input.
Theodore A. Roth [Sun, 15 Jun 2003 22:01:05 +0000 (22:01 +0000)]
* avr-tdep.c (avr_register_byte): Delete function.
(avr_register_raw_size): Delete function.
(avr_register_virtual_size): Delete function.
(avr_register_virtual_type): Delete function.
(avr_register_type): New function.
(avr_address_to_pointer): Remove unused code.
(avr_read_fp): Need to read FP as two separate bytes due to change to
avr_register_type() usage.
(avr_gdbarch_init): Don't set deprecated_register_size.
Don't set deprecated_register_bytes.
Don't set deprecated_register_byte.
Don't set deprecated_register_raw_size.
Don't set deprecated_max_register_raw_size.
Don't set deprecated_register_virtual_size.
Don't set deprecated_max_register_virtual_size.
Don't set deprecated_register_virtual_type.
Set register_type method.
Daniel Jacobowitz [Sun, 15 Jun 2003 20:56:48 +0000 (20:56 +0000)]
* Makefile.in (linux-nat.o): Add rule.
* linux-nat.c: New file.
* config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
(CHILD_INSERT_VFORK_CATCHPOINT): Define.
(CHILD_INSERT_EXEC_CATCHPOINT): Define.
* config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
* config/arm/linux.mh (NATDEPFILES): Likewise.
* config/i386/linux.mh (NATDEPFILES): Likewise.
* config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
* config/ia64/linux.mh (NATDEPFILES): Likewise.
* config/m68k/linux.mh (NATDEPFILES): Likewise.
* config/mips/linux.mh (NATDEPFILES): Likewise.
* config/powerpc/linux.mh (NATDEPFILES): Likewise.
* config/s390/s390.mh (NATDEPFILES): Likewise.
* config/sparc/linux.mh (NATDEPFILES): Likewise.
Mark Kettenis [Sun, 15 Jun 2003 13:10:38 +0000 (13:10 +0000)]
* gdb.base/attach.exp: Use -1 for the ID of a nonexistent process
on *-*-*bsd* instead of *-*-freebsd*.
Mark Kettenis [Sun, 15 Jun 2003 12:45:23 +0000 (12:45 +0000)]
* i387-tdep.c: Reorder includes, fix some whitespace issues and
replace out-of-date comment.
Andrew Cagney [Sun, 15 Jun 2003 12:30:56 +0000 (12:30 +0000)]
2003-06-15 Andrew Cagney <cagney@redhat.com>
* rdi-share/host.h (Fail): Change to a varargs function.
* remote-rdi.c (Fail): Update.
Mark Kettenis [Sun, 15 Jun 2003 11:40:46 +0000 (11:40 +0000)]
* i386-tdep.c (i386_next_regnum): Fix bounds checking.
(i386_convert_register_p, i386_register_to_value,
i386_register_from_value): Handle types longer than 8 bytes.
Mark Kettenis [Sun, 15 Jun 2003 11:01:46 +0000 (11:01 +0000)]
* i386-tdep.c (i386_register_to_value, i386_value_to_register):
Move floating-point code to new function in i387-tdep.c.
* i387-tdep.c (i387_register_to_value, i387_value_to_register):
New functions containing code moved here from i386-tdep.c.
* i387-tdep.h: Add opaque declaration for `struct type'.
(i387_register_to_value, i387_value_to_register): New prototypes.
* x86-64-tdep.c (x86_64_convert_register_p): New function.
(x86_64_init_abi): Set convert_register_p, register_to_value and
value_to_register here.
H.J. Lu [Sun, 15 Jun 2003 03:40:25 +0000 (03:40 +0000)]
2003-06-14 H.J. Lu <hongjiu.lu@intel.com>
* config.guess: Update to 2003-06-12 version.
* config.sub: Update to 2003-06-13 version.
Andrew Cagney [Sun, 15 Jun 2003 00:27:54 +0000 (00:27 +0000)]
2003-06-14 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (mips_register_to_value): Make static.
(mips_value_to_register): Make static.
* i386-tdep.c (i386_fetch_pointer_argument): Make static.
* ia64-tdep.c (ia64_register_raw_size): Make static.
(ia64_register_virtual_size): Make static.
(ia64_register_byte): Make static.
* i387-tdep.c: Include "i387-tdep.h".
(print_387_control_word): Delete function.
(print_387_status_word): Delete function.
(print_387_status_bits): Delete function.
(print_387_control_bits): Delete function.
* Makefile.in (i387-tdep.o): Update dependencies.
* rdi-share/host.h (Fail): Declare.
* remote-rdi.c (Fail): Update to match declaration.
Alan Modra [Sun, 15 Jun 2003 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 15 Jun 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***
Andrew Cagney [Sat, 14 Jun 2003 23:43:15 +0000 (23:43 +0000)]
2003-06-14 Andrew Cagney <cagney@redhat.com>
* config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
* config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
* config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
* config/djgpp/fnchange.lst: Delete "remote-array.c".
* README: Delete reference to remote-array.
* Makefile.in (ALLDEPFILES): Remove "remote-array.c".
(remote-array.o): Delete target.
* config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
* remote-array.c: Delete file.
Andrew Cagney [Sat, 14 Jun 2003 22:35:25 +0000 (22:35 +0000)]
2003-06-14 Andrew Cagney <cagney@redhat.com>
Mark Kettenis <kettenis@gnu.org>
* gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
(REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
parameter with "frame".
* gdbarch.h, gdbarch.c: Re-generate.
* frame.h (put_frame_register): Declare.
* frame.c (put_frame_register): New function.
* arch-utils.c (legacy_convert_register_p): Add "type" parameter.
(legacy_register_to_value): Rewrite, use "frame" to get the
register value.
(legacy_value_to_register): Rewrite, use "frame" to find the
register's location before storing.
* arch-utils.h (legacy_convert_register_p): Update.
(legacy_register_to_value, legacy_value_to_register): Update.
* findvar.c (value_from_register): Rewrite, eliminate use of
REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
"frame" to REGISTER_TO_VALUE.
* valops.c (value_assign): Move the CONVERT_REGISTER code to the
lval_reg_frame_relative + lval_register branch of the switch. Do
not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
* i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
I386_EDI_REGNUM): New defines.
(i386_next_regnum, i386_convert_register_p,
i386_register_to_value, i386_value_to_register): New functions.
(i386_register_convertible, i386_register_convert_to_virtual,
i386_convert_to_raw): Remove functions.
(i386_gdbarch_init): Set convert_register_p, register_to_value and
value_to_register instead of register_convertible,
register_convert_to_virtual and register_convert_to_raw.
* mips-tdep.c (mips_convert_register_p): New function.
(mips_value_to_register): Replace mips_register_convert_from_type.
(mips_register_to_value): Replace mips_register_convert_to_type.
(mips_gdbarch_init): Set conver_register_p, value_to_register and
register_to_value.
* alpha-tdep.c (alpha_convert_register_p): Update.
(alpha_value_to_register): Update, store the register.
(alpha_register_to_value): Update, fetch the register.
Andrew Cagney [Sat, 14 Jun 2003 22:10:47 +0000 (22:10 +0000)]
2003-06-14 Andrew Cagney <cagney@redhat.com>
* gdb.base/store.exp: Test longest and doublest. Test all
parameters. Weaken return statement match.
* gdb.base/store.c: Add longest and doublest - aka long long and
long double functions. Put all parameters into local register
variables. Use negative values.
Theodore A. Roth [Sat, 14 Jun 2003 21:00:46 +0000 (21:00 +0000)]
* avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
(avr_gdbarch_init): Remove avr_call_dummy_words variable.
Don't set deprecated_call_dummy_words.
Remove commented out set_gdbarch_believe_pcc_promotion() call.
Don't set remote_translate_xfer_address.
(avr_io_reg_read_command): Remove commented out debug printf.
Wrap a long line.
Theodore A. Roth [Sat, 14 Jun 2003 20:33:39 +0000 (20:33 +0000)]
* avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
causes gdb to seg fault.
Andrew Cagney [Sat, 14 Jun 2003 16:51:42 +0000 (16:51 +0000)]
2003-06-14 Andrew Cagney <cagney@redhat.com>
* gdb.base/fileio.c: Include <errno.h>, and <sys/wait.h>. Gag
-Wformat errors. Add lost line. Use WEXITSTATUS to get system
exit status.
* gdb.base/fileio.exp: Disable target when nointerrupts and
noinferiorio, instead of limiting it to remote. Use remote_exec
instead of system.
Daniel Jacobowitz [Sat, 14 Jun 2003 16:22:23 +0000 (16:22 +0000)]
* sparc-nat.c (fetch_inferior_registers): Correct
a reference to "registers".
Daniel Jacobowitz [Sat, 14 Jun 2003 16:18:32 +0000 (16:18 +0000)]
* Makefile.in (exc_request_U_h): Define
(exc_request_S_h): Likewise.
(msg_reply_S_h): Likewise.
(msg_U_h): Likewise.
(notify_S_h): Likewise.
(process_reply_S_h): Likewise.
(gnu-nat.o): Depend on gdb_obstack_h
* gnu-nat.c: Include "gdb_obstack.h".
H.J. Lu [Sat, 14 Jun 2003 14:07:21 +0000 (14:07 +0000)]
2003-06-14 H.J. Lu <hongjiu.lu@intel.com>
* config.guess: Update to 2003-06-12 version.
* config.sub: Update to 2003-06-13 version.
gdbadmin [Sat, 14 Jun 2003 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 14 Jun 2003 00:00:06 +0000 (00:00 +0000)]
daily update
Andrew Cagney [Fri, 13 Jun 2003 23:07:06 +0000 (23:07 +0000)]
2003-06-13 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
* gdbarch.h, gdbarch.c: Re-generate.
Andrew Cagney [Fri, 13 Jun 2003 22:18:49 +0000 (22:18 +0000)]
2003-06-13 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
when deprecated REGISTER macros can be deleted.
* gdbarch.h, gdbarch.c: Re-generate.
Jim Blandy [Fri, 13 Jun 2003 21:56:27 +0000 (21:56 +0000)]
* solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
Linux entry point symbols for _dl_debug_state, too.
Andrew Cagney [Fri, 13 Jun 2003 20:37:28 +0000 (20:37 +0000)]
2003-06-13 Andrew Cagney <cagney@redhat.com>
* infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
available, do not use the FP register, and always save the TOS.
* dummy-frame.c (dummy_frame_this_id): Do not assert
SAVE_DUMMY_FRAME_TOS.
* i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
(i386_gdbarch_init): Do not set save_dummy_frame_tos.
(i386_push_dummy_call): Add 8 to the returned SP.
* frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
* d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
(d10v_gdbarch_init): Do not set save_dummy_frame_tos.
* x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
(x86_64_push_dummy_call): Return "sp + 16".
(x86_64_init_abi): Do not set save_dummy_frame_tos.
* alpha-tdep.c (alpha_gdbarch_init): Do not set
save_dummy_frame_tos.
Jim Blandy [Fri, 13 Jun 2003 20:24:20 +0000 (20:24 +0000)]
Fix typo in ChangeLog.
Jim Blandy [Fri, 13 Jun 2003 20:19:13 +0000 (20:19 +0000)]
* frv-tdep.c (frv_use_struct_convention): Delete static
declaration for function deleted in my change of 2003-06-12.
Andrew Cagney [Fri, 13 Jun 2003 18:30:38 +0000 (18:30 +0000)]
2003-06-13 Andrew Cagney <cagney@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Deprecate
REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT, and
BIG_REMOTE_BREAKPOINT. Cross reference BREAKPOINT_FROM_PC.
Theodore A. Roth [Fri, 13 Jun 2003 17:52:28 +0000 (17:52 +0000)]
* avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
(avr_pointer_to_address): Shift code addrs left 1 bit.
(avr_convert_from_func_ptr_addr): Delete function since operation is
better handled by avr_address_to_pointer and avr_pointer_to_address.
(avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
Mark Kettenis [Fri, 13 Jun 2003 17:49:52 +0000 (17:49 +0000)]
From Kelley Cook <kelleycook@wideopenwest.com>:
* configure.host: Accept i[34567]86 variants.
* configure.tgt: Likewise.
* nlm/configure.in: Likewise.
* nlm/configure: Regenerated.
Richard Earnshaw [Fri, 13 Jun 2003 16:45:55 +0000 (16:45 +0000)]
* gas/arm/arm.exp: Pass -mfpu=fpa option to the FPA instruction test.
Richard Earnshaw [Fri, 13 Jun 2003 15:28:29 +0000 (15:28 +0000)]
* arm-tdep.c (solib-svr4.h): Dont' include it.
(arm_linux_svr4_fetch_link_map_offsets): Move to ...
* arm-linux-tdep.c: ... here. Make static.
(arm_linux_init_abi): Register it.
(solib-svr4.h): Include it.
* Makefile.in: Update dependencies.
* config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
(arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
Richard Earnshaw [Fri, 13 Jun 2003 15:20:26 +0000 (15:20 +0000)]
* tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
(FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
FPU_ARCH_FPA for AOUT.
(md_begin): Don't try to guess the floating point architecture from
the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
Richard Earnshaw [Fri, 13 Jun 2003 14:15:51 +0000 (14:15 +0000)]
Missed include update in previous commit.
Richard Earnshaw [Fri, 13 Jun 2003 14:13:13 +0000 (14:13 +0000)]
* arm-tdep.c (solib-svr4.h): Dont' include it.
(arm_linux_svr4_fetch_link_map_offsets): Move to ...
* arm-linux-tdep.c: ... here. Make static.
(arm_linux_init_abi): Register it.
(solib-svr4.h): Include it.
* Makefile.in: Update dependencies.
* config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
(arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
Nick Clifton [Fri, 13 Jun 2003 13:17:58 +0000 (13:17 +0000)]
Add i386-netbsd-gnu target.
Nick Clifton [Fri, 13 Jun 2003 13:07:51 +0000 (13:07 +0000)]
(GNU_ABI_TAG_NETBSD): New tag.
(GNU_ABI_TAG_FREEBSD): New tag.
Corinna Vinschen [Fri, 13 Jun 2003 10:17:05 +0000 (10:17 +0000)]
* h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
indicate registers used for return values.
(struct frame_extra_info): Drop args_pointer and locals_pointer.
(h8300_examine_prologue): Remove initializing dropped frame_extra_info
members.
(h8300_init_extra_frame_info): Ditto.
(h8300_frame_locals_address): Removed.
(h8300_frame_args_address): Removed.
(h8300_extract_return_value): Use new regcache structure. Only care
for 16 bit CPUs.
(h8300h_extract_return_value): Same function for 32 bit CPUs.
(h8300_store_return_value): Use new regcache structure. Only care
for 16 bit CPUs.
(h8300h_store_return_value): Same function for 32 bit CPUs.
(h8300_store_struct_return): Removed.
(h8300_extract_struct_value_address): Use new regcache structure.
(h8300h_extract_struct_value_address): Removed.
(h8300_push_dummy_code): New function.
(h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
Remove call_dummy_words. Call set_gdbarch_extract_return_value and
set_gdbarch_store_return_value architecture dependent.
Call set_gdbarch_push_dummy_code and
set_gdbarch_extract_struct_value_address.
Remove calls to set_gdbarch_frame_args_address,
set_gdbarch_frame_locals_address,
set_gdbarch_deprecated_store_struct_return,
set_gdbarch_deprecated_extract_return_value,
set_gdbarch_deprecated_extract_struct_value_address,
set_gdbarch_deprecated_call_dummy_words and
set_gdbarch_deprecated_sizeof_call_dummy_words.
Corinna Vinschen [Fri, 13 Jun 2003 08:11:56 +0000 (08:11 +0000)]
* h8300-tdep.c (h8300_register_byte): Remove.
(h8300h_register_byte): Remove.
(h8300_register_virtual_type): Remove. Substitute by...
(h8300_register_type): New function.
(h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
(h8300h_extract_struct_value_address): Ditto.
(h8300_gdbarch_init): Drop calls to
set_gdbarch_deprecated_register_byte and
set_gdbarch_deprecated_register_virtual_type.
Add call to set_gdbarch_register_type.
Andrew Cagney [Fri, 13 Jun 2003 04:40:34 +0000 (04:40 +0000)]
2003-06-13 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh: Update comments on registers, re-order.
(deprecated_register_byte): Rename register_byte.
(deprecated_register_raw_size): Rename register_raw_size.
(deprecated_register_virtual_size): Rename register_virtual_size.
(deprecated_register_virtual_type): Rename register_virtual_type.
* gdbarch.h, gdbarch.c: Re-generate.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
* vax-tdep.c (vax_gdbarch_init): Update.
* v850-tdep.c (v850_gdbarch_init): Update.
* sparc-tdep.c (sparc_gdbarch_init): Update.
* sh-tdep.c (sh_gdbarch_init): Update.
* s390-tdep.c (s390_gdbarch_init): Update.
* rs6000-tdep.c (rs6000_gdbarch_init): Update.
* ns32k-tdep.c: Update.
* mn10300-tdep.c (mn10300_gdbarch_init): Update.
* mips-tdep.c (mips_gdbarch_init): Update.
* mcore-tdep.c (mcore_gdbarch_init): Update.
* m68k-tdep.c (m68k_gdbarch_init): Update.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
* ia64-tdep.c (ia64_gdbarch_init): Update.
* hppa-tdep.c (hppa_gdbarch_init): Update.
* h8300-tdep.c (h8300_gdbarch_init): Update.
* frv-tdep.c (frv_gdbarch_init): Update.
* cris-tdep.c (cris_gdbarch_init): Update.
* avr-tdep.c (avr_gdbarch_init): Update.
* alpha-tdep.c (alpha_gdbarch_init): Update.
* arm-tdep.c (arm_gdbarch_init): Update.
Andrew Cagney [Fri, 13 Jun 2003 04:19:08 +0000 (04:19 +0000)]
2003-06-13 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
mips_o32_use_struct_convention with always_use_struct_convention.
DJ Delorie [Fri, 13 Jun 2003 01:50:48 +0000 (01:50 +0000)]
merge from gcc
David Carlton [Fri, 13 Jun 2003 00:55:43 +0000 (00:55 +0000)]
2003-06-12 David Carlton <carlton@kealia.com>
* cp-namespace.c (cp_set_block_scope): Comment out
processing_has_namespace_info branch.
Jim Blandy [Fri, 13 Jun 2003 00:06:11 +0000 (00:06 +0000)]
Recognize and skip 64-bit PowerPC Linux linkage functions.
* ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
insn_pattern, insns_match_pattern, d_field, ds_field): New
functions, macros, and types for working with PPC instructions.
(ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
ppc64_skip_trampoline_code): New functions, variables, and macros
for recognizing and skipping linkage functions.
(ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
Jim Blandy [Fri, 13 Jun 2003 00:03:03 +0000 (00:03 +0000)]
* ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
register offsets for both the 32- and 64-bit interfaces.
gdbadmin [Fri, 13 Jun 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 13 Jun 2003 00:00:06 +0000 (00:00 +0000)]
daily update
Jim Blandy [Thu, 12 Jun 2003 23:58:07 +0000 (23:58 +0000)]
Actually finish the job started by my change of 2003-05-29.
* config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
other #definition of this.
(ppc_linux_skip_trampoline_code): Remove declaration.
* ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
static.
(ppc_linux_init_abi): Register it as the skip_trampoline_code
method for GDBARCH.
Jim Blandy [Thu, 12 Jun 2003 23:36:21 +0000 (23:36 +0000)]
* config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
'long' on ppc64-*-linux*.
Jim Blandy [Thu, 12 Jun 2003 23:30:40 +0000 (23:30 +0000)]
* ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
isn't #defined, assume the register doesn't exist: act as if
tdep->ppc_mq_regnum were -1.
Jim Blandy [Thu, 12 Jun 2003 23:30:39 +0000 (23:30 +0000)]
* configure.host, configure.tgt: Add entries for
powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
powerpc/linux.mt.
* config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
New files.
Jim Blandy [Thu, 12 Jun 2003 23:25:37 +0000 (23:25 +0000)]
* arch-utils.c (always_use_struct_convention): New function.
* arch-utils.h (always_use_struct_convention): New prototype.
* alpha-tdep.c (alpha_use_struct_convention): Delete.
(alpha_gdbarch_init): Register always_use_struct_convention,
instead of alpha_use_struct_convention.
* cris-tdep.c (cris_use_struct_convention): Delete.
(cris_gdbarch_init): Register always_use_struct_convention,
instead of cris_use_struct_convention.
* frv-tdep.c (frv_use_struct_convention): Delete.
(frv_gdbarch_init): Register always_use_struct_convention,
instead of frv_use_struct_convention.
* h8300-tdep.c (h8300_use_struct_convention): Delete.
(h8300_gdbarch_init): Register always_use_struct_convention,
instead of h8300_use_struct_convention.
* mips_o32-tdep.c (mips_o32_use_struct_convention): Delete.
(mips_o32_gdbarch_init): Register always_use_struct_convention,
instead of mips_o32_use_struct_convention.
Andrew Cagney [Thu, 12 Jun 2003 18:01:28 +0000 (18:01 +0000)]
2003-06-12 Andrew Cagney <cagney@redhat.com>
* wince.c: Include "mips-tdep.h".
* mips-tdep.h (mips_next_pc): Declare.
* mcore-tdep.c: Make more local functions static.
* Makefile.in (wince.o): Update dependencies.
Jeff Johnston [Thu, 12 Jun 2003 17:55:06 +0000 (17:55 +0000)]
2003-06-12 Jeff Johnston <jjohnstn@redhat.com>
* gdb.base/float.exp: Add ia64 support.
Thiemo Seufer [Thu, 12 Jun 2003 17:07:14 +0000 (17:07 +0000)]
* ld-mips-elf/elf-rel-got-n64-linux.d: New file.
* ld-mips-elf/elf-rel-xgot-n64-linux.d: New file.
* ld-mips-elf/mips-elf.exp: Use the new files for Linux.
Thiemo Seufer [Thu, 12 Jun 2003 16:47:09 +0000 (16:47 +0000)]
* MAINTAINERS: Add myself as MIPS co-maintainer.
DJ Delorie [Thu, 12 Jun 2003 16:06:52 +0000 (16:06 +0000)]
Merge these:
2003-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* configure.in: Don't pass --with-stabs for mips*-sgi-irix6*o32.
* configure. Regenerate.
2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
* configure.in: Disable serial configure by default.
* configure: Regenerate.
* Makefile.tpl: Abolish .NOTPARALLEL.
* Makefile.in: Regenerate.
David Carlton [Thu, 12 Jun 2003 15:52:08 +0000 (15:52 +0000)]
2003-06-12 David Carlton <carlton@kealia.com>
* symtab.c (lookup_symbol_aux_minsyms): Replace
DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
(find_pc_sect_line, search_symbols, rbreak_command): Ditto.
(COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
SYMBOL_NATURAL_NAME.