binutils-gdb.git
22 years ago * config/obj-coff.h: Fix formatting.
Kazu Hirata [Sat, 11 May 2002 09:53:52 +0000 (09:53 +0000)]
* config/obj-coff.h: Fix formatting.
* config/tc-mcore.c: Likewise.
* config/tc-mn10300.c: Likewise.
* config/tc-openrisc.c: Likewise.
* config/tc-or32.c: Likewise.
* config/tc-pdp11.c: Likewise.
* config/tc-ppc.c: Likewise.
* config/tc-ppc.h: Likewise.
* config/tc-sh64.c: Likewise.
* config/tc-sh.c: Likewise.
* config/tc-tic54x.c: Likewise.
* config/tc-xstormy16.c: Likewise.
* config/tc-xstormy16.h: Likewise.

22 years agoAdd configure supprot for: alpha*-*-openbsd*, sparc64*-*-openbsd*,
Nick Clifton [Sat, 11 May 2002 09:10:14 +0000 (09:10 +0000)]
Add configure supprot for: alpha*-*-openbsd*, sparc64*-*-openbsd*,
hppa*-*-openbsd*

22 years agoFrom Christian Limpach <chris@Pin.LU>
Jason Thorpe [Sat, 11 May 2002 00:40:25 +0000 (00:40 +0000)]
From Christian Limpach <chris@Pin.LU>
* configure.in: Change sed expression which comments out
NATDEPFILES to also comment out continuation lines.
* configure: Regenerate.

22 years ago*** empty log message ***
gdbadmin [Sat, 11 May 2002 00:00:06 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Sat, 11 May 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago2002-05-10 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Fri, 10 May 2002 23:59:09 +0000 (23:59 +0000)]
2002-05-10  Elena Zannoni  <ezannoni@redhat.com>

        * sh-tdep.c: Clean up code erroneously reintroduced by previous
big patch.

22 years ago2002-05-10 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Fri, 10 May 2002 23:43:04 +0000 (23:43 +0000)]
2002-05-10  Michael Snyder  <msnyder@redhat.com>

* gdb.base/long_long.exp: Fix typo.

22 years ago2002-05-10 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Fri, 10 May 2002 23:22:10 +0000 (23:22 +0000)]
2002-05-10  Elena Zannoni  <ezannoni@redhat.com>

        * sh-tdep.c: Include correct file.

22 years ago2002-05-10 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Fri, 10 May 2002 23:00:23 +0000 (23:00 +0000)]
2002-05-10  Elena Zannoni  <ezannoni@redhat.com>

        New support for sh64-elf (sh5) target.

        * configure.tgt: For sh64-elf target, default to sh-elf.

        * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
        (struct gdbarch_tdep): Add new fields for new registers and ABI
        info.

        * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.

        (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
        MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
        UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
        IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
        IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
        IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
        IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
        IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
        IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
        IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.

        (sh_sh64_register_name, sh64_elf_make_msymbol_special,
        pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
        sh64_skip_prologue_hard_way, sh64_use_struct_convention,
        gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
        sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
        sh64_get_gdb_regnum, sh64_media_reg_base_num,
        sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
        sign_extend, sh64_nofp_frame_init_saved_regs,
        sh64_init_extra_frame_info, sh64_get_saved_register,
        sh64_extract_struct_value_address, sh64_pop_frame,
        sh64_push_arguments, sh64_extract_return_value,
        sh64_store_return_value, sh64_show_media_regs,
        sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
        sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
        sh_sh64_register_virtual_type,
        sh_sh64_register_convert_to_virtual,
        sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
        sh64_register_read, sh64_pseudo_register_write,
        sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
        do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
        sh64_do_pseudo_register, sh_compact_do_registers_info,
        sh64_do_registers_info, sh_gdbarch_init): New functions.

22 years ago2002-05-10 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Fri, 10 May 2002 22:53:56 +0000 (22:53 +0000)]
2002-05-10  Elena Zannoni  <ezannoni@redhat.com>

        * sim-sh.h: New file, for sh gdb<->sim interface.

22 years ago2002-05-10 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Fri, 10 May 2002 22:20:18 +0000 (22:20 +0000)]
2002-05-10  Elena Zannoni  <ezannoni@redhat.com>

* sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.

22 years agoXCOFF64 fixes. For setting arch/mach and for R_BR relocations.
Tom Rix [Fri, 10 May 2002 21:20:16 +0000 (21:20 +0000)]
XCOFF64 fixes. For setting arch/mach and for R_BR relocations.

