binutils-gdb.git
21 years ago* elfxx-target.h (bfd_elfNN_canonicalize_reloc): Make it
Alexandre Oliva [Wed, 12 Mar 2003 22:52:12 +0000 (22:52 +0000)]
* elfxx-target.h (bfd_elfNN_canonicalize_reloc): Make it
overridable.
* elf64-mips.c (mips_elf64_canonicalize_reloc,
mips_elf64_get_dynamic_reloc_upper_bound,
mips_elf64_canonicalize_dynamic_reloc): New, adapted from elf.c.
(bfd_elf64_get_canonicalize_reloc,
bfd_elf64_get_dynamic_reloc_upper_bound,
bfd_elf64_canonicalize_dynamic_reloc): Define.
(mips_elf64_slurp_reloc_table): Support dynamic.
(mips_elf64_slurp_one_reloc_table): Adjust.

21 years ago2003-03-12 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Wed, 12 Mar 2003 22:39:16 +0000 (22:39 +0000)]
2003-03-12  Andrew Cagney  <cagney@redhat.com>

* frame.c (get_current_frame): Check target_has_registers before
checking target_has_stack.
* eval.c (evaluate_subexp_standard): Use get_selected_frame,
instead of deprecated_selected_frame.
* findvar.c (value_of_register): Pass "frame", not
deprecated_selected_frame, to value_of_builtin_reg.

21 years ago2003-03-12 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Wed, 12 Mar 2003 20:50:13 +0000 (20:50 +0000)]
2003-03-12  Andrew Cagney  <cagney@redhat.com>

* regcache.c (regcache_cooked_write_signed): New function.
(regcache_cooked_write_unsigned): New function.
(regcache_cooked_read_unsigned): Fix regnum in range assertion.
(regcache_cooked_read_signed): Fix regnum in range assertion.
* regcache.h (regcache_cooked_write_signed): Declare.
(regcache_cooked_write_unsigned): Declare.

21 years ago * Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES up. Delete unused
Nathanael Nerode [Wed, 12 Mar 2003 20:47:07 +0000 (20:47 +0000)]
* Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES up.  Delete unused
Make macro.
* Makefile.in: Regenerate.
* configure.in: Clean up gxx_include_dir logic.
* configure: Regenerate.

21 years agomerge from gcc
DJ Delorie [Wed, 12 Mar 2003 17:28:10 +0000 (17:28 +0000)]
merge from gcc

21 years ago2003-03-12 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Wed, 12 Mar 2003 16:50:47 +0000 (16:50 +0000)]
2003-03-12  Andrew Cagney  <cagney@redhat.com>

* gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
* gdbarch.h, gdbarch.c: Re-generate.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
* x86-64-tdep.h: Update.
* x86-64-tdep.c (x86_64_init_abi): 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.
* ppc-linux-tdep.c (ppc_linux_init_abi): Update.
* ns32k-tdep.c (ns32k_gdbarch_init): 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.
* i386-tdep.c (i386_gdbarch_init): Update.
* i386-interix-tdep.c (i386_interix_init_abi): 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.
* arm-tdep.c (arm_gdbarch_init): Update.
* alpha-tdep.c (alpha_gdbarch_init): Update.
* sh-tdep.c (sh_init_extra_frame_info): Update.
(sh64_init_extra_frame_info): Update.
* ns32knbsd-nat.c (frame_num_args): Update.
* m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
* xstormy16-tdep.c (xstormy16_pop_frame): Update.
(xstormy16_frame_chain_valid): Update.
* vax-tdep.c (vax_saved_pc_after_call): Update.
* v850-tdep.c (v850_frame_chain): Update.
(v850_pop_frame): Update.
(v850_init_extra_frame_info): Update.
* sparc-tdep.c (setup_arbitrary_frame): Update.
* ns32k-tdep.c (umax_frame_num_args): Update.
* s390-tdep.c (s390_pop_frame_regular): Update.
* mn10300-tdep.c (mn10300_frame_chain): Update.
(mn10300_pop_frame_regular): Update.
(mn10300_init_extra_frame_info): Update.
* mips-tdep.c (mips_init_frame_pc_first): Update.
(mips_frame_chain): Update.
(mips_pop_frame): Update.
* mcore-tdep.c (mcore_frame_chain): Update.
(mcore_pop_frame): Update.
(mcore_init_extra_frame_info): Update.
* arch-utils.c (init_frame_pc_default): Update.
* m68k-tdep.c (isi_frame_num_args): Update.
(delta68_frame_num_args): Update.
(news_frame_num_args): Update.
* ia64-tdep.c (ia64_pop_frame_regular): Update.
* alpha-tdep.c (alpha_init_frame_pc_first): Update.
(alpha_frame_chain): Update.
(alpha_pop_frame): Update.
* hppa-tdep.c (hppa_saved_pc_after_call): Update.
(hppa_init_extra_frame_info): Update.
(hppa_frame_chain): Update.
(hppa_frame_chain_valid): Update.
* cris-tdep.c (cris_init_extra_frame_info): Update.
* avr-tdep.c (avr_init_extra_frame_info): Update.
* arm-tdep.c (arm_frame_chain_valid): Update.
(arm_init_extra_frame_info): Update.
(arm_pop_frame): Update.
* frame.c (frame_pc_unwind): Update.
* config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
(DEPRECATED_INIT_FRAME_PC_FIRST): Update.
* config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
* config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
* config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
* config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.

