external/binutils.git
21 years ago* gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp,
Mark Kettenis [Sat, 1 Feb 2003 20:47:16 +0000 (20:47 +0000)]
* gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp,
gdb.mi/mi1-pthreads.exp: Return instead of calling
gdb_suppress_entire_file.

21 years ago2003-02-01 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Sat, 1 Feb 2003 17:28:41 +0000 (17:28 +0000)]
2003-02-01  Andrew Cagney  <ac131313@redhat.com>

* infcmd.c (print_float_info): Delete code conditional on
FLOAT_INFO.
* config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
* config/m68k/nm-apollo68b.h: Ditto.
* config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
* config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
* config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.

Index: doc/ChangeLog
2003-02-01  Andrew Cagney  <ac131313@redhat.com>

* gdbint.texinfo (Target Architecture Definition): Delete
FLOAT_INFO.

21 years ago*** empty log message ***
Mark Salter [Sat, 1 Feb 2003 14:29:29 +0000 (14:29 +0000)]
*** empty log message ***

21 years agoClear frame pointer, not sp.
Mark Salter [Sat, 1 Feb 2003 14:29:12 +0000 (14:29 +0000)]
Clear frame pointer, not sp.

21 years ago* config/i386/tm-i386os9k.h: Removed.
Mark Kettenis [Sat, 1 Feb 2003 12:35:49 +0000 (12:35 +0000)]
* config/i386/tm-i386os9k.h: Removed.

21 years ago* configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
Mark Kettenis [Sat, 1 Feb 2003 12:28:00 +0000 (12:28 +0000)]
* configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
they're identical to i[3456]86-*-sysv* now.
* config/i386/i386v32.mh: Removed.
* config/i386/xm-i386v32.h: Removed.
* config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.

21 years ago* config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
Mark Kettenis [Sat, 1 Feb 2003 12:08:54 +0000 (12:08 +0000)]
* config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.

21 years ago* config/i386/i386dgux.mh: Removed.
Mark Kettenis [Sat, 1 Feb 2003 11:45:13 +0000 (11:45 +0000)]
* config/i386/i386dgux.mh: Removed.
* configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.

21 years ago* configure.in: Fix typo.
Mark Kettenis [Sat, 1 Feb 2003 11:32:19 +0000 (11:32 +0000)]
* configure.in: Fix typo.
* configure: Regenerated.

21 years ago * compile.c (sim_resume): Fix the handling of bxor.
Kazu Hirata [Sat, 1 Feb 2003 03:00:14 +0000 (03:00 +0000)]
* compile.c (sim_resume): Fix the handling of bxor.

21 years agoLeft ChangeLog entry out of last commit.
David Carlton [Sat, 1 Feb 2003 01:11:57 +0000 (01:11 +0000)]
Left ChangeLog entry out of last commit.

21 years ago2003-01-31 David Carlton <carlton@math.stanford.edu>
David Carlton [Sat, 1 Feb 2003 01:11:22 +0000 (01:11 +0000)]
2003-01-31  David Carlton  <carlton@math.stanford.edu>

* dwarf2read.c (dwarf2_locate_sections): Set
dwarf_ranges_section.

21 years ago*** empty log message ***
gdbadmin [Sat, 1 Feb 2003 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Fri, 31 Jan 2003 23:59:42 +0000 (23:59 +0000)]
daily update

21 years ago2003-01-31 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Fri, 31 Jan 2003 23:22:07 +0000 (23:22 +0000)]
2003-01-31  Andrew Cagney  <ac131313@redhat.com>

* objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
* utils.c: Update comments documenting legitimate uses of PTR.

21 years agoRe-indent utils.c.
Andrew Cagney [Fri, 31 Jan 2003 22:45:22 +0000 (22:45 +0000)]
Re-indent utils.c.

21 years ago * hppa.h (ldwa, ldda): Add ordered opcodes.
Dave Anglin [Fri, 31 Jan 2003 21:24:32 +0000 (21:24 +0000)]
    * hppa.h (ldwa, ldda): Add ordered opcodes.

21 years ago2003-01-31 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Fri, 31 Jan 2003 20:43:54 +0000 (20:43 +0000)]
2003-01-31  Andrew Cagney  <ac131313@redhat.com>