22 years ago* gdb.base/printcmds.exp: Don't xfail the ptype command. This is
Jim Blandy [Fri, 10 May 2002 20:25:26 +0000 (20:25 +0000)]
* gdb.base/printcmds.exp: Don't xfail the ptype command.  This is
a bug.

22 years ago2002-05-10 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Fri, 10 May 2002 20:05:27 +0000 (20:05 +0000)]
2002-05-10 Daniel Jacobowitz  <drow@mvista.com>

        * linespec.c (decode_line_1): Check for a double quote after
        a filename correctly.

22 years ago* gdb.base/printcmds.exp (test_integer_literals_rejected):
Jim Blandy [Fri, 10 May 2002 18:38:09 +0000 (18:38 +0000)]
* gdb.base/printcmds.exp (test_integer_literals_rejected):
Recognize more detailed error message produced by the macro
expander's lexical analyzer.
* lib/gdb.exp (test_print_reject): Same.

22 years agoProperly track the size of the current objfile's .debug_line section.
Jim Blandy [Fri, 10 May 2002 17:03:25 +0000 (17:03 +0000)]
Properly track the size of the current objfile's .debug_line section.
* dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
(DWARF_LINE_SIZE): New macro.
(dwarf2_build_psymtabs_hard): Record the line section's size in
the partial symbol table.
(psymtab_to_symtab_1): Restore dwarf_line_size from the partial
symbol table.

22 years agoHandle breakpoints on L instruction type in MLX instruction bundle by
Petr Sorfa [Fri, 10 May 2002 16:08:24 +0000 (16:08 +0000)]
Handle breakpoints on L instruction type in MLX instruction bundle by
moving the breakpoint to the third slot (X instruction type) as L holds
only data.

22 years ago * ldmain.c (main): Enable -z combreloc by default.
Jakub Jelinek [Fri, 10 May 2002 09:49:25 +0000 (09:49 +0000)]
* ldmain.c (main): Enable -z combreloc by default.

22 years ago * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
Alan Modra [Fri, 10 May 2002 07:34:52 +0000 (07:34 +0000)]
* elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
addend in 2002-05-09 commit.

22 years ago * dbxread.c (discarding_local_symbols_complaint): New complaint.
Kevin Buettner [Fri, 10 May 2002 07:32:50 +0000 (07:32 +0000)]
* dbxread.c (discarding_local_symbols_complaint): New complaint.
(process_one_symbol): Complain about discarding local symbols
due to a misplaced N_LBRAC entry.

22 years ago * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
Alan Modra [Fri, 10 May 2002 02:03:47 +0000 (02:03 +0000)]
* elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
don't look for stubs on all undefined syms.

22 years ago2002-05-09 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Fri, 10 May 2002 00:29:23 +0000 (00:29 +0000)]
2002-05-09  Elena Zannoni  <ezannoni@redhat.com>

From Daniel Berlin <dan@cgsoftware.com>
* linespec.c (find_toplevel_char): '<' and '>' also increase and
decrease the depth we are at, in the case of templates.

22 years agodaily update
Alan Modra [Fri, 10 May 2002 00:00:04 +0000 (00:00 +0000)]
daily update

22 years ago*** empty log message ***
gdbadmin [Fri, 10 May 2002 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

22 years agoCheck in change missed when sh*-*-netbsdelf* was added:
Jason Thorpe [Thu, 9 May 2002 23:38:20 +0000 (23:38 +0000)]
Check in change missed when sh*-*-netbsdelf* was added:

* NEWS: Note new sh*-*-netbsdelf* configuration.

22 years ago* vax-dis.c (print_insn_arg): Pass the insn info to print_insn_mode.
Jason Thorpe [Thu, 9 May 2002 23:11:30 +0000 (23:11 +0000)]
* vax-dis.c (print_insn_arg): Pass the insn info to print_insn_mode.
(print_insn_mode): Print some basic info about floating point values.

22 years agoH2002-05-09 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Thu, 9 May 2002 22:26:00 +0000 (22:26 +0000)]
H2002-05-09  Daniel Jacobowitz  <drow@mvista.com>

        * mips-tdep.c (mips_float_register_type): New function.
        (mips_double_register_type): New function.
        (mips_print_register): Use them.
        (do_fp_register_row): Likewise.