2003-03-12  Andrew Cagney  <cagney@redhat.com>

* gdbint.texinfo (Target Architecture Definition): Rename
FRAME_SAVED_PC to DEPRECATED_FRAME_SAVED_PC.

21 years ago2003-03-12 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Wed, 12 Mar 2003 15:39:30 +0000 (15:39 +0000)]
2003-03-12  Andrew Cagney  <cagney@redhat.com>

Eliminate the need for POP_FRAME.
* frame.c (do_frame_unwind_register): New function.
(frame_pop): When no POP_FRAME, pop the frame using register
unwind and a scratch regcache.
(frame_saved_regs_pop): Delete function.
(trad_frame_unwinder): Update.
* d10v-tdep.c (d10v_frame_pop): Delete function.
(d10v_frame_unwind): Update.
* sentinel-frame.c (sentinel_frame_pop): Delete function.
(sentinel_frame_unwinder): Update.
* dummy-frame.c (dummy_frame_pop): Delete function.
(dummy_frame_unwind): Update.
* frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
(struct frame_unwind): Update.

21 years agomerge from gcc
DJ Delorie [Wed, 12 Mar 2003 15:08:02 +0000 (15:08 +0000)]
merge from gcc

21 years agoRename 'index' to 'offset'
Nick Clifton [Wed, 12 Mar 2003 09:59:52 +0000 (09:59 +0000)]
Rename 'index' to 'offset'

21 years ago * deffilep.y (def_lex): Accept '.' as valid non-lead char.
Danny Smith [Wed, 12 Mar 2003 08:38:16 +0000 (08:38 +0000)]
* deffilep.y (def_lex): Accept '.' as valid non-lead char.