* config/djgpp/fnchange.lst: Delete nindy files.
* nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
* nindy-share/nindy.c, nindy-share/env.h: Delete files.
* nindy-share/coff.h, nindy-share/block_io.h: Delete files.
* nindy-share/b.out.h, nindy-share/VERSION: Delete files.
* nindy-share/README, nindy-share/Onindy.c: Delete files.
* nindy-tdep.c, nindy-share/Makefile: Delete files.
* Makefile.in (init.c): Remove nindy references.
(saber_gdb): Delete rule.
(ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
and a68v-nat.c.
(hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
(Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
(HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
nindy-share/stop.h.
* hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
* saber.suppress: Delete file.

21 years ago * dbxread.c (stabs_data): New static variable.
Daniel Jacobowitz [Fri, 31 Jan 2003 19:22:18 +0000 (19:22 +0000)]
* dbxread.c (stabs_data): New static variable.
(fill_symbuf): Support an in-memory buffer for stabs data.
(stabs_seek): New function.
(dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
(read_ofile_symtab): Use stabs_seek.
(elfstab_build_psymtabs): Take an asection* instead of
an offset and size.  Relocate the stabs data if necessary.
Save the section* for dbx_psymtab_to_symtab.
* dwarf2read.c: Add section variables for each debug section.
(dwarf2_locate_sections): Fill them in.
(dwarf2_read_section): Take an asection* argument.
Relocate the section contents if necessary.
(dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
* dwarf2cfi.c (parse_frame_info): Take a section argument and pass
it to dwarf2_read_section.
(dwarf2_build_frame_info): Update callers.
* elfread.c (elf_symfile_read): Update call to
elfstab_build_psymtabs.
* gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
(DBX_STAB_SECTION): New macro.
* stabsread.h (elfstab_build_psymtabs): Update prototype.
* symfile.c (symfile_dummy_outputs): New function.
(symfile_relocate_debug_section): New function.
* symfile.h (symfile_relocate_debug_section): Add prototype.

21 years ago2003-01-31 Frank Ch. Eigler <fche@redhat.com>
Frank Ch. Eigler [Fri, 31 Jan 2003 19:09:32 +0000 (19:09 +0000)]
2003-01-31  Frank Ch. Eigler  <fche@redhat.com>

* Makefile.tpl (all-sid): Add libiberty/bfd/opcodes dependencies.
* Makefile.in: Regenerated.

21 years ago * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
Richard Henderson [Fri, 31 Jan 2003 18:28:25 +0000 (18:28 +0000)]
* alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
(register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
(fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
* alpha-tdep.c (alpha_register_name): Add "unique".
* alpha-tdep.h (ALPHA_NUM_REGS): Increment.
(ALPHA_UNIQUE_REGNUM): New.
* config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.

21 years ago2003-01-31 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Fri, 31 Jan 2003 16:32:45 +0000 (16:32 +0000)]
2003-01-31  Andrew Cagney  <ac131313@redhat.com>

* README: Remove reference to Ericsson 1800 monitor.
* Makefile.in (remote-es.o): Delete rule.
(ALLDEPFILES): Delete remote-es.c.
* remote-es.c: Delete file.
* config/m68k/es1800.mt: Delete file.
* config/djgpp/fnchange.lst: Update.
* configure.tgt: Delete m68*-ericsson-* target.

21 years ago* infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
Adam Fedor [Fri, 31 Jan 2003 15:22:57 +0000 (15:22 +0000)]
* infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
Remove duplicate/shadowing variable of same name.

21 years ago*** empty log message ***
Mark Salter [Fri, 31 Jan 2003 13:11:42 +0000 (13:11 +0000)]
*** empty log message ***

21 years agoSupport remote targets.
Mark Salter [Fri, 31 Jan 2003 13:11:26 +0000 (13:11 +0000)]
Support remote targets.

21 years agobfd_follow_gnu_debuglink: New function. Follow the pointer contained inside a
Nick Clifton [Fri, 31 Jan 2003 10:04:16 +0000 (10:04 +0000)]
bfd_follow_gnu_debuglink: New function.  Follow the pointer contained inside a
.gnu_debuglink section.

21 years ago2003-01-30 Michael Chastain <mec@shout.net>
Michael Chastain [Fri, 31 Jan 2003 00:39:28 +0000 (00:39 +0000)]
2003-01-30  Michael Chastain  <mec@shout.net>

* lib/gdb.exp: Revert patch of 2003-01-06, which set LC_ALL.
This was a workaround for a UTF-8 bug in readline 4.3.  The bug
has been fixed in gdb/readline on 2003-01-09.

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

21 years agodaily update
Alan Modra [Thu, 30 Jan 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years ago* symfile.c (find_separate_debug_file): Assert that the objfile's
Jim Blandy [Thu, 30 Jan 2003 21:45:07 +0000 (21:45 +0000)]
* symfile.c (find_separate_debug_file): Assert that the objfile's
directory name we compute ends with a slash, and then assume that
that's so everywhere we use it.

21 years agomerge from gcc
DJ Delorie [Thu, 30 Jan 2003 20:00:42 +0000 (20:00 +0000)]
merge from gcc

21 years ago * valops.c (value_assign): Flush frame cache after stores to memory
Daniel Jacobowitz [Thu, 30 Jan 2003 16:44:20 +0000 (16:44 +0000)]
* valops.c (value_assign): Flush frame cache after stores to memory
also.

21 years ago2003-01-30 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Thu, 30 Jan 2003 16:29:03 +0000 (16:29 +0000)]
2003-01-30  Andrew Cagney  <ac131313@redhat.com>

* Makefile.in (mon960-rom.o): Delete rule.
* mon960-rom.c: Delete file.

21 years ago2003-01-30 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Thu, 30 Jan 2003 15:44:43 +0000 (15:44 +0000)]
2003-01-30  Andrew Cagney  <ac131313@redhat.com>

* stabs.texinfo (Member Type Descriptor): Clarify description of
`@'.  Suggested by Ben Hutchings.

21 years ago2003-01-30 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Thu, 30 Jan 2003 15:11:20 +0000 (15:11 +0000)]
2003-01-30  Andrew Cagney  <ac131313@redhat.com>

* d10v-tdep.c: Include "frame-unwind.h".
(d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
list.
(next_addr, uses_frame): Delete.
(struct d10v_unwind_cache): Define.
(prologue_find_regs): Add struct d10v_unwind_cache info parameter.
Use info instead of next_addr and uses_frame globals.
(d10v_frame_init_saved_regs): Delete function.
(d10v_init_extra_frame_info): Delete function.
(d10v_gdbarch_init): Do not initialize init_extra_frame_info,
frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
init_frame_pc or frame_saved_pc.
(d10v_pop_frame): Delete function.
(do_d10v_pop_frame): Delete function.
(d10v_frame_chain): Delete function.
(d10v_frame_chain_valid): Delete function.
(d10v_frame_pc_unwind): New function.
(d10v_frame_id_unwind): New function.
(saved_regs_unwinder): New function.
(d10v_frame_register_unwind): New function.
(d10v_frame_pop): New function.
(d10v_frame_unwind): New variable.
(d10v_frame_p): New function.
(d10v_frame_saved_pc): Delete function.
* Makefile.in (d10v-tdep.o): Update dependencies.

21 years ago* config.if: Copy from GCC.
Alexandre Oliva [Thu, 30 Jan 2003 11:59:17 +0000 (11:59 +0000)]
* config.if: Copy from GCC.

21 years ago * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
Joel Brobecker [Thu, 30 Jan 2003 05:48:26 +0000 (05:48 +0000)]
    * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
        causing some regressions due to a change in the default value
        for this macro.

21 years ago Fix PR gdb/961.
Daniel Jacobowitz [Thu, 30 Jan 2003 01:51:48 +0000 (01:51 +0000)]
Fix PR gdb/961.
* dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
variables.
(RANGES_SECTION): New.
(dwarf_ranges_buffer): New variable.
(struct comp_unit_head): Add member "die".
(struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
(DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
(dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
(dwarf2_locate_sections): Likewise.
(dwarf2_build_psymtabs): Read .debug_ranges.
(dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
(psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
(dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
Look for DW_AT_ranges and return the bounding box.

21 years agoremove conflict marker
Christopher Faylor [Thu, 30 Jan 2003 01:42:01 +0000 (01:42 +0000)]
remove conflict marker

21 years ago* win32-nat.c (cygwin_pid): Removed as unused.
Christopher Faylor [Thu, 30 Jan 2003 01:39:52 +0000 (01:39 +0000)]
* win32-nat.c (cygwin_pid): Removed as unused.
(child_attach): Try fall back to Cygwin pid.

21 years ago*** empty log message ***
gdbadmin [Thu, 30 Jan 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago* objfiles.h (struct objfile): Doc fix.
Jim Blandy [Wed, 29 Jan 2003 23:46:39 +0000 (23:46 +0000)]
* objfiles.h (struct objfile): Doc fix.

21 years ago2003-01-29 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Wed, 29 Jan 2003 23:25:43 +0000 (23:25 +0000)]
2003-01-29  Michael Snyder  <msnyder@redhat.com>

* gdb.base/args.exp: Skip if target does not support args passing.

21 years agodaily update
Alan Modra [Wed, 29 Jan 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years ago2003-01-29 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Wed, 29 Jan 2003 18:07:07 +0000 (18:07 +0000)]
2003-01-29  Andrew Cagney  <ac131313@redhat.com>

* frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
(legacy_get_prev_frame): Assert FRAME_CHAIN_P.
(get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
(frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
* gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
(FRAME_SAVED_PC): Change to a function with predicate.
* gdbarch.h, gdbarch.c: Re-generate.

21 years ago2003-01-29 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Wed, 29 Jan 2003 16:10:53 +0000 (16:10 +0000)]
2003-01-29  Andrew Cagney  <ac131313@redhat.com>

* gdb.texinfo (Maintenance Commands): Document `maint print
reggroups' and `maint print register-groups'.
* gdbint.texinfo (Target Architecture Definition): Document
register_reggroup_p.

21 years ago2003-01-28 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Wed, 29 Jan 2003 15:56:11 +0000 (15:56 +0000)]
2003-01-28  Andrew Cagney  <ac131313@redhat.com>

* hppah-nat.c (child_pid_to_exec_file): Don't use boolean.

21 years ago(print_insn_sparc): When examining values added in to rs1, make sure that
Nick Clifton [Wed, 29 Jan 2003 12:51:57 +0000 (12:51 +0000)]
(print_insn_sparc): When examining values added in to rs1, make sure that
there are previous instructions.

21 years agoline_comment_chars: Add '#'. This makes the assembler's handling of
Nick Clifton [Wed, 29 Jan 2003 10:05:52 +0000 (10:05 +0000)]
line_comment_chars: Add '#'.  This makes the assembler's handling of
# <linenum> "<filename>" directives work.

21 years ago* elfxx-mips.c (mips_elf_got_entry_hash): Don't dereference
Alexandre Oliva [Wed, 29 Jan 2003 08:29:34 +0000 (08:29 +0000)]
* elfxx-mips.c (mips_elf_got_entry_hash): Don't dereference
entry->abfd when it's NULL.

21 years ago*** empty log message ***
gdbadmin [Wed, 29 Jan 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Tue, 28 Jan 2003 23:00:04 +0000 (23:00 +0000)]
daily update

21 years ago* Makefile.in (all-subdir, check-subdir, installcheck-subdir)
Alexandre Oliva [Tue, 28 Jan 2003 21:53:39 +0000 (21:53 +0000)]
* Makefile.in (all-subdir, check-subdir, installcheck-subdir)
(info-subdir, install-info-subdir, clean-info-subdir)
(dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
(clean-subdir, distclean-subdir, maintainer-clean-subdir):
Pass $(FLAGS_TO_PASS).

21 years ago2003-01-28 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Tue, 28 Jan 2003 19:53:25 +0000 (19:53 +0000)]
2003-01-28  Andrew Cagney  <ac131313@redhat.com>

* complaints.c (complain): Delete function.
* complaints.h (struct deprecated_complaint): Delete definition.
(complain): Delete declaration.

21 years ago * mips-tdep.c (mips_init_extra_frame_info): Return early for
Kevin Buettner [Tue, 28 Jan 2003 16:31:11 +0000 (16:31 +0000)]
* mips-tdep.c (mips_init_extra_frame_info): Return early for
dummy frames.

21 years ago * readelf.c (dump_relocations): Reorder the r_info field for
Richard Sandiford [Tue, 28 Jan 2003 12:51:07 +0000 (12:51 +0000)]
* readelf.c (dump_relocations): Reorder the r_info field for
little-endian mips elf64.  Move #ifdef BFD64 to cover the new code.

21 years agoAdd code to prevent importing a dll multiple times.
Nick Clifton [Tue, 28 Jan 2003 11:39:43 +0000 (11:39 +0000)]
Add code to prevent importing a dll multiple times.

21 years agoAdd code to create and use directory tables.
Nick Clifton [Tue, 28 Jan 2003 11:20:36 +0000 (11:20 +0000)]
Add code to create and use directory tables.

21 years agoReplace occurences of 'tolower' with 'TOLOWER'.
Nick Clifton [Tue, 28 Jan 2003 11:02:40 +0000 (11:02 +0000)]
Replace occurences of 'tolower' with 'TOLOWER'.

21 years agoPatch from David Mosberger.
Jim Wilson [Tue, 28 Jan 2003 03:24:12 +0000 (03:24 +0000)]
Patch from David Mosberger.
* config/tc-ia64.c (dot_vframesp): Correct error message.
(dot_vframepsp): Ditto.

21 years ago* Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
Alexandre Oliva [Tue, 28 Jan 2003 01:46:13 +0000 (01:46 +0000)]
* Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
/`$$CC -print-multi-os-directory`.

21 years agoRemove duplicate date line
Alexandre Oliva [Tue, 28 Jan 2003 00:19:13 +0000 (00:19 +0000)]
Remove duplicate date line

21 years ago* elfxx-mips.c (mips_elf_create_dynamic_relocation): Handle
Alexandre Oliva [Tue, 28 Jan 2003 00:18:45 +0000 (00:18 +0000)]
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Handle
_bfd_elf_section_offset returning -2 the same way as -1.

21 years ago* ld-mips-elf/multi-got-1.d: New.
Alexandre Oliva [Tue, 28 Jan 2003 00:01:53 +0000 (00:01 +0000)]
* ld-mips-elf/multi-got-1.d: New.
* ld-mips-elf/multi-got-1-1.s: New.
* ld-mips-elf/multi-got-1-2.s: New.
* ld-mips-elf/mips-elf.exp (elf): mips*-*-irix* is elf.
Run multi-got-1.

21 years ago* elfxx-mips.c (mips_elf_multi_got): New function.
Alexandre Oliva [Tue, 28 Jan 2003 00:01:27 +0000 (00:01 +0000)]
* elfxx-mips.c (mips_elf_multi_got): New function.
(struct mips_got_entry): Make symndx and gotidx signed.  Moved
addend into union along with address and link hash entry.
(struct mips_got_info): Added bfd2got and next.
(struct mips_elf_hash_sort_data): Added max_unref_got_dynindx.
(mips_elf_got_section, mips_elf_create_got_section): Use
SEC_EXCLUDE bit to tell whether we really need the got
section.  Take boolean arguments to disregard an excluded
section, or to create it as excluded.  Adjust all callers.
Use mips_elf_got_section all over.
(mips_elf_local_got_index, mips_elf_got_page,
mips_elf_got16_entry): Take input bfd as argument, and pass it
on to mips_elf_create_local_got_entry.
(mips_elf_global_got_index, mips_elf_create_local_got_entry):
Take input bfd as argument, and manage entries in the
appropriate GOT.
(mips_elf_got_offset_from_index): Take input bfd as argument,
and use it to adjust the GP offset of the bfd.
(mips_elf_sort_hash_table, mips_elf_sort_hash_table_f): Move
unreferenced GOT entries of global symbols to the end.
(mips_elf_record_global_got_symbol): Take input bfd as
argument.  Add entries to the master GOT hash table.
(struct mips_elf_bfd2got_hash): New.
(struct mips_elf_got_per_bfd_arg): New.
(struct mips_elf_set_global_got_offset_arg): New.
(mips_elf_hash_bfd_vma, mips_elf_multi_got_entry_hash,
mips_elf_multi_got_entry_eq, mips_elf_bfd2got_entry_hash,
mips_elf_bfd2got_entry_eq, mips_elf_make_got_per_bfd,
mips_elf_merge_gots, mips_elf_set_global_got_offset,
mips_elf_resolve_final_got_entry,
mips_elf_resolve_final_got_entries, mips_elf_adjust_gp,
mips_elf_got_for_ibfd): New functions.
(ELF_MIPS_GP_OFFSET): Don't depend on SGI_COMPAT.
(MIPS_ELF_GOT_MAX_SIZE): New macro.
(STUB_LW): Generate 64-bit stub regardless of SGI_COMPAT.
(mips_elf_got_entry_hash): Take new fields into account.  Use
mips_elf_hash_bfd_vma.
(mips_elf_got_entry_eq): Take new fields into account.
(mips_elf_create_got_section): Initialize new fields.
(mips_elf_calculate_relocation): Pass input_bfd to functions
that now take it.  Adjust gp for the input_bfd.
(mips_elf_allocate_dynamic_relocation,
mips_elf_create_dynamic_relocation,
_bfd_mips_elf_create_dynamic_sections): Use...
(mips_elf_rel_dyn_section): New function.  Borrow code from...
(_bfd_mips_elf_check_relocs): Pass input_bfd to functions that
now take it.  Create the got section if needed, even if
excluded, before recording a global got symbol.  Move some
code to...
(mips_elf_record_local_got_symbol): New fn.
(_bfd_mips_elf_size_dynamic_sections): Disable combreloc.
Compute multi-got global entries offsets.  Move GOT code to...
(_bfd_mips_elf_always_size_sections): Call mips_elf_multi_got
if the GOT is too big.
(_bfd_mips_elf_finish_dynamic_symbol): Set got entry of
undefweak symbol to zero.  Generate dynamic relocations for
non-primary GOT entries for global symbols.
(_bfd_mips_elf_finish_dynamic_sections): Handle multi-got
case.  Generate dynamic relocations for local got entries.
Sort dynamic relocations on N64 too, using...
(sort_dynamic_relocs_64): New fns.
(_bfd_mips_elf_hide_symbol): Adjust multi-got counters.
(_bfd_mips_elf_merge_private_bfd_data): Ignore EF_MIPS_XGOT.

21 years ago* mips.h (EF_MIPS_XGOT): Define.
Alexandre Oliva [Tue, 28 Jan 2003 00:01:08 +0000 (00:01 +0000)]
* mips.h (EF_MIPS_XGOT): Define.

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

21 years ago* bfd.c (struct _bfd): Added id field.
Alexandre Oliva [Mon, 27 Jan 2003 23:40:39 +0000 (23:40 +0000)]
* bfd.c (struct _bfd): Added id field.
* opncls.c (_bfd_id_counter): New static variable.
(_bfd_new_bfd): Use it.
* bfd-in2.h: Rebuilt.

21 years ago* gas/mips/n32-consec.d: New.
Alexandre Oliva [Mon, 27 Jan 2003 23:01:55 +0000 (23:01 +0000)]
* gas/mips/n32-consec.d: New.
* gas/mips/n32-consec.s: New.
* gas/mips/mips.exp (run_list_test_arches): Run it on irix6 and
mips64*-linux* systems.

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

21 years ago* configure.in (em): Set to irix on all Irix systems.
Alexandre Oliva [Mon, 27 Jan 2003 22:45:58 +0000 (22:45 +0000)]
* configure.in (em): Set to irix on all Irix systems.
* configure: Rebuilt.
* config/te-irix.h: New file.
* config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
whether to use Irix-specific 64-bit format.

21 years ago2003-01-27 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Mon, 27 Jan 2003 21:41:41 +0000 (21:41 +0000)]
2003-01-27  Andrew Cagney  <ac131313@redhat.com>

* sentinel-frame.h, sentinel-frame.c: New files.
* Makefile.in (frame.o): Update dependencies.
(SFILES): Add sentinel-frame.c.
(sentinel_frame_h): Define.
(COMMON_OBS): Add sentinel-frame.o.
(sentinel-frame.o): Specify dependencies.
* frame.c: Include "sentinel-frame.h".
(frame_register_unwind): Rewrite assuming that there is always a a
->next frame.
(frame_register, generic_unwind_get_saved_register): Ditto.
(frame_read_unsigned_register, frame_read_signed_register): Ditto.
(create_sentinel_frame, unwind_to_current_frame): New functions.
(get_current_frame): Rewrite using create_sentinel_frame and
unwind_to_current_frame.  When possible, always create a frame.
(create_new_frame): Set next to the sentinel frame.
(get_next_frame): Rewrite.  Don't go below the level 0 frame.
(deprecated_update_frame_pc_hack): Update the next frame's PC and
ID cache when necessary.
(frame_saved_regs_id_unwind): Use frame_relative_level.
(deprecated_generic_get_saved_register): Use frame_relative_level,
get_frame_saved_regs, get_frame_pc, get_frame_base and
get_next_frame.
(frame_saved_regs_register_unwind): Use get_frame_saved_regs and
frame_register.

21 years ago * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
Daniel Jacobowitz [Mon, 27 Jan 2003 21:16:06 +0000 (21:16 +0000)]
* gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.

21 years ago * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
Daniel Jacobowitz [Mon, 27 Jan 2003 20:25:35 +0000 (20:25 +0000)]
* maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
(maintenance_set_profile_cmd): Use error () instead of warning ().

21 years ago* configure.in: Revert 24Jan change.
Alexandre Oliva [Mon, 27 Jan 2003 19:47:23 +0000 (19:47 +0000)]
* configure.in:  Revert 24Jan change.
* configure:  Regenerate.

21 years ago * configure.in: Check that -pg works if using --enable-profiling.
Daniel Jacobowitz [Mon, 27 Jan 2003 14:36:56 +0000 (14:36 +0000)]
* configure.in: Check that -pg works if using --enable-profiling.
Check for monstartup and _mcleanup regardless of --enable-profiling.
* maint.c: Check for monstartup and _mcleanup before using them.
* config.in: Regenerated.
* configure: Regenerated.

21 years ago * Avoid designated initializers.
Martin Schwidefsky [Mon, 27 Jan 2003 08:44:21 +0000 (08:44 +0000)]
* Avoid designated initializers.

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

21 years agoinclude/
Daniel Jacobowitz [Sun, 26 Jan 2003 07:33:29 +0000 (07:33 +0000)]
include/
* hashtab.h (htab_alloc_with_arg, htab_free_with_arg): Add new types.
(struct htab): Add alloc_arg, alloc_with_arg_f, free_with_arg_f.
(htab_create_alloc_ex): New prototype.
(htab_set_functions_ex): New prototype.
libiberty/
* hashtab.c (htab_create_alloc_ex): New function.
(hatab_set_functions_ex): New function.
(htab_delete, htab_expand): Support alternate allocation functions.

21 years ago*** empty log message ***
gdbadmin [Sun, 26 Jan 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago * elf32-sparc.c (bfd_elf32_new_section_hook): Define.
Alan Modra [Sat, 25 Jan 2003 08:20:38 +0000 (08:20 +0000)]
* elf32-sparc.c (bfd_elf32_new_section_hook): Define.

21 years agomerge from gcc
DJ Delorie [Sat, 25 Jan 2003 00:23:30 +0000 (00:23 +0000)]
merge from gcc

21 years ago*** empty log message ***
gdbadmin [Sat, 25 Jan 2003 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

21 years agobfd/
Jakub Jelinek [Fri, 24 Jan 2003 23:44:45 +0000 (23:44 +0000)]
bfd/
* elf32-sparc.c (_bfd_sparc_elf_howto_table): Add TLS relocs.
(elf32_sparc_rev32_howto): New variable.
(sparc_reloc_map): Add TLS relocs.
(elf32_sparc_reloc_type_lookup, elf32_sparc_info_to_howto):
Handle REV32.
(sparc_elf_hix22_reloc, sparc_elf_lox10_reloc, elf32_sparc_mkobject):
New functions.
(struct elf32_sparc_dyn_relocs, struct elf32_sparc_link_hash_entry,
struct elf32_sparc_link_hash_table):
New structures.
(elf32_sparc_tdata, elf32_sparc_local_got_tls_type,
elf32_sparc_hash_table): Define.
(link_hash_newfunc, elf32_sparc_link_hash_table_create,
create_got_section, elf32_sparc_create_dynamic_sections,
elf32_sparc_copy_indirect_symbol, elf32_sparc_tls_transition): New
functions.
(elf32_sparc_check_relocs): Handle TLS relocs.  Add dynamic reloc
reference counting.
(elf32_sparc_gc_sweep_hook): Likewise.
(elf32_sparc_adjust_dynamic_symbol): Likewise.
(elf32_sparc_size_dynamic_sections): Likewise.
(elf32_sparc_relocate_section): Likewise.
(allocate_dynrelocs, readonly_dynrelocs, dtpoff_base, tpoff):
New functions.
(elf32_sparc_object_p): Allocate backend private object data.
(bfd_elf32_bfd_link_hash_table_create,
elf_backend_copy_indirect_symbol, bfd_elf32_mkobject,
elf_backend_can_refcount): Define.
(elf_backend_create_dynamic_sections): Define to
elf32_sparc_create_dynamic_sections.
* reloc.c: Add SPARC TLS relocs.
* bfd-in2.h, libbfd.h: Rebuilt.
* elf64-sparc.c (sparc64_elf_howto_table): Add TLS relocs.
(sparc_reloc_map): Likewise.
gas/
* config/tc-sparc.c (sparc_ip): Handle TLS % operators.
(tc_gen_reloc): Handle TLS relocs.
(sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
* config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
relocs.
* config/obj-elf.c (obj_elf_section_word): Handle tls.
(obj_elf_type): Handle tls_object.
include/
* elf/sparc.h: Add TLS relocs.  Move R_SPARC_REV32 to 252.
ld/testsuite/
* ld-sparc/sparc.exp: New.
* ld-sparc/tlsg32.s: New test.
* ld-sparc/tlsg32.sd: Likewise.
* ld-sparc/tlsg64.s: Likewise.
* ld-sparc/tlsg64.sd: Likewise.
* ld-sparc/tlslib.s: Likewise.
* ld-sparc/tlsnopic.s: Likewise.
* ld-sparc/tlspic.s: Likewise.
* ld-sparc/tlssunbin32.dd: Likewise.
* ld-sparc/tlssunbin32.rd: Likewise.
* ld-sparc/tlssunbin32.s: Likewise.
* ld-sparc/tlssunbin32.sd: Likewise.
* ld-sparc/tlssunbin32.td: Likewise.
* ld-sparc/tlssunbin64.dd: Likewise.
* ld-sparc/tlssunbin64.rd: Likewise.
* ld-sparc/tlssunbin64.s: Likewise.
* ld-sparc/tlssunbin64.sd: Likewise.
* ld-sparc/tlssunbin64.td: Likewise.
* ld-sparc/tlssunbinpic32.s: Likewise.
* ld-sparc/tlssunbinpic64.s: Likewise.
* ld-sparc/tlssunnopic32.dd: Likewise.
* ld-sparc/tlssunnopic32.rd: Likewise.
* ld-sparc/tlssunnopic32.s: Likewise.
* ld-sparc/tlssunnopic32.sd: Likewise.
* ld-sparc/tlssunnopic64.dd: Likewise.
* ld-sparc/tlssunnopic64.rd: Likewise.
* ld-sparc/tlssunnopic64.s: Likewise.
* ld-sparc/tlssunnopic64.sd: Likewise.
* ld-sparc/tlssunpic32.dd: Likewise.
* ld-sparc/tlssunpic32.rd: Likewise.
* ld-sparc/tlssunpic32.s: Likewise.
* ld-sparc/tlssunpic32.sd: Likewise.
* ld-sparc/tlssunpic32.td: Likewise.
* ld-sparc/tlssunpic64.dd: Likewise.
* ld-sparc/tlssunpic64.rd: Likewise.
* ld-sparc/tlssunpic64.s: Likewise.
* ld-sparc/tlssunpic64.sd: Likewise.
* ld-sparc/tlssunpic64.td: Likewise.

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

21 years agomerge from gcc
DJ Delorie [Fri, 24 Jan 2003 21:31:35 +0000 (21:31 +0000)]
merge from gcc

21 years ago * ld-s390/s390.exp: New file.
Martin Schwidefsky [Fri, 24 Jan 2003 17:20:25 +0000 (17:20 +0000)]
* ld-s390/s390.exp: New file.
* ld-s390/tlsbin_64.dd: New file.
* ld-s390/tlsbin_64.rd: New file.
* ld-s390/tlsbin_64.s: New file.
* ld-s390/tlsbin_64.sd: New file.
* ld-s390/tlsbin_64.td: New file.
* ld-s390/tlsbin.dd: New file.
* ld-s390/tlsbinpic_64.s: New file.
* ld-s390/tlsbinpic.s: New file.
* ld-s390/tlsbin.rd: New file.
* ld-s390/tlsbin.s: New file.
* ld-s390/tlsbin.sd: New file.
* ld-s390/tlsbin.td: New file.
* ld-s390/tlslib_64.s: New file.
* ld-s390/tlslib.s: New file.
* ld-s390/tlspic1_64.s: New file.
* ld-s390/tlspic1.s: New file.
* ld-s390/tlspic2_64.s: New file.
* ld-s390/tlspic2.s: New file.
* ld-s390/tlspic_64.dd: New file.
* ld-s390/tlspic_64.rd: New file.
* ld-s390/tlspic_64.sd: New file.
* ld-s390/tlspic_64.td: New file.
* ld-s390/tlspic.dd: New file.
* ld-s390/tlspic.rd: New file.
* ld-s390/tlspic.sd: New file.
* ld-s390/tlspic.td: New file.

21 years ago * s390.h: Add s390 TLS relocations.
Martin Schwidefsky [Fri, 24 Jan 2003 17:15:29 +0000 (17:15 +0000)]
* s390.h: Add s390 TLS relocations.

21 years ago * config/tc-s390.c (s390_tls_suffix): New function.
Martin Schwidefsky [Fri, 24 Jan 2003 17:14:25 +0000 (17:14 +0000)]
* config/tc-s390.c (s390_tls_suffix): New function.
(elf_suffix_type): Add suffix enums for TLS relocations.
(s390_elf_suffix): Add suffix strings for TLS relocations.
(s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
bfd relocations.
(md_gather_operands): Map new instruction operand/elf suffix
combinations for TLS to bfd relocations.
(tc_s390_fix_adjustable): Add new TLS relocations.
(tc_s390_force_relocation): Likewise.
(md_apply_fix3): Likewise.

21 years ago * bfd-in2.h: Regenerate.
Martin Schwidefsky [Fri, 24 Jan 2003 17:12:42 +0000 (17:12 +0000)]
* bfd-in2.h: Regenerate.
* elf32-s390.c (elf_s390_mkobject, elf_s390_tls_transition,
s390_tls_reloc, dtpoff_base, tpoff, invalid_tls_insn): New functions.
(elf_howto_table): Add TLS relocs.
(elf_s390_reloc_type_lookup): Likewise.
(elf_s390_link_hash_entry): Add tls_type.
(elf_s390_hash_entry, elf_s390_obj_tdata, elf_s390_local_got_tls_type):
New macros.
(elf_s390_link_hash_table): Add tls_ldm_got.
(link_hash_newfunc): Initialize tls_type.
(elf_s390_link_hash_table_create): Initialize refcount of tls_ldm_got.
(elf_s390_copy_indirect_symbol): Copy tls_type information.
(elf_s390_check_relocs): Support TLS relocs.
(elf_s390_gc_sweep_hook): Likewise.
(allocate_dynrelocs): Likewise.
(elf_s390_size_dynamic_sections): Likewise.
(elf_s390_relocate_section): Likewise.
(elf_s390_finish_dynamic_symbol): Likewise.
(bfd_elf32_mkobject): Define for TLS.
* elf64-s390.c: Same changes as for elf32-s390.c.
* libbfd.h: Regenerate.
* reloc.c: Add s390 TLS relocations.

21 years ago Fix name of --enable-install-libbfd switch.
Nick Clifton [Fri, 24 Jan 2003 16:50:24 +0000 (16:50 +0000)]
 Fix name of --enable-install-libbfd switch.

21 years agoUpdate copyright date
Alan Modra [Fri, 24 Jan 2003 01:12:30 +0000 (01:12 +0000)]
Update copyright date

21 years agoNo, really this time.
Nathanael Nerode [Fri, 24 Jan 2003 00:39:51 +0000 (00:39 +0000)]
No, really this time.

21 years ago*** empty log message ***
gdbadmin [Fri, 24 Jan 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago * config/tc-hppa.h (DIFF_EXPR_OK): Define.
Alan Modra [Thu, 23 Jan 2003 23:17:57 +0000 (23:17 +0000)]
* config/tc-hppa.h (DIFF_EXPR_OK): Define.
(MD_APPLY_SYM_VALUE): Move.

21 years ago* symfile.c (syms_from_objfile): Don't print the "(no debugging
Jim Blandy [Thu, 23 Jan 2003 23:17:28 +0000 (23:17 +0000)]
* symfile.c (syms_from_objfile): Don't print the "(no debugging
symbols found)" message here; we haven't checked for a separate
debug info file yet, so we don't know yet.
(symbol_file_add_with_addrs_or_offsets): Print it here, after
we've looked everywhere.  Also, there's no need to print a special
message when we're loading the separate debug info file: the one
symbol_file_add prints is fine.

21 years agogdb/ChangeLog:
Jim Blandy [Thu, 23 Jan 2003 23:03:32 +0000 (23:03 +0000)]
gdb/ChangeLog:
2003-01-23  Alexander Larsson <alexl@redhat.com>
    Jim Blandy  <jimb@redhat.com>

Add support for executables whose debug info has been separated
out into a separate file, leaving only a link behind.
* objfiles.h (struct objfile): New fields: separate_debug_objfile
and separate_debug_objfile_backlink.
(put_objfile_before): New declaration.
* symfile.c: #include "filenames.h".
(symbol_file_add_with_addrs_or_offsets): If this objfile has its
debug info in a separate file, read that, too. Save the addrs
argument, so we can use it again to read the separated debug info;
syms_from_objfile modifies the table we pass it.
(reread_symbols): After re-reading an objfile, call
reread_separate_symbols to refresh its separate debug info
objfile, if it has one.
(reread_separate_symbols, find_separate_debug_file,
get_debug_link_info, separate_debug_file_exists): New functions.
(debug_file_directory): New global var.
(_initialize_symfile): Initialize debug_file_directory, and
provide the new `set debug-file-directory' command to let the user
change it.
* objfiles.c (free_objfile): If this objfile has its debug info in
a separate objfile, free that one too.  If this is itself a
separate debug info objfile, clear our parent's backlink.
(put_objfile_before): New function.
* utils.c (gnu_debuglink_crc32): New function.
* defs.h (gnu_debuglink_crc32): New declaration.
* Makefile.in (symfile.o): Note dependency on "filenames.h".
* configure.in: Handle --with-separate-debug-dir config option.
* acinclude.m4 (AC_DEFINE_DIR): New macro.
* acconfig.h (DEBUGDIR): New macro.
* configure, aclocal.m4, config.in: Regenerated.

gdb/doc/ChangeLog:
2003-01-23  Jim Blandy  <jimb@redhat.com>

* gdb.texinfo (Separate Debug Files): New section.

21 years agodaily update
Alan Modra [Thu, 23 Jan 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years ago * ld-alpha/tlsbin.sd: Cope with truncated address in data dumps.
Alan Modra [Thu, 23 Jan 2003 22:37:21 +0000 (22:37 +0000)]
* ld-alpha/tlsbin.sd: Cope with truncated address in data dumps.
* ld-alpha/tlsbin.td: Likewise.
* ld-alpha/tlsbinr.sd: Likewise.

21 years ago2003-01-23 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Thu, 23 Jan 2003 22:33:55 +0000 (22:33 +0000)]
2003-01-23  Nathanael Nerode  <neroden@gcc.gnu.org>

* configure.in: Revert previous change.
* configure: Regenerate.