22 years agoCorrect ChangeLog entry to:
Daniel Jacobowitz [Thu, 9 May 2002 22:21:39 +0000 (22:21 +0000)]
Correct ChangeLog entry to:

2002-05-09  Daniel Jacobowitz  <drow@mvista.com>

        * signals/signals.c (signals): Remove conditional compilation around
        Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
        (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.

22 years ago2002-05-09 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Thu, 9 May 2002 22:20:29 +0000 (22:20 +0000)]
2002-05-09  Daniel Jacobowitz  <drow@mvista.com>

        * signals/signals.c (signals): Remove conditional compilation around
        Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
        (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.

22 years ago2002-05-09 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Thu, 9 May 2002 22:19:48 +0000 (22:19 +0000)]
2002-05-09  Daniel Jacobowitz  <drow@mvista.com>

        * signals.h: Update comments.
        (enum target_signal): Remove conditional compilation around
        Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.

22 years ago* gdb.c++/method.exp: Fix typo.
Mark Kettenis [Thu, 9 May 2002 20:07:16 +0000 (20:07 +0000)]
* gdb.c++/method.exp: Fix typo.

22 years ago2002-05-09 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 9 May 2002 18:44:49 +0000 (18:44 +0000)]
2002-05-09  Michael Snyder  <msnyder@redhat.com>

* remote-rdp.c (remote_rdp_can_run): Remove.

22 years ago2002-05-08 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 9 May 2002 18:29:33 +0000 (18:29 +0000)]
2002-05-08  Michael Snyder  <msnyder@redhat.com>

        * gdb.mi/mi-var-child.exp: Accept (void) as well as ().
* gdb.mi/mi0-var-child.exp: Accept (void) as well as ().

22 years ago * jv-valprint.c (java_val_print): Handle `char' as a special case
Tom Tromey [Thu, 9 May 2002 18:23:41 +0000 (18:23 +0000)]
* jv-valprint.c (java_val_print): Handle `char' as a special case
of TYPE_CODE_INT.

22 years ago2002-05-09 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 9 May 2002 18:17:22 +0000 (18:17 +0000)]
2002-05-09  Michael Snyder  <msnyder@redhat.com>

* gdb.base/long_long.exp: Add iftarget clause for strongarm.

22 years ago2002-05-08 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 9 May 2002 18:12:00 +0000 (18:12 +0000)]
2002-05-08  Michael Snyder  <msnyder@redhat.com>

* stabs.texinfo (Attributes): Document new "vector" attribute.

22 years ago2002-05-06 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 9 May 2002 18:11:17 +0000 (18:11 +0000)]
2002-05-06  Michael Snyder  <msnyder@redhat.com>

* stabsread.c (read_type): Add recognition for new attribute:
"@V;" means that an array type is actually a vector.
This is analogous to the vector flag that's been added to dwarf2.

22 years ago2002-05-09 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 9 May 2002 18:07:00 +0000 (18:07 +0000)]
2002-05-09  Michael Snyder  <msnyder@redhat.com>

* arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
str r(0123),[sp,#nn].
(arm_skip_prologue): Ditto.  Also make disassembly
order-independent by placing it in a loop.

22 years ago* i386-tdep.h (i386_abi): New enum.
Mark Kettenis [Thu, 9 May 2002 13:53:36 +0000 (13:53 +0000)]
* i386-tdep.h (i386_abi): New enum.
(struct gdbarch_tdep): Replace os_ident member with abi.
(i386_gdbarch_register_os_abi): New prototype.
* i386-tdep.c (i386_abi_names): New array.
(process_note_abi_tag_sections): Removed.
(process_note_sections): New function.
(i386_elf_abi_from_note, i386_elf_abi): New functions.
(struct i386_abi_handler): New struct.
(i386_abi_handler_list): New variable.
(i386_gdbarch_register_os_abi): New function.
(i386_gdbarch_init): Adapt for the changes given above.

22 years ago * config/obj-coff.c: Fix formatting.
Kazu Hirata [Thu, 9 May 2002 13:12:57 +0000 (13:12 +0000)]
* config/obj-coff.c: Fix formatting.
* config/obj-elf.c: Likewise.
* config/tc-alpha.c: Likewise.
* config/tc-arm.c: Likewise.
* config/tc-d10v.c: Likewise.
* config/tc-d30v.c: Likewise.
* config/tc-h8300.c: Likewise.
* config/tc-hppa.c: Likewise.

22 years agoAdd Joasn Thorpe as VAX maintainer
Nick Clifton [Thu, 9 May 2002 12:43:46 +0000 (12:43 +0000)]
Add Joasn Thorpe as VAX maintainer

22 years ago * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
Alan Modra [Thu, 9 May 2002 11:40:16 +0000 (11:40 +0000)]
* elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
(ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
pcrel_offset.

22 years ago * ppc-opc.c: Add "tlbiel" for POWER4.
Alan Modra [Thu, 9 May 2002 11:15:47 +0000 (11:15 +0000)]
* ppc-opc.c: Add "tlbiel" for POWER4.

22 years agoUses sim callback interface for system calls in RedBoot SWI support.
Nick Clifton [Thu, 9 May 2002 10:29:08 +0000 (10:29 +0000)]
Uses sim callback interface for system calls in RedBoot SWI support.

22 years agoSupport the RedBoot SWI in ARM mode and some of its system calls.
Nick Clifton [Thu, 9 May 2002 10:14:12 +0000 (10:14 +0000)]
Support the RedBoot SWI in ARM mode and some of its system calls.

22 years ago * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
Alan Modra [Thu, 9 May 2002 06:35:22 +0000 (06:35 +0000)]
* config/tc-i386.c (md_estimate_size_before_relax) Don't lose
reloc when no_cond_jump_promotion.

22 years ago * elf32-i386.c (elf_howto_table): Comments.
Alan Modra [Thu, 9 May 2002 06:34:43 +0000 (06:34 +0000)]
* elf32-i386.c (elf_howto_table): Comments.
(elf_i386_relocate_section): Handle more relocs for relocatable
linking and against SEC_MERGE sections.

22 years agoFix i960-elf abort in cvt_frag_to_fill while compiling libc/stdio/vfprintf.c.
Jim Wilson [Thu, 9 May 2002 01:43:11 +0000 (01:43 +0000)]
Fix i960-elf abort in cvt_frag_to_fill while compiling libc/stdio/vfprintf.c.
* config/tc-i960.c (md_estimate_size_before_relax): Return size of
current variable part of frag.

22 years ago * config/tc-mmix.c: Fix formatting.
Kazu Hirata [Thu, 9 May 2002 00:33:09 +0000 (00:33 +0000)]
* config/tc-mmix.c: Fix formatting.
* config/tc-mmix.h: Likewise.

22 years ago*** empty log message ***
gdbadmin [Thu, 9 May 2002 00:00:06 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Thu, 9 May 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago2002-05-08 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Wed, 8 May 2002 23:29:11 +0000 (23:29 +0000)]
2002-05-08  Daniel Jacobowitz  <drow@mvista.com>

        * gregset.h: Say "GNU/Linux".

22 years ago * configure.in: Replace `*pe' with `pe' throughout.
Alan Modra [Wed, 8 May 2002 23:15:36 +0000 (23:15 +0000)]
* configure.in: Replace `*pe' with `pe' throughout.

22 years ago2002-05-08 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Wed, 8 May 2002 22:58:39 +0000 (22:58 +0000)]
2002-05-08  Elena Zannoni  <ezannoni@redhat.com>

* gdbtypes.c : Add new builtin type for 64 bit vectors.
        (build_gdbtypes): Build builtin_type_v2_float.
(_initialize_gdbtypes): Register new builtin type.

22 years ago2002-05-08 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Wed, 8 May 2002 21:05:44 +0000 (21:05 +0000)]
2002-05-08  Michael Snyder  <msnyder@redhat.com>

* gdb.base/long_long.exp: Merge clauses for arm and xscale.
* gdb.base/default.exp: Merge clauses for arm, strongarm, xscale.

22 years ago[ cgen/ChangeLog ]
Graydon Hoare [Wed, 8 May 2002 20:47:07 +0000 (20:47 +0000)]
[ cgen/ChangeLog ]

2002-05-01  Graydon Hoare  <graydon@redhat.com>

* desc-cpu.scm (@arch@_cgen_cpu_close): Fix memory leaks.

[ opcodes/ChangeLog ]

2002-05-07  Graydon Hoare  <graydon@redhat.com>

* cgen-dis.in: (print_insn_@arch@): Cache list of opened CPUs rather
than just most-recently-opened.

22 years ago* gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
Andrew Cagney [Wed, 8 May 2002 20:43:04 +0000 (20:43 +0000)]
* gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
(clear_gdbarch_swap): New function.
(initialize_non_multiarch): Call.
(gdbarch_update_p): Before calling init(), swap out and clear the
existing architecture.
* gdbarch.c: Regenerate.