21 years ago*** empty log message ***
gdbadmin [Wed, 12 Mar 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
Kevin Buettner [Tue, 11 Mar 2003 23:15:38 +0000 (23:15 +0000)]
* mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
mips_dwarf_dwarf2_ecoff_reg_to_regnum().
(mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
Do range checks on register number obtained from debugging info.
(mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
set_gdbarch_ecoff_reg_to_regnum() to account for new name of
mapping function.
(do_fp_register_row): Fix typo which caused double type to be
used when attempting to unpack a float.

21 years agodaily update
Alan Modra [Tue, 11 Mar 2003 23:00:07 +0000 (23:00 +0000)]
daily update

21 years ago * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
Richard Henderson [Tue, 11 Mar 2003 22:00:33 +0000 (22:00 +0000)]
    * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
        (TC_DWARF2_EMIT_OFFSET): Provide default.
        (out_debug_aranges, out_debug_info): Use it.
        * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
        (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
        (ia64_gen_real_reloc_type): ... here.
        * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.

21 years agomerge from gcc
DJ Delorie [Tue, 11 Mar 2003 20:18:26 +0000 (20:18 +0000)]
merge from gcc

21 years ago* ld-mips-elf/mips-elf.exp (linux_gnu): New variable. Add:
Alexandre Oliva [Tue, 11 Mar 2003 19:20:16 +0000 (19:20 +0000)]
* ld-mips-elf/mips-elf.exp (linux_gnu): New variable.  Add:
* ld-mips-elf/rel32-o32.d, ld-mips-elf/rel32-n32.d,
ld-mips-elf/rel64.d, ld-mips-elf/rel32.s, ld-mips-elf/rel64.s: New
tests.

21 years ago* elfxx-mips.c (mips_elf_create_dynamic_relocation): Do not create
Alexandre Oliva [Tue, 11 Mar 2003 19:11:38 +0000 (19:11 +0000)]
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Do not create
dynamic relocations pointing to local or section symbols, use the
NULL symbol instead.  Document the choice to not emit an
additional R_MIPS_64 relocation.

21 years ago * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
Joel Brobecker [Tue, 11 Mar 2003 19:07:01 +0000 (19:07 +0000)]
   * breakpoint.c (bpstat_stop_status): Fix a small memory leak.

21 years agoUpdate changelog entry for Klee's patch
Daniel Jacobowitz [Tue, 11 Mar 2003 18:35:29 +0000 (18:35 +0000)]
Update changelog entry for Klee's patch

21 years ago2003-03-11 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 11 Mar 2003 17:47:13 +0000 (17:47 +0000)]
2003-03-11  Andrew Cagney  <cagney@redhat.com>

* frame.c (deprecated_update_frame_pc_hack): Don't assume a next
frame.  Problem found by Corinna Vinschen.

21 years ago2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
Pierre Muller [Tue, 11 Mar 2003 16:38:52 +0000 (16:38 +0000)]
2003-03-11 Pierre Muller  <muller@ics.u-strasbg.fr>

* doublest.c (floatformat_from_length): Accept also
the real size of 'long double' type.

21 years ago*** empty log message ***
gdbadmin [Tue, 11 Mar 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago * breakpoint.c (bpstat_copy): Copy the command lines as well
Daniel Jacobowitz [Mon, 10 Mar 2003 23:37:29 +0000 (23:37 +0000)]
* breakpoint.c (bpstat_copy): Copy the command lines as well
as the old value, to match what is freed in bpstat_clear.

21 years ago * elf32-ppc.c (ppc_elf_relocate_section): Subtract tls seg vma from
Alan Modra [Mon, 10 Mar 2003 23:25:13 +0000 (23:25 +0000)]
* elf32-ppc.c (ppc_elf_relocate_section): Subtract tls seg vma from
zero index dynamic tls relocs generated for the GOT.  Tidy code.
Set "relocation" to 1 on DTPMOD32 relocs.  Optimize HA adjustment.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.

* ld-powerpc/tlsso.r: Adjust for corrected zero symbol index relocs.
* ld-powerpc/tlsso32.r: Likewise.

21 years agodaily update
Alan Modra [Mon, 10 Mar 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years ago2003-03-10 David Carlton <carlton@math.stanford.edu>
David Carlton [Mon, 10 Mar 2003 20:40:45 +0000 (20:40 +0000)]
2003-03-10  David Carlton  <carlton@math.stanford.edu>

* minsyms.c (add_minsym_to_hash_table): Replace
DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
(compare_minimal_symbols, compact_minimal_symbols)
(install_minimal_symbols, find_solib_trampoline_target): Ditto.
(lookup_minimal_symbol_text): Use strcmp on linkage names instead
of DEPRECATED_SYMBOL_MATCHES_NAME.
(lookup_minimal_symbol_solib_trampoline): Ditto.

21 years ago2003-03-10 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Mon, 10 Mar 2003 19:08:47 +0000 (19:08 +0000)]
2003-03-10  Andrew Cagney  <cagney@redhat.com>

* regcache.h (regcache_cooked_read_ftype): Define.
(regcache_save, regcache_restore): Add a cooked_read parameter.
* regcache.c (regcache_save, regcache_restore): Update.
(do_cooked_read): New function.
(regcache_cpy): Pass do_cooked_read to regcache_save and
regcache_restore.

21 years ago * gdb.texinfo: Add File-I/O documentation.
Corinna Vinschen [Mon, 10 Mar 2003 17:11:39 +0000 (17:11 +0000)]
* gdb.texinfo: Add File-I/O documentation.

21 years ago2003-03-10 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Mon, 10 Mar 2003 15:28:41 +0000 (15:28 +0000)]
2003-03-10  Andrew Cagney  <cagney@redhat.com>

* gdbarch.sh (gdbarch_unwind_pc): New method.
* gdbarch.h, gdbarch.c: Regenerate.
* frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
but use read_pc and FRAME_SAVED_PC as fall backs.
(frame_saved_regs_pc_unwind): Delete function.
(trad_frame_unwinder): Update.
* frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
(struct frame_unwind): Update.
* dummy-frame.c (dummy_frame_pc_unwind): Delete function.
(dummy_frame_unwind): Update.
* sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
(sentinel_frame_unwinder): Update.
* d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
(d10v_frame_unwind): Update.
(d10v_unwind_pc): New function.
(d10v_gdbarch_init): Set unwind_pc.

Index: doc/ChangeLog
2003-03-10  Andrew Cagney  <cagney@redhat.com>

* gdbint.texinfo (Target Architecture Definition): Cross reference
FRAME_SAVED_PC to unwind_pc.  Document unwind_pc.

21 years ago2003-03-10 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Mon, 10 Mar 2003 14:54:58 +0000 (14:54 +0000)]
2003-03-10  Andrew Cagney  <cagney@redhat.com>

* gdbarch.h: Re-generate.

21 years ago2003-03-10 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Mon, 10 Mar 2003 14:43:15 +0000 (14:43 +0000)]
2003-03-10  Andrew Cagney  <cagney@redhat.com>

* d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
PC.
(d10v_frame_pop): Unwind the PC, and not the LR, when restoring
the PC register.

21 years ago*** empty log message ***
gdbadmin [Mon, 10 Mar 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Sun, 9 Mar 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years ago2003-03-10 Ben Elliston <bje@wasabisystems.com>
Ben Elliston [Sun, 9 Mar 2003 22:52:02 +0000 (22:52 +0000)]
2003-03-10  Ben Elliston  <bje@wasabisystems.com>

* MAINTAINERS: Update my mail address.

21 years ago* configure.in (gxx_include_dir): Fix typo.
DJ Delorie [Sun, 9 Mar 2003 18:43:06 +0000 (18:43 +0000)]
* configure.in (gxx_include_dir): Fix typo.
* configure: Regenerated.

21 years ago * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
Thiemo Seufer [Sun, 9 Mar 2003 16:16:31 +0000 (16:16 +0000)]
* config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
(s_mips_ent): Likewise.

21 years ago*** empty log message ***
gdbadmin [Sun, 9 Mar 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Sat, 8 Mar 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years ago* gdbarch.sh (save_dummy_frame_tos): Add comment.
Mark Kettenis [Sat, 8 Mar 2003 22:16:45 +0000 (22:16 +0000)]
* gdbarch.sh (save_dummy_frame_tos): Add comment.

21 years agoIndex: ChangeLog
Andrew Cagney [Sat, 8 Mar 2003 20:04:27 +0000 (20:04 +0000)]
Index: ChangeLog
2003-03-08  Andrew Cagney  <cagney@redhat.com>

* cli-out.c: Update copyright.
(cli_out_data): Define typedef.  Use instead of ui_out_data.

Index: mi/ChangeLog
2003-03-08  Andrew Cagney  <cagney@redhat.com>

* mi-out.c: Update copyright.
(mi_out_data): Define typedef.  Use instead of ui_out_data.

Index: tui/ChangeLog
2003-03-08  Andrew Cagney  <cagney@redhat.com>

* tui-out.c: Update copyright.
(tui_out_data): Define typedef.  Use instead of ui_out_data.

21 years ago2003-03-08 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sat, 8 Mar 2003 19:27:12 +0000 (19:27 +0000)]
2003-03-08  Andrew Cagney  <cagney@redhat.com>

* valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
the result.

21 years ago* configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after apparent
Christopher Faylor [Sat, 8 Mar 2003 03:35:48 +0000 (03:35 +0000)]
* configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after apparent
accidental removal on 2003-01-06.

21 years ago*** empty log message ***
gdbadmin [Sat, 8 Mar 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2003-03-07 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Fri, 7 Mar 2003 23:43:26 +0000 (23:43 +0000)]
2003-03-07  Andrew Cagney  <cagney@redhat.com>

* gdb.texinfo (Debugging Output): Mention the "set/show debug
frame" command.

21 years ago2003-03-07 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Fri, 7 Mar 2003 23:34:15 +0000 (23:34 +0000)]
2003-03-07  Andrew Cagney  <cagney@redhat.com>

* gdbarch.sh: Don't generate two macro definitions when an
undefined macro taking no arguments.
* gdbarch.h: Regenerate.

21 years agodaily update
Alan Modra [Fri, 7 Mar 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years ago2002-03-07 Michal Ludvig <mludvig@suse.cz>
Michal Ludvig [Fri, 7 Mar 2003 15:07:51 +0000 (15:07 +0000)]
2002-03-07  Michal Ludvig  <mludvig@suse.cz>

* x86-64-tdep.c (x86_64_save_dummy_frame_tos)
(x86_64_unwind_dummy_id): New functions.
(x86_64_init_abi): Register these two new functions.

21 years ago2003-03-07 Michal Ludvig <mludvig@suse.cz>
Michal Ludvig [Fri, 7 Mar 2003 10:43:00 +0000 (10:43 +0000)]
2003-03-07  Michal Ludvig  <mludvig@suse.cz>

* x86-64-tdep.c (x86_64_function_has_prologue): New function.
(x86_64_skip_prologue): Move prologue detection to
separate function.
* x86-64-tdep.h (x86_64_function_has_prologue): New prototype.

21 years ago * elf32-ppc.c (ppc_elf_relocate_section): Don't look for a nop after
Alan Modra [Fri, 7 Mar 2003 01:09:01 +0000 (01:09 +0000)]
* elf32-ppc.c (ppc_elf_relocate_section): Don't look for a nop after
a tls_get_addr call.

21 years ago*** empty log message ***
gdbadmin [Fri, 7 Mar 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago * elf32-ppc.c (ELIMINATE_COPY_RELOCS): Define as one.
Alan Modra [Thu, 6 Mar 2003 23:26:20 +0000 (23:26 +0000)]
* elf32-ppc.c (ELIMINATE_COPY_RELOCS): Define as one.
(ppc_elf_adjust_dynamic_symbol): For weak symbols, copy
ELF_LINK_NON_GOT_REF from weakdef.
* elf64-ppc.c (ELIMINATE_COPY_RELOCS): Define as one.
(ppc64_elf_adjust_dynamic_symbol): For weak symbols, copy
ELF_LINK_NON_GOT_REF from weakdef.
* elf32-i386.c (ELIMINATE_COPY_RELOCS): Define as one.  Use throughout.
(elf_i386_adjust_dynamic_symbol): For weak symbols, copy
ELF_LINK_NON_GOT_REF from weakdef.

21 years agodaily update
Alan Modra [Thu, 6 Mar 2003 23:00:04 +0000 (23:00 +0000)]
daily update

21 years ago2003-03-06 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Thu, 6 Mar 2003 20:50:01 +0000 (20:50 +0000)]
2003-03-06  Andrew Cagney  <cagney@redhat.com>

* texinfo/texinfo.tex: Import version 2003-02-03.16.

21 years agoRemove redundant defintions of BYTES_IN_WORD and add conditional defintion in
Nick Clifton [Thu, 6 Mar 2003 16:45:42 +0000 (16:45 +0000)]
Remove redundant defintions of BYTES_IN_WORD and add conditional defintion in
aout64.h.

21 years ago2003-03-06 Jakub Jelinek <jakub@redhat.com>
Andrew Haley [Thu, 6 Mar 2003 15:47:23 +0000 (15:47 +0000)]
2003-03-06  Jakub Jelinek <jakub@redhat.com>
        Andrew Haley  <aph@redhat.com>

        * elflink.h (elf_bfd_discard_info): Don't process eh frames if
        output is relocateable.

21 years ago(som_fixup_formats): Correct formats for R_AUX_UNWIND and R_COMMENT.
Nick Clifton [Thu, 6 Mar 2003 12:29:04 +0000 (12:29 +0000)]
(som_fixup_formats): Correct formats for R_AUX_UNWIND and R_COMMENT.

21 years ago * elf32-ppc.c (ppc_elf_create_linker_section): Don't capitalize
Alan Modra [Thu, 6 Mar 2003 11:32:43 +0000 (11:32 +0000)]
* elf32-ppc.c (ppc_elf_create_linker_section): Don't capitalize
error messages.
(ELIMINATE_COPY_RELOCS): Define to zero.
(ppc_elf_relocate_section): Don't deref htab->tls_sec when calculating
TLSLD relocs.  Report reloc types on a number of errors.  Optimize
LOCAL24PC check for non-local syms.  Don't capitalize error messages.
* elf64-ppc.c (ELIMINATE_COPY_RELOCS): Define to zero.
(ppc64_elf_relocate_section): Don't deref htab->tls_sec when
calculating TLSLD relocs.  Report reloc types on a number of errors.
Don't capitalize error messages.

21 years ago*** empty log message ***
gdbadmin [Thu, 6 Mar 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2003-03-05 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Wed, 5 Mar 2003 23:14:18 +0000 (23:14 +0000)]
2003-03-05  Andrew Cagney  <cagney@redhat.com>

* d10v-tdep.c (d10v_unwind_dummy_id): New function.
(d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
* frame.c (get_prev_frame): Restructure the frame ID unwind code
to use unwind_dummy_id when a dummy frame.
* gdbarch.sh (unwind_dummy_id): New multi-arch method with
predicate.
* gdbarch.h, gdbarch.c: Regneerate.

Index: doc/ChangeLog
2003-03-05  Andrew Cagney  <cagney@redhat.com>

* gdbint.texinfo (Target Architecture Definition): Document
unwind_dummy_id.  Cross reference unwind_dummy_id and
SAVE_DUMMY_FRAME_TOS.

21 years agodaily update
Alan Modra [Wed, 5 Mar 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years ago2003-03-05 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Wed, 5 Mar 2003 22:54:22 +0000 (22:54 +0000)]
2003-03-05  Andrew Cagney  <cagney@redhat.com>

* d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
(d10v_frame_unwind_cache): Rewrite code computing the base and SP.
Do not use d10v_read_sp or d10v_read_fp when obtaining register
values.

21 years ago2003-03-05 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Wed, 5 Mar 2003 20:57:28 +0000 (20:57 +0000)]
2003-03-05  Andrew Cagney  <cagney@redhat.com>

* d10v-tdep.c (struct frame_extra_info): Delete unused structure.
(struct d10v_unwind_cache): Delete field "frameless".  Replace
"next_addr" with "sp_offset".  Add "r11_offset".
(d10v_frame_unwind_cache): Update.
(prologue_find_regs): Update.  When "mv r11, sp", save the
"sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
RN was saved in r11_offset.

21 years ago2003-03-05 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Wed, 5 Mar 2003 20:26:46 +0000 (20:26 +0000)]
2003-03-05  Andrew Cagney  <cagney@redhat.com>

* frame.c (deprecated_update_frame_pc_hack): Also update the the
cached PC value in the next frame.

21 years ago2003-03-05 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Wed, 5 Mar 2003 18:51:17 +0000 (18:51 +0000)]
2003-03-05  Andrew Cagney  <cagney@redhat.com>