22 years ago* config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
Jason Thorpe [Wed, 8 May 2002 16:32:08 +0000 (16:32 +0000)]
* config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
alphanbsd-tdep.c.

22 years ago* sh-nbsd-nat.c: Rename to...
Jason Thorpe [Wed, 8 May 2002 16:18:41 +0000 (16:18 +0000)]
* sh-nbsd-nat.c: Rename to...
* shnbsd-nat.c: ...this.
* sh-nbsd-tdep.c: Rename to...
* shnbsd-tdep.c: ...this.
* sh-nbsd-tdep.h: Rename to...
* shnbsd-tdep.h: ...this.
* config/sh/nbsd.mh: Use shnbsd-nat.o.
* config/sh/nbsd.mt: Use shnbsd-tdep.o.

22 years ago* remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
Richard Earnshaw [Wed, 8 May 2002 15:59:52 +0000 (15:59 +0000)]
* remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
concatenation for command help messages.

22 years ago* NEWS: Note new sh*-*-netbsdelf* configuration.
Jason Thorpe [Wed, 8 May 2002 15:29:36 +0000 (15:29 +0000)]
* NEWS: Note new sh*-*-netbsdelf* configuration.
* configure.host: Set gdb_host_cpu to sh for all sh*.
(sh*-*-netbsdelf*): New host.
* configure.tgt: Set gdb_target_cpu to sh for all sh*.
(sh*-*-netbsdelf*): New target.
* sh-nbsd-nat.c: New file.
* sh-nbsd-tdep.c: New file.
* sh-nbsd-tdep.h: New file.
* config/sh/nbsd.mh: New file.
* config/sh/nbsd.mt: New file.
* config/sh/nm-nbsd.h: New file.
* config/sh/tm-nbsd.h: New file.

22 years ago* sh-tdep.c (sh_osabi_names): Declare.
Jason Thorpe [Wed, 8 May 2002 14:54:03 +0000 (14:54 +0000)]
* sh-tdep.c (sh_osabi_names): Declare.
(process_note_abi_tag_sections): New function.
(get_elfosabi): Ditto.
(sh_gdbarch_register_os_abi): Ditto.
(sh_dump_tdep): Ditto.
_initialize_sh_tdep): Use gdbarch_register to register
sh_gdbarch_init and sh_dump_tdep.
* config/sh/tm-sh.h (sh_osabi): Declare.
(gdbarch_tdep): Add sh_osabi and osabi_name members.

22 years ago * configure: Regenerate.
Alan Modra [Wed, 8 May 2002 14:32:37 +0000 (14:32 +0000)]
* configure: Regenerate.

22 years ago* common.h (NT_GNU_ABI_TAG): Define.
Jason Thorpe [Wed, 8 May 2002 14:28:37 +0000 (14:28 +0000)]
* common.h (NT_GNU_ABI_TAG): Define.
(GNU_ABI_TAG_LINUX): Define.
(GNU_ABI_TAG_HURD): Define.
(GNU_ABI_TAG_SOLARIS): Define.
(NT_NETBSD_IDENT): Define.
(NT_FREEBSD_ABI_TAG): Define.

22 years agomerge from gcc
DJ Delorie [Wed, 8 May 2002 14:22:36 +0000 (14:22 +0000)]
merge from gcc

22 years ago * elf32-ppc.c (ppc_elf_create_got): New function.
Alan Modra [Wed, 8 May 2002 05:12:54 +0000 (05:12 +0000)]
* elf32-ppc.c (ppc_elf_create_got): New function.
(ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
_bfd_elf_create_dynamic_sections.  Correct .plt flags.
(ppc_elf_check_relocs): Use ppc_elf_create_got in place of
_bfd_elf_create_got_section.

22 years ago * config/tc-m68k.c: Fix formatting.
Kazu Hirata [Wed, 8 May 2002 01:54:04 +0000 (01:54 +0000)]
* config/tc-m68k.c: Fix formatting.

22 years ago* arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
Andrew Cagney [Wed, 8 May 2002 01:35:51 +0000 (01:35 +0000)]
* arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
(thumb_scan_prologue): Ditto.
(arm_find_callers_reg): Ditto.
(arm_frame_chain): Ditto.
(arm_init_extra_frame_info): Ditto.
(arm_frame_saved_pc): Ditto.
(arm_pop_frame): Ditto.
(arm_push_return_address): New function.
(arm_gdbarch_init): Initialize use_generic_dummy_frames,
call_dummy_location, call_dummy_breakpoint_offset_p,
call_dummy_breakpoint_offset, call_dummy_p,
call_dummy_stack_adjust_p, call_dummy_words,
sizeof_call_dummy_words, call_dummy_start_offset,
call_dummy_length, fix_call_dummy, pc_in_call_dummy,
call_dummy_address, push_return_address and push_dummy_frame for
generic dummy frames.

22 years ago*** empty log message ***
gdbadmin [Wed, 8 May 2002 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Wed, 8 May 2002 00:00:04 +0000 (00:00 +0000)]
daily update

22 years ago* sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
Jason Thorpe [Tue, 7 May 2002 21:51:34 +0000 (21:51 +0000)]
* sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
size computation for alloca.
(sh_fp_frame_init_saved_regs): Likewise.

22 years agomerge from gcc
DJ Delorie [Tue, 7 May 2002 19:04:21 +0000 (19:04 +0000)]
merge from gcc

22 years ago2002-05-07 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 7 May 2002 17:52:36 +0000 (17:52 +0000)]
2002-05-07  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.LIBGLOSS: New file.

22 years agoHonour DESTDIR
Nick Clifton [Tue, 7 May 2002 17:22:20 +0000 (17:22 +0000)]
Honour DESTDIR

22 years ago* arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
Richard Earnshaw [Tue, 7 May 2002 12:58:51 +0000 (12:58 +0000)]
* arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
(ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
* arm-tdep.c (arm_store_return_value): Use them.
Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
* remote-rdp.c (remote_rdp_fetch_register): Use
ARM_MAX_REGISTER_RAW_SIZE.
(remote_rdp_store_register): Likewise.

22 years ago2002-05-07 Michal Ludvig <mludvig@suse.cz>
Michal Ludvig [Tue, 7 May 2002 11:22:54 +0000 (11:22 +0000)]
2002-05-07  Michal Ludvig  <mludvig@suse.cz>
* dwarf2cfi.c: Code cleanup, removed unused variables,
added default labels to switch {} statements.
* x86-64-tdep.c: Ditto.
* x86-64-linux-nat.c: Ditto.

22 years ago * lib/ld-lib.exp (run_dump_test): Add -L$srcdir/$subdir.
Richard Sandiford [Tue, 7 May 2002 11:08:57 +0000 (11:08 +0000)]
* lib/ld-lib.exp (run_dump_test): Add -L$srcdir/$subdir.
(is_elf_format): New, extracted from...
* ld-scripts/weak.exp: ...here.
* ld-scripts/overlay-size.exp: New test.
* ld-scripts/overlay-size.[tsd],
* ld-scripts/overlay-size-map.d: New files for it.

22 years ago * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
Richard Sandiford [Tue, 7 May 2002 11:04:54 +0000 (11:04 +0000)]
* ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
(lang_enter_overlay): Remove the last two parameters.
(lang_leave_overlay): Take them here instead.
* ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
(section): Pass LMA and crossref flag to lang_leave_overlay rather
than lang_enter_overlay.
* ldlang.c (lang_memory_region_lookup): Return null for null names.
(lang_output_section_statement_lookup): Initialize update_dot_tree.
(lang_size_sections_1): Evaluate it.
(lang_leave_output_section_statement): Rework LMA lookup.
(overlay_lma, overlay_nocrossrefs): Remove.
(lang_enter_overlay): Remove LMA and corssref arguments.
(lang_enter_overlay_section): Don't set the LMA here.
(lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
assignment to the last section's update_dot_tree.  Unconditionally
use the load and run-time regions specified in the OVERLAY statement.
Likewise the first section's LMA.  Only set the other sections' LMAs
when no load region is given.

22 years ago* solib.h: Protect against multiple inclusion.
Jason Thorpe [Tue, 7 May 2002 08:35:54 +0000 (08:35 +0000)]
* solib.h: Protect against multiple inclusion.

22 years ago2002-05-06 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Tue, 7 May 2002 02:22:08 +0000 (02:22 +0000)]
2002-05-06  Michael Snyder  <msnyder@redhat.com>

* lib/gdb.exp (gdb_test): Add case to allow for status wrapper.
(gdb_continue_to_end): Accept output from status wrapper.
* gdb.base/ending-run.exp: Add case for output from status wrapper.
        Clean up fail messages to match pass messages.

22 years ago2002-05-06 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Tue, 7 May 2002 00:45:46 +0000 (00:45 +0000)]
2002-05-06  Michael Snyder  <msnyder@redhat.com>