* frame.h (struct frame_info): Replace "id_unwind_cache_p" and
"id_unwind_cache" with "id".
(frame_id_unwind): Delete declaration.
* frame.c (frame_id_unwind): Delete function.
(get_prev_frame): Call the frame id unwind method directly.  Store
the returned next frame's ID value in NEXT_FRAME.  Note that there
is a problem with the wrong unwind ID being called with the wrong
unwind cache.

21 years ago * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
Daniel Jacobowitz [Wed, 5 Mar 2003 18:07:15 +0000 (18:07 +0000)]
* Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.

21 years ago * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
Daniel Jacobowitz [Wed, 5 Mar 2003 18:01:46 +0000 (18:01 +0000)]
* cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
(auto_cp_abi): New variable.
(current_cp_abi, num_cp_abis): Make static.
(CP_ABI_MAX): Define.
(cp_abis): Turn into an array.
(value_virtual_fn_field): Fix formatting.
(switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
takes a pointer.
(set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
(list_cp_abis, _initialize_cp_abi): New functions.
* cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
declarations for cp_abis, num_cp_abis, current_cp_abi, and
switch_to_cp_abi.  Update prototype for register_cp_abi.
* Makefile.in (cp-abi.o): Update dependencies.
* minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
instead of switch_to_cp_abi.
* gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
register_cp_abi.
* gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
register_cp_abi.
* hpacc-abi.c (_initialize_hpacc_abi): Likewise.

21 years ago * gdb.texinfo (Configuring the current ABI): Document "set cp-abi"
Daniel Jacobowitz [Wed, 5 Mar 2003 18:01:35 +0000 (18:01 +0000)]
* gdb.texinfo (Configuring the current ABI): Document "set cp-abi"
and "show cp-abi".

21 years ago * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
Daniel Jacobowitz [Wed, 5 Mar 2003 18:00:02 +0000 (18:00 +0000)]
* dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
* dwarf2loc.c: Include "regcache.h".
(dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
register_size.
* Makefile.in (dwarf2loc.o): Update dependencies.

21 years ago2003-03-04 Daniel Jacobowitz <drow@mvista.com>
Nathanael Nerode [Wed, 5 Mar 2003 01:50:53 +0000 (01:50 +0000)]
2003-03-04  Daniel Jacobowitz  <drow@mvista.com>

* configure.in: Include $(build_tooldir)/sys-include in
FLAGS_FOR_TARGET.
* configure: Regenerated.

2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.tpl: Reindent.
* Makefile.in: Regenerate.
* configure.in: Reindent.  Don't set unused variables.
* configure: Regenerate.

21 years ago* avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
Theodore A. Roth [Wed, 5 Mar 2003 00:19:56 +0000 (00:19 +0000)]
* avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
number of io registers reported by remote target is not a multiple of step.

21 years ago*** empty log message ***
gdbadmin [Wed, 5 Mar 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Tue, 4 Mar 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years ago2003-03-04 David Carlton <carlton@math.stanford.edu>
David Carlton [Tue, 4 Mar 2003 17:06:21 +0000 (17:06 +0000)]
2003-03-04  David Carlton  <carlton@math.stanford.edu>

* symtab.c (lookup_partial_symbol): Add linkage_name argument.
(lookup_symbol_aux_psymtabs): Update call to
lookup_partial_symbol.
(lookup_transparent_type, find_main_psymtab)
(make_symbol_overload_list): Ditto.

21 years agoAdd new devices x1122 x1132 emulation.
Nick Clifton [Tue, 4 Mar 2003 17:02:40 +0000 (17:02 +0000)]
Add new devices x1122 x1132 emulation.

21 years ago2003-03-04 David Carlton <carlton@math.stanford.edu>
David Carlton [Tue, 4 Mar 2003 17:02:20 +0000 (17:02 +0000)]
2003-03-04  David Carlton  <carlton@math.stanford.edu>

* gdb.c++/templates.exp (do_tests): Accept valid const in "print
Garply<Garply<char> >:: garply".
(test_ptype_of_templates): KFAIL "ptype T5<int>" and "ptype t5i"
with respect to PR c++/1111; note also PR c++/1113.
(test_template_breakpoints): KFAIL "constructor breakpoint" with
respect to PR c++/1062.
KFAIL "destructor breakpoint" with respect to PR c++/1112.

21 years agofix spelling typo.
Nick Clifton [Tue, 4 Mar 2003 16:36:40 +0000 (16:36 +0000)]
fix spelling typo.

21 years ago(mcu_types): Add recenly announced x1122 and x1123 devices, add missed x437.
Nick Clifton [Tue, 4 Mar 2003 16:34:40 +0000 (16:34 +0000)]
(mcu_types): Add recenly announced x1122 and x1123 devices, add missed x437.
(md_show_usage): Sort device list.

21 years ago * MAINTAINERS (Write after approval): Update my email address.
Kazu Hirata [Tue, 4 Mar 2003 16:33:06 +0000 (16:33 +0000)]
* MAINTAINERS (Write after approval): Update my email address.

21 years ago(print_symbol): Remove check for undefined_only.
Nick Clifton [Tue, 4 Mar 2003 16:23:46 +0000 (16:23 +0000)]
(print_symbol): Remove check for undefined_only.
(main): Print a warning message if --size-sort and --undefined-only are used
together.

21 years agoReally commit it... dunno what happened last time.
Nathanael Nerode [Tue, 4 Mar 2003 08:36:40 +0000 (08:36 +0000)]
Really commit it... dunno what happened last time.

21 years ago * mh-dgux: Delete.
Nathanael Nerode [Tue, 4 Mar 2003 07:48:49 +0000 (07:48 +0000)]
* mh-dgux: Delete.

21 years ago * Makefile.tpl: Always pass down RANLIB.
Nathanael Nerode [Tue, 4 Mar 2003 07:48:06 +0000 (07:48 +0000)]
* Makefile.tpl: Always pass down RANLIB.
* Makefile.in: Regenerate.

* Makefile.tpl: Don't set unused enable_shared, enable_threads macros.
* Makefile.in: Regenerate.
* configure.in: Remove unused logic relating to --enable-shared
and --enable-threads.  Remove bogus comments.  Remove redundant
noconfigdirs.
* configure: Regenerate.

* configure.in: Replace ${libstdcxx_version} by its value.
Remove reference to mh-dgux.
* configure: Regenerate.

21 years agomerge from gcc
DJ Delorie [Tue, 4 Mar 2003 03:02:50 +0000 (03:02 +0000)]
merge from gcc

21 years ago*** empty log message ***
gdbadmin [Tue, 4 Mar 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2003-03-03 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Mon, 3 Mar 2003 23:28:55 +0000 (23:28 +0000)]
2003-03-03  Andrew Cagney  <cagney@redhat.com>

* gdbint.texinfo (Target Architecture Definition): Document
register_type.

21 years ago2003-03-03 H.J. Lu <hjl@gnu.org>
H.J. Lu [Mon, 3 Mar 2003 23:19:19 +0000 (23:19 +0000)]
2003-03-03  H.J. Lu <hjl@gnu.org>

* elfxx-ia64.c (USE_BRL): Removed.
(oor_ip): Removed.

21 years ago2003-03-03 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Mon, 3 Mar 2003 23:16:27 +0000 (23:16 +0000)]
2003-03-03  Andrew Cagney  <cagney@redhat.com>

* stabs.texinfo (Structures): Use @samp and separate @var's
instead of a single @var containing a comma separated list.
(Unions): Ditto.

21 years agodaily update
Alan Modra [Mon, 3 Mar 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years agoFix sh-elf linker relaxation:
Joern Rennecke [Mon, 3 Mar 2003 21:04:01 +0000 (21:04 +0000)]
Fix sh-elf linker relaxation:

gcc:
* config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
subtarget_asm_isa_spec.
(SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
(ASM_SPEC): Define as SH_ASM_SPEC.
(SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
* config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
(SUBTARGET_ASM_ISA_SPEC): Undef / define.
gcc/testsuite:
gcc.dg/sh-relax.c: New test.

include/elf:
* sh.h (EF_SH_MERGE_MACH): Make sure SH2E & SH3/SH3E merge to SH3E,
and SH2E & SH4 merge to SH4, not SH2E.

gas:
* config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
(md_begin): Use preset_target_arch.
(md_longopts): Make isa option unconditional.
(md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
set preset_target_arch.
(md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
by -S_GET_VALUE  (fixP->fx_subsy).
(tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
and the addend is 0.
Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
* config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.

bfd:
elf32-sh.c (sh_elf_howto_tab): Make R_SH_IND12W into an ordinary
relocation (no special function), and make it non-partial_inplace.
(sh_elf_relax_section): When creating a bsr, use a consistent value
no matter if the symbol is extern or not;  set addend to -4.
Don't swap load / non-load instructions for SH4.
(sh_elf_relax_delete_bytes): In R_SH_IND12W case, check the offset
rather than if the symbol is external to determine if adjusting the
offset makes sense.  Adjust the addend too if appropriate.
(sh_elf_relocate_section): In R_SH_IND12W, don't fiddle with the
relocation.

21 years ago2003-03-03 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Mon, 3 Mar 2003 20:50:20 +0000 (20:50 +0000)]
2003-03-03  Andrew Cagney  <cagney@redhat.com>

Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
* gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
predicate.  Replace MAX_REGISTER_RAW_SIZE.
(DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
MAX_REGISTER_VIRTUAL_SIZE.
* regcache.c (legacy_max_register_raw_size): New function.
(legacy_max_register_virtual_size): New function.
* defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
(MAX_REGISTER_RAW_SIZE): Define.
(legacy_max_register_raw_size): Declare.
(legacy_max_register_virtual_size): Declare.
* config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
(DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
* config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
(DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
* config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
(DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
* config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
* config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
* config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
* 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 (ns32k_gdbarch_init): 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.
* i386-tdep.c (i386_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.
* arm-tdep.c (arm_gdbarch_init): Update.
* alpha-tdep.c (alpha_gdbarch_init): Update.
* d10v-tdep.c (d10v_gdbarch_init): Do not set
max_register_raw_size or max_register_virtual_size.

21 years ago* ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
Alexandre Oliva [Mon, 3 Mar 2003 20:01:02 +0000 (20:01 +0000)]
* ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
well.

21 years ago* ldfile.h (struct search_dirs): Added sysrooted field.
Alexandre Oliva [Mon, 3 Mar 2003 20:00:35 +0000 (20:00 +0000)]
* ldfile.h (struct search_dirs): Added sysrooted field.
* ldlang.h (struct lang_input_statement_struct): Likewise.
* ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
(ldfile_open_file_search): Look for sysrooted filename starting
with / in ld_sysroot instead of in the current directory.  Clear
sysrooted flag if it's found in the current directory.  Set it
from the search directory's sysrooted flag where it is found
otherwise.
* ldlang.c (ldlang_sysrooted_script): New static variable.
(new_afile): Mark search_file_enums as sysrooted if
ldlang_sysrooted_script.
(load_symbols): Set ldlang_sysrooted_script according to the
script's sysrooted field while processing it.
* ld.texinfo: Document INPUT behavior in sysroot.

21 years ago * aclocal.m4: Add check for mbrtowc.
Joel Brobecker [Mon, 3 Mar 2003 18:52:27 +0000 (18:52 +0000)]
    * aclocal.m4: Add check for mbrtowc.
        * config.h.in: Regenerate.
        * configure: Regenerate.
        * rlmbutil.h: Disable multi-byte if mbrtowc is not defined.

21 years ago2003-02-28 David Carlton <carlton@math.stanford.edu>
David Carlton [Mon, 3 Mar 2003 18:48:31 +0000 (18:48 +0000)]
2003-02-28  David Carlton  <carlton@math.stanford.edu>

* gdb.c++/classes.exp (test_enums): KFAIL "ptype obj_with_enum"
with respect to PR c++/57.
KFAIL "print (ClassWithEnum::PrivEnum) 42" with respect to PR
c++/826.
Create "print ('ClassWithEnum::PrivEnum') 42"; KFAIL it with
respect to PR c++/57.

21 years ago2003-03-03 David Carlton <carlton@math.stanford.edu>
David Carlton [Mon, 3 Mar 2003 18:39:47 +0000 (18:39 +0000)]
2003-03-03  David Carlton  <carlton@math.stanford.edu>

* gdb.c++/templates.exp (do_tests): Convert the KFAILs with
respect to PR c++/33 into FAILs.

21 years ago2003-03-03 David Carlton <carlton@math.stanford.edu>
David Carlton [Mon, 3 Mar 2003 18:34:12 +0000 (18:34 +0000)]
2003-03-03  David Carlton  <carlton@math.stanford.edu>

* symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
SYMBOL_MATCHES_NAME, add comment.
(SYMBOL_MATCHES_NATURAL_NAME): New.
* minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
(lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
* symtab.c (lookup_partial_symbol): Use
SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
unhelpful comment.
(lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
SYMBOL_MATCHES_NAME.
Fix for PR c++/33.

21 years ago2003-03-03 David Carlton <carlton@math.stanford.edu>
David Carlton [Mon, 3 Mar 2003 18:01:33 +0000 (18:01 +0000)]
2003-03-03  David Carlton  <carlton@math.stanford.edu>

* symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
* symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
by regexp matching against SYMBOL_NATURAL_NAME.

21 years ago2003-03-03 David Carlton <carlton@math.stanford.edu>
David Carlton [Mon, 3 Mar 2003 17:20:24 +0000 (17:20 +0000)]
2003-03-03  David Carlton  <carlton@math.stanford.edu>

* linespec.c (find_method): Extract code into collect_methods.
(collect_methods): New.

21 years ago2003-03-03 Michael Chastain <mec@shout.net>
Michael Chastain [Mon, 3 Mar 2003 15:45:24 +0000 (15:45 +0000)]
2003-03-03  Michael Chastain  <mec@shout.net>

* configure.in: Update copyright years.

21 years ago2003-03-03 Michael Chastain <mec@shout.net>
Michael Chastain [Mon, 3 Mar 2003 15:18:20 +0000 (15:18 +0000)]
2003-03-03  Michael Chastain  <mec@shout.net>

* Makefile.in: update copyright years.