Enable the "needs_status_wrapper" testsuite feature.
* lib/gdb.exp (gdb_wrapper_init): New procedure.
(gdb_compile): Conditionally call gdb_wrapper_init.
* gdb.base/a2-run.exp: Recognize output from status wrapper.
* gdb.c++/method.exp: Recognize output from status wrapper.

22 years ago * elf-bfd.h (struct elf_backend_data): Add rela_normal.
Alan Modra [Tue, 7 May 2002 00:16:53 +0000 (00:16 +0000)]
* elf-bfd.h (struct elf_backend_data): Add rela_normal.
* elfxx-target.h (elf_backend_rela_normal): Define.
(elfNN_bed): Init rela_normal.
* elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
for section symbols here if rela_normal.  Simplify abs section test.
* elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
return immediately.  Remove code handling relocatable linking.
* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-i860.c (elf32_i860_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
* elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf-m10200.c (elf_backend_rela_normal): Define.
* elf-m10300.c (elf_backend_rela_normal): Define.
* elf32-fr30.c (elf_backend_rela_normal): Define.
* elf32-i370.c (elf_backend_rela_normal): Define.
* elf32-i860.c (elf_backend_rela_normal): Define.
* elf32-m68k.c (elf_backend_rela_normal): Define.
* elf32-mcore.c (elf_backend_rela_normal): Define.
* elf32-openrisc.c (elf_backend_rela_normal): Define.
* elf32-ppc.c (elf_backend_rela_normal): Define.
* elf32-s390.c (elf_backend_rela_normal): Define.
* elf32-xstormy16.c (elf_backend_rela_normal): Define.
* elf64-ppc.c (elf_backend_rela_normal): Define.
* elf64-s390.c (elf_backend_rela_normal): Define.
* elf64-x86-64.c (elf_backend_rela_normal): Define.
* elfxx-ia64.c (elf_backend_rela_normal): Define.
* elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
* elf32-m32r.c (elf_backend_rela_normal): Likewise.

22 years agodaily update
Alan Modra [Tue, 7 May 2002 00:09:35 +0000 (00:09 +0000)]
daily update

22 years ago*** empty log message ***
gdbadmin [Tue, 7 May 2002 00:09:34 +0000 (00:09 +0000)]
*** empty log message ***

22 years agoSeparate the job of reading the line number info statement program
Jim Blandy [Mon, 6 May 2002 21:00:21 +0000 (21:00 +0000)]
Separate the job of reading the line number info statement program
header (...expialidocious) out into its own function.
* dwarf2read.c (struct line_head, struct filenames, struct
directories): Replace with...
(struct line_header): New structure, containing the full
contents of the statement program header, including the
include directory and file name tables.
(read_file_scope): If we have line number info, instead of just
calling dwarf_decode_lines to do all the work, call
dwarf_decode_line_header first to get a `struct line_header'
containing the data in the statement program header, and then
pass that to dwarf_decode_lines, which will pick up where that
left off.  Be sure to clean up the `struct line_header' object.
(dwarf_decode_line_header, free_line_header, add_include_dir,
add_file_name): New functions.
(dwarf_decode_lines): Move all the code to read the statement
program header into dwarf_decode_line_header.  Take the line
header it built as the first argument, instead of the offset to
the compilation unit's line number info.  Use the new `struct
line_header' type instead of the old structures.  No need to do
cleanups here now, since we don't allocate anything.
(dwarf2_statement_list_fits_in_line_number_section,
dwarf2_line_header_too_long): New complaints.

22 years ago2002-05-06 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Mon, 6 May 2002 17:37:14 +0000 (17:37 +0000)]
2002-05-06  Elena Zannoni  <ezannoni@redhat.com>

* gdbtypes.c (init_vector_type): New function.
(build_builtin_type_vec128): Simplify the representation of SIMD
registers.
(build_gdbtypes): Initialize new builtin vector types.
(_initialize_gdbtypes): Register new vector types with gdbarch.
(builtin_type_v4_float, builtin_type_v4_int32,
builtin_type_v8_int16, builtin_type_v16_int8,
builtin_type_v2_int32, builtin_type_v4_int16,
builtin_type_v8_int8): New (renamed) SIMD types.

22 years agoFix check for overflow of relocation for the Thumb BL instruction.
Nick Clifton [Mon, 6 May 2002 13:47:55 +0000 (13:47 +0000)]
Fix check for overflow of relocation for the Thumb BL instruction.

22 years ago * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
Alan Modra [Mon, 6 May 2002 12:49:58 +0000 (12:49 +0000)]
* elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
when not relocatable.  Fix reloc_emitter call for K&R.

22 years ago2002-05-06 Ben Elliston <bje@redhat.com>
Ben Elliston [Mon, 6 May 2002 12:19:30 +0000 (12:19 +0000)]
2002-05-06  Ben Elliston  <bje@redhat.com>
From Graydon Hoare  <graydon@redhat.com>

* config/sid.exp: Include support for "rawsid" protocol.

22 years ago * config/tc-ia64.c: Fix formatting.
Kazu Hirata [Mon, 6 May 2002 11:43:03 +0000 (11:43 +0000)]
* config/tc-ia64.c: Fix formatting.
* config/tc-ia64.h: Likewise.

22 years ago* i387-nat.c (i387_fill_fsave): Use regcache_collect.
Mark Kettenis [Mon, 6 May 2002 11:39:51 +0000 (11:39 +0000)]
* i387-nat.c (i387_fill_fsave): Use regcache_collect.
(i387_fill_fxsave): Likewise.

22 years agoNew Swedish translation
Nick Clifton [Mon, 6 May 2002 10:09:24 +0000 (10:09 +0000)]
New Swedish translation

22 years ago * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
Alan Modra [Mon, 6 May 2002 08:54:44 +0000 (08:54 +0000)]
* elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
when not relocatable.  Fix reloc_emitter call for K&R.

22 years agooops, missing changelog entry
Alan Modra [Mon, 6 May 2002 07:55:16 +0000 (07:55 +0000)]
oops, missing changelog entry
* dlltool.c (process_def_file): Add missing prototype.
(new_directive, assemble_file, main): Likewise.
(process_def_file, new_directive): Make static.
(inform): Rewrite using VA_FIXEDARG.
* dllwrap.c (mybasename): Add missing prototype.
(strhash, main): Likewise.
(inform): Rewrite using VA_FIXEDARG.
(warn): Likewise.
(cleanup_and_exit): Use old style function definition.
(strhash): Likewise.
* windres.c (define_resource): Use one memset to clear all of
struct res_resource.

22 years ago*** empty log message ***
gdbadmin [Mon, 6 May 2002 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Mon, 6 May 2002 00:00:03 +0000 (00:00 +0000)]
daily update

22 years ago * dlltool.c (process_def_file): Add missing prototype.
Alan Modra [Sun, 5 May 2002 23:25:27 +0000 (23:25 +0000)]
* dlltool.c (process_def_file): Add missing prototype.
(new_directive, assemble_file, main): Likewise.
(process_def_file, new_directive): Make static.
(inform): Rewrite using VA_FIXEDARG.
* dllwrap.c (mybasename): Add missing prototype.
(strhash, main): Likewise.
(inform): Rewrite using VA_FIXEDARG.
(warn): Likewise.
(cleanup_and_exit): Use old style function definition.
(strhash): Likewise.
* windres.c (define_resource): Use one memset to clear all of
struct res_resource.

22 years ago * rcparse.y: Remove newcmd rule. Move rcparse_discard_strings
Alan Modra [Sun, 5 May 2002 23:19:32 +0000 (23:19 +0000)]
* rcparse.y: Remove newcmd rule.  Move rcparse_discard_strings
call to rules that need no lookahead.  Check for no lookahead.

* rclex.l (get_string): Correct "strings" list handling.
* resrc.c (read_rc_file): Discard strings.

22 years ago* configure.in (noconfigdirs): Don't disable libgcj on
Alexandre Oliva [Sun, 5 May 2002 18:58:17 +0000 (18:58 +0000)]
* configure.in (noconfigdirs): Don't disable libgcj on
sparc64-*-solaris* and sparcv9-*-solaris*.

22 years ago* alpha-tdep.c (alpha_extract_return_value): Don't use
Alexandre Oliva [Sun, 5 May 2002 18:49:57 +0000 (18:49 +0000)]
* alpha-tdep.c (alpha_extract_return_value): Don't use
non-constant array size in prototype.