OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
22 years ago* infcmd.c (do_registers_info): Delete code dumping large
Andrew Cagney [Mon, 1 Oct 2001 18:11:19 +0000 (18:11 +0000)]
* infcmd.c (do_registers_info): Delete code dumping large
registers.  Handled by val_print.

22 years agobfd/
Alan Modra [Mon, 1 Oct 2001 14:03:36 +0000 (14:03 +0000)]
bfd/
* bfd-in.h: Remove comments regarding generated files.
* libbfd-in.h: Likewise.
* libcoff-in.h: Likewise.
* bfd-in2.h: Regenerate.
* libbfd.h: Likewise.
* libcoff.h: Likewise.
bfd/doc/
* header.sed: New file, adds header to generated files.
* Makefile.am: Rewrite rules generating libbfd.h, libcoff.h and
bfd.h, using above.  Add missing elf.c dependecy for libbfd.h.
* Makefile.in: Regenerate.

22 years ago * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
Hans-Peter Nilsson [Mon, 1 Oct 2001 00:16:27 +0000 (00:16 +0000)]
* elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
partial_inplace, matching assembler output.  Set src_mask to
all ones.
(sh_elf_relocate_section): Delete misplaced comment.
For relocatable linking against section symbol, call
_bfd_relocate_contents for partial_inplace relocs and adjust
rel->r_addend for others.
<case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
bfd_get_32, not at rel->r_addend.

22 years ago*** empty log message ***
gdbadmin [Mon, 1 Oct 2001 00:00:05 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago2001-09-30 John Healy <jhealy@redhat.com>
John Healy [Sun, 30 Sep 2001 20:06:37 +0000 (20:06 +0000)]
2001-09-30  John Healy  <jhealy@redhat.com>

        * cgen-ibld.in (insert_1): Switched bfd_get_bits and bfd_set_bits
        calls to cgen_get_insn_value and cgen_put_insn_value calls.
        (extract_1): Switched bfd_get_bits call to cgen_get_insn_value call.

22 years ago * Makefile.am: Update dependencies with "make dep-am".
Hans-Peter Nilsson [Sun, 30 Sep 2001 18:54:18 +0000 (18:54 +0000)]
* Makefile.am: Update dependencies with "make dep-am".
* Makefile.in: Regenerate.

22 years ago* gdbarch.sh (gdbarch_alloc): Name the new architecture
Andrew Cagney [Sun, 30 Sep 2001 16:54:28 +0000 (16:54 +0000)]
* gdbarch.sh (gdbarch_alloc): Name the new architecture
``current_gdbarch'' so that it, and not the identically named
global is refered to by macros.
* gdbarch.c: Regenerate.

22 years ago* cli/cli-decode.c (add_set_boolean_cmd): Define.
Andrew Cagney [Sun, 30 Sep 2001 16:16:16 +0000 (16:16 +0000)]
* cli/cli-decode.c (add_set_boolean_cmd): Define.
* cli/cli-decode.h (add_set_boolean_cmd): Declare.
* command.h (add_set_boolean_cmd): Ditto.
* remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
remotebreak"

22 years ago * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
Alan Modra [Sun, 30 Sep 2001 03:03:11 +0000 (03:03 +0000)]
* elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
the old dir refcount, so we indirectly set them to init_refcount.
Short-circuit asserts when we've just verified they are true.

22 years ago*** empty log message ***
gdbadmin [Sun, 30 Sep 2001 00:00:06 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago* gdbarch.sh (gdbarch_dump): Sort output.
Andrew Cagney [Sat, 29 Sep 2001 22:35:53 +0000 (22:35 +0000)]
* gdbarch.sh (gdbarch_dump): Sort output.
* gdbarch.c: Regenerate.

22 years ago* rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
Andrew Cagney [Sat, 29 Sep 2001 21:32:01 +0000 (21:32 +0000)]
* rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
architecture to infer the wordsize.  Previous architecture may not
be a PowerPC.

22 years ago* Makefile.in (configure-target-gperf): Depend on $(ALL_GCC_CXX).
Alexandre Oliva [Sat, 29 Sep 2001 19:38:32 +0000 (19:38 +0000)]
* Makefile.in (configure-target-gperf): Depend on $(ALL_GCC_CXX).

22 years agomerge from gcc
DJ Delorie [Sat, 29 Sep 2001 16:55:59 +0000 (16:55 +0000)]
merge from gcc

22 years ago * section.c (struct sec): Remove kept_section.
Alan Modra [Sat, 29 Sep 2001 12:07:00 +0000 (12:07 +0000)]
* section.c (struct sec): Remove kept_section.
(STD_SECTION): Remove kept_section initialisation.
(bfd_make_section_anyway): Here too.
* ecoff.c (bfd_debug_section): Remove kept_section initialisation.
* cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
* elflink.h (elf_link_input_bfd): Set discarded link-once section
symbols to zero, and remove all code involved with kept_section
and tracking section symbol values.
* bfd-in2.h: Regenerate.
* configure.in: Bump version number.
* configure: Regenerate.

* ldlang.c (section_already_linked): Remove assignment to kept_section.

22 years ago * elf64-ppc.c (struct ppc_dyn_relocs): New.
Alan Modra [Sat, 29 Sep 2001 06:49:16 +0000 (06:49 +0000)]
* elf64-ppc.c (struct ppc_dyn_relocs): New.
(IS_ABSOLUTE_RELOC): Define.
(struct ppc_link_hash_entry): New.
(struct ppc_link_hash_table): New.
(ppc_hash_table): Define.
(link_hash_newfunc): New function.
(ppc64_elf_link_hash_table_create): New function.
(create_got_section): New function.
(ppc64_elf_create_dynamic_sections): Call create_got_section.  Stash
pointers to our dynamic sections in hash table.
(ppc64_elf_copy_indirect_symbol): New function.
(ppc64_elf_check_relocs): Remove DEBUG code.  Use short-cuts to
dynamic sections.  Localise vars.  Modify code for refcounts
starting from zero.  Don't allocate here, or force symbols dynamic.
Don't copy all relocs if shared, select ones we need.  Add code
to track possible copy relocs for non-shared link.
(ppc64_elf_gc_mark_hook): Update comment.
(ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
(ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code.  Rewrite .plt
code for reference counting garbage collection.  Don't create .plt
entries for functions that don't comply with ABI naming convention,
and don't allocate .plt space here.  Use short-cuts to dynamic
sections.  If possible, keep dynamic relocations instead of using
copy relocs.  Remove confused comments.
(ppc_adjust_dynindx): Delete.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
(allocate_dynrelocs): New function.
(readonly_dynrelocs): New function.
(ppc64_elf_size_dynamic_sections): Rewrite.  Allocate local .got
space here, and call allocate_dynrelocs to allocate space for
global .plt, .got and reloc sections.  Use short-cuts to dynamic
sections.  Call readonly_dynrelocs to determine whether we need
DT_TEXTREL.  Don't generate section symbols here, the generic
ELF linker code does it for us.
(ppc64_elf_final_link): Call regular ELF backend linker rather than
gc variety, since we do our own .got handling.
(ppc64_elf_relocate_section): Remove DEBUG code.  Make use of
dynamic section short-cuts.  Localise vars, and delay setting.
Handle unknown relocs in main switch statement.  Replace ugly
complicated tests for unresolvable relocs with a simple direct
scheme using "unresolved_reloc" var.  Test ELF_ST_VISIBILITY
before allowing an undefined sym in a shared lib.  Do R_*_DS tests
after main switch, when we've set addend.  Do non-addend insn
tweaks before main swithc.  Ignore input_section->vma when
calculating reloc offsets as it's always zero.  Rewrite dynamic
reloc handling.  Consolidate R_*_HA handling.  Handle more relocs.
(ppc64_elf_finish_dynamic_symbol): Remove DEBUG code.  Make use
of dynamic section short-cuts.  Reorganise .plt handling code.
Remove confused comments.  Take note of ELF_LINK_FORCED_LOCAL.
Move expressions out of swap_reloca_out function calls.
(ppc64_elf_reloc_type_class): New function.
(ppc64_elf_info_to_howto): Move common expression to local var.
(ppc64_elf_finish_dynamic_sections): Remove DEBUG code.  Make use
of dynamic section short-cuts.  Don't fiddle with section syms
here as the ELF linker does it for us.
(elf_backend_can_refcount): Define.
(bfd_elf64_bfd_link_hash_table_create): Define.
(elf_backend_copy_indirect_symbol): Define.
(elf_backend_reloc_type_class): Define.
(elf_backend_*, bfd_elf64_bfd_* defines): Sort.

22 years ago * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
Alan Modra [Sat, 29 Sep 2001 06:21:59 +0000 (06:21 +0000)]
* elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
(struct elf_backend_data): Add can_refcount.
* elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts.  Set
got.refcount and plt.refcount from init_refcount.
(_bfd_elf_link_hash_table_init): Set up init_refcount.
(_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
rather than got/plt.offset, and test for <= 0 rather than -1.
* elflink.h (size_dynamic_sections): Set init_refcount to -1.
* elfxx-target.h (elf_backend_can_refcount): Define.
(elfNN_bed): Init can_refcount.
* linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
(_bfd_generic_link_hash_newfunc): Likewise.
* elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
starting from zero.
(elf32_hppa_copy_indirect_symbol): Make static to agree with
prototype.
(elf_backend_can_refcount): Define.
* elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
starting from zero.
(allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
(elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
(elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
(elf_backend_can_refcount): Define.
(elf_i386_copy_indirect_symbol): Make static to agree with
prototype.  Formatting fix.
* elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.

22 years ago * som.c (som_write_symbol_strings): Cast current_offset in
Alan Modra [Sat, 29 Sep 2001 06:13:53 +0000 (06:13 +0000)]
* som.c (som_write_symbol_strings): Cast current_offset in
bfd_seek call to match param type.

22 years agomerge from gcc
DJ Delorie [Sat, 29 Sep 2001 03:19:56 +0000 (03:19 +0000)]
merge from gcc

22 years ago*** empty log message ***
gdbadmin [Sat, 29 Sep 2001 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
Richard Henderson [Fri, 28 Sep 2001 21:47:25 +0000 (21:47 +0000)]
    * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
        SEC_MERGE, SEC_STRINGS.

22 years agoDocument changes to som.c revision 1.22.
Joel Brobecker [Fri, 28 Sep 2001 21:36:18 +0000 (21:36 +0000)]
Document changes to som.c revision 1.22.

22 years agosom_write_symbol_strings: Fix incorrect type of current_offset to match
Joel Brobecker [Fri, 28 Sep 2001 21:35:45 +0000 (21:35 +0000)]
som_write_symbol_strings: Fix incorrect type of current_offset to match
the function definition. Fixes a build failure on HPUX-11.00.

22 years ago * config.sub, config.guess: Import latest from subversions.
Hans-Peter Nilsson [Fri, 28 Sep 2001 21:04:51 +0000 (21:04 +0000)]
* config.sub, config.guess: Import latest from subversions.

22 years ago * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
Richard Henderson [Fri, 28 Sep 2001 20:51:15 +0000 (20:51 +0000)]
    * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
        * bfd-in2.h: Rebuild.

22 years ago * tuiLayout.h (tui_set_layout): Don't declare.
Tom Tromey [Fri, 28 Sep 2001 17:39:09 +0000 (17:39 +0000)]
* tuiLayout.h (tui_set_layout): Don't declare.
* tui.h (tui_vAddWinToLayout): Don't declare.
(tui_vSetLayoutTo): Likewise.
(tui_set_layout): Declare.

22 years ago * library/console.itb (Console::_operate_and_get_next): New method.
Tom Tromey [Fri, 28 Sep 2001 16:36:50 +0000 (16:36 +0000)]
* library/console.itb (Console::_operate_and_get_next): New method.
(Console::_setprompt): Insert next history element if requested.
(Console::_build_win): Bind C-o to _operate_and_get_next.
* library/console.ith (_operate_and_get_next): Declare.
(_pendingHistElement): New variable.

22 years ago * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
Alan Modra [Fri, 28 Sep 2001 12:54:53 +0000 (12:54 +0000)]
* elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
reloc code using x86_64_reloc_map.

22 years ago * gdb.base/volatile.exp (local_compiler_xfail_check): Change qux2
Corinna Vinschen [Fri, 28 Sep 2001 11:41:30 +0000 (11:41 +0000)]
* gdb.base/volatile.exp (local_compiler_xfail_check): Change qux2
check to allow additional `int'.

22 years ago * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
Alan Modra [Fri, 28 Sep 2001 08:56:51 +0000 (08:56 +0000)]
* elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
no longer allocate here.  Localise some vars to blocks where they
are used.
(elf32_hppa_adjust_dynamic_symbol): Correct a comment.  Delay
setting of vars until needed.
(allocate_dynrelocs): Don't create a .plt entry without a reloc
when symbol visibilty makes a function local.
(elf32_hppa_finish_dynamic_symbol): Move expressions out of
swap_reloca_out function calls.
(elf32_hppa_relocate_section): Likewies.  Comment typo fix.
(elf32_hppa_finish_dynamic_sections): Migrate common code out of
switch statement.

22 years ago*** empty log message ***
gdbadmin [Fri, 28 Sep 2001 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago2001-09-20 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 27 Sep 2001 22:39:05 +0000 (22:39 +0000)]
2001-09-20  Michael Snyder  <msnyder@redhat.com>
Changes by Daniel Berlin  <dan@cgsoftware.com>, to support
better parsing of const and volatile type expressions.
* c-exp.y (const_and_volatile, const_or_volatile_noopt,
const_or_volatile): New non-terminals.
(ptype): Use new rule for const_or_volatile.
(typebase): Use new rule for const_or_volatile_noopt.
* parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
* parse.c (follow_types): Handle tp_const and tp_volatile on the
type stack: call make_cv_type to create new const/volatile type.

22 years ago * gdb.base/completion.exp: Remove incorrect 'p "a' test.
Daniel Jacobowitz [Thu, 27 Sep 2001 22:21:22 +0000 (22:21 +0000)]
    * gdb.base/completion.exp: Remove incorrect 'p "a' test.
        Add tests for 'p "break' (pass) and 'p "break.' (xfail).

22 years ago2001-09-27 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 27 Sep 2001 21:35:56 +0000 (21:35 +0000)]
2001-09-27  Michael Snyder  <msnyder@redhat.com>

        * lib/gdb.exp (test_debug_format): New proc.
(setup_xfail_format): Use new proc test_debug_format.
* gdb.base/constvars.exp (local_compiler_xfail_check): New
proc; use new service proc test_debug_format.
Replace all other "gcc_compiled" tests with this test.
* gdb.base/volatile.exp (local_compiler_xfail_check): New
proc; use new service proc test_debug_format.
Replace all other "gcc_compiled" tests with this test.

22 years ago2001-09-20 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 27 Sep 2001 21:16:43 +0000 (21:16 +0000)]
2001-09-20  Michael Snyder  <msnyder@redhat.com>
Changes by Daniel Berlin  <dan@cgsoftware.com>, to support
better parsing of const and volatile type expressions.
* c-exp.y (const_and_volatile, const_or_volatile_noopt,
const_or_volatile): New non-terminals.
(ptype): Use new rule for const_or_volatile.
(typebase): Use new rule for const_or_volatile_noopt.
* parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
* parse.c (follow_types): Handle tp_const and tp_volatile on the
        type stack: call make_cv_type to create new const/volatile type.

22 years ago2001-09-21 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 27 Sep 2001 21:14:48 +0000 (21:14 +0000)]
2001-09-21  Michael Snyder  <msnyder@redhat.com>

* c-exp.y (typebase): Accept (signed long long) as a type expr.

22 years agomerge from gcc
DJ Delorie [Thu, 27 Sep 2001 20:27:58 +0000 (20:27 +0000)]
merge from gcc

22 years ago2001-09-27 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Thu, 27 Sep 2001 16:22:46 +0000 (16:22 +0000)]
2001-09-27  Elena Zannoni  <ezannoni@redhat.com>

* library/targetselection.itb (build_win, default_port): Handle
        hpux 11.00.

22 years ago * elf32-i386.c (elf_i386_check_relocs): Update comment since we
Alan Modra [Thu, 27 Sep 2001 16:18:42 +0000 (16:18 +0000)]
* elf32-i386.c (elf_i386_check_relocs): Update comment since we
no longer allocate here.  Localise some vars to blocks where they
are used.  Remove separate switch stmt for creating .got sec.
(elf_i386_adjust_dynamic_symbol): Correct a comment.  Remove
redundant casts and aborts.  Delay setting of vars until needed.
(allocate_dynrelocs): Remove redundant casts and aborts.
(elf_i386_size_dynamic_sections): Move comment.
(elf_i386_finish_dynamic_symbol): Move expressions out of function
calls.
(elf_i386_relocate_section): Likewise.  Comment typo fix.
(elf_i386_finish_dynamic_sections): Migrate common code out of
switch statement.
(elf_backend_* defines): Sort.

22 years ago * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
Alan Modra [Thu, 27 Sep 2001 16:10:28 +0000 (16:10 +0000)]
* elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
without a reloc when symbol visibilty makes a function local.

22 years ago * library/prefs.tcl (escape_value): Update to work
Keith Seitz [Thu, 27 Sep 2001 14:47:45 +0000 (14:47 +0000)]
    * library/prefs.tcl (escape_value): Update to work
        with Tcl's new and old syntax.

22 years agoRevert most of previous delta. Do not call bfd_archive_filename on output
Nick Clifton [Thu, 27 Sep 2001 13:49:27 +0000 (13:49 +0000)]
Revert most of previous delta.  Do not call bfd_archive_filename on output
bfd, nor twice in one expression.

22 years agoDocument changes in infttrace.c (for HPUX 11.00).
Joel Brobecker [Thu, 27 Sep 2001 13:32:17 +0000 (13:32 +0000)]
Document changes in infttrace.c (for HPUX 11.00).

22 years agokill_inferior: Issue a TT_PROC_EXIT request rather than a TT_PROC_STOP
Joel Brobecker [Thu, 27 Sep 2001 13:31:45 +0000 (13:31 +0000)]
kill_inferior: Issue a TT_PROC_EXIT request rather than a TT_PROC_STOP
request to kill the inferior and its child processes. Otherwise, the
inferior is not killed on HPUX 11.0.  Removed the code that detaches the
child processes since we just killed them.

22 years agoReplace bfd_get_filename with bfd_archive_filename in error message.
Nick Clifton [Thu, 27 Sep 2001 07:49:27 +0000 (07:49 +0000)]
Replace bfd_get_filename with bfd_archive_filename in error message.
Fix detection of conflicting float flags.

22 years agoRemove spurious comment
Nick Clifton [Thu, 27 Sep 2001 07:45:32 +0000 (07:45 +0000)]
Remove spurious comment

22 years ago*** empty log message ***
gdbadmin [Thu, 27 Sep 2001 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

22 years agoAdd framework for ``set/show serial ...''.
Andrew Cagney [Wed, 26 Sep 2001 23:27:39 +0000 (23:27 +0000)]
Add framework for ``set/show serial ...''.

22 years ago* CONTRIBUTE: Update. gdb_s390-2001-09-26-branchpoint
Andrew Cagney [Wed, 26 Sep 2001 20:52:56 +0000 (20:52 +0000)]
* CONTRIBUTE: Update.

22 years agomerge from gcc
DJ Delorie [Wed, 26 Sep 2001 18:45:50 +0000 (18:45 +0000)]
merge from gcc

22 years ago * gdb.base/constvars.exp: Check for different orders of keywords
Corinna Vinschen [Wed, 26 Sep 2001 16:06:28 +0000 (16:06 +0000)]
    * gdb.base/constvars.exp: Check for different orders of keywords
        and additional "int" strings in output.

22 years ago * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
Alan Modra [Wed, 26 Sep 2001 09:25:04 +0000 (09:25 +0000)]
* elf32-i386 (elf_i386_copy_indirect_symbol): New function.
(elf_backend_copy_indirect_symbol): Define.
(struct elf_i386_link_hash_entry): Rename "root" to "elf".
(struct elf_i386_link_hash_table): Likewise.
(link_hash_newfunc): Get rid of unnecessary casts.
(elf_i386_link_hash_table_create): Likewise.
(elf_i386_check_relocs): Initialise local_got_refcounts to 0.
Don't test input section SEC_READONLY here to try to avoid copy
relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
(elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
here to properly test whether we need copy relocs.  Do so for weak
syms too.

* elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
(elf_backend_copy_indirect_symbol): Define.
(struct elf32_hppa_link_hash_table): Rename "root" to "elf".
(stub_hash_newfunc): Get rid of unnecessary casts.
(hppa_link_hash_newfunc): Likewise.
(elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
Don't test input section SEC_READONLY here to try to avoid copy
relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
(elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
here to properly test whether we need copy relocs.  Do so for weak
syms too.

22 years agoUse gdbarch data mechanism instead of gdbarch swap mechanism to manage
Kevin Buettner [Wed, 26 Sep 2001 07:03:13 +0000 (07:03 +0000)]
Use gdbarch data mechanism instead of gdbarch swap mechanism to manage
the fetching of architecture specific link map offsets.

22 years ago * arc-dis.c: Formatting fixes.
Alan Modra [Wed, 26 Sep 2001 01:54:07 +0000 (01:54 +0000)]
* arc-dis.c: Formatting fixes.
(my_sprintf): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.

22 years ago * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
Alan Modra [Wed, 26 Sep 2001 01:53:25 +0000 (01:53 +0000)]
* bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
VA_OPEN, VA_FIXEDARG, VA_CLOSE.
(bfd_archive_filename): Cast bfd_malloc arg to the correct size.

22 years ago*** empty log message ***
gdbadmin [Wed, 26 Sep 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

22 years agomerge from gcc
DJ Delorie [Tue, 25 Sep 2001 23:02:03 +0000 (23:02 +0000)]
merge from gcc

22 years ago * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
Jakub Jelinek [Tue, 25 Sep 2001 22:12:29 +0000 (22:12 +0000)]
* elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
computation.

22 years ago2001-09-25 H.J. Lu <hjl@gnu.org>
H.J. Lu [Tue, 25 Sep 2001 16:35:05 +0000 (16:35 +0000)]
2001-09-25  H.J. Lu  <hjl@gnu.org>

* bfd-in2.h: Regenerated.

22 years agofix of my email address
Jiri Smid [Tue, 25 Sep 2001 11:52:54 +0000 (11:52 +0000)]
fix of my email address

22 years ago* x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
Jiri Smid [Tue, 25 Sep 2001 10:37:17 +0000 (10:37 +0000)]
* x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
(x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
by LINUX_SIGINFO_SIZE.

22 years ago * elf32-i386.c: Add comment re linker function names and ordering.
Alan Modra [Tue, 25 Sep 2001 10:11:46 +0000 (10:11 +0000)]
* elf32-i386.c: Add comment re linker function names and ordering.
(elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
(elf_i386_grok_prstatus): Move before linker functions.
(elf_i386_grok_psinfo): Likewise.
(elf_i386_fake_sections): Move so that functions are ordered.
(elf_i386_reloc_type_class): Likewise.  Comment function purpose.

22 years ago * elf32-hppa.c: Rename all occurrences of "hplink" to "htab"
Alan Modra [Tue, 25 Sep 2001 07:28:13 +0000 (07:28 +0000)]
* elf32-hppa.c: Rename all occurrences of "hplink" to "htab"
throughout file.

22 years ago * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
Alan Modra [Tue, 25 Sep 2001 07:10:59 +0000 (07:10 +0000)]
* elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete.  Remove all
code handling this option.
(LONG_BRANCH_VIA_PLT): Likewise.
(RELATIVE_DYNRELOCS): Define as zero.
(struct elf32_hppa_dyn_reloc_entry): Add "sec", and
"pc_count" fields.  Remove "section" field.
(elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
(elf32_hppa_check_relocs): Don't allocate space for dynamic
relocs here.  Instead, record all needed dynamic relocs via
dyn_relocs and local_dynrel.  Cache pointer to "sreloc" section
in elf_section_data.
(elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
(allocate_plt_and_got_and_discard_relocs): Rename to
allocate_dynrelocs.  Allocate rather than discarding dyn relocs.
(readonly_dynrelocs): New function.
(elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
Call readonly_dynrelocs to determine need for DT_TEXTREL.
Rename "i" to "ibfd".  Allocate space for local dyn relocs.
(elf32_hppa_relocate_section): Make use of cached sreloc.
(elf32_hppa_reloc_type_class): New function.
(elf_backend_reloc_type_class): Define.

22 years ago * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
Alan Modra [Tue, 25 Sep 2001 04:34:50 +0000 (04:34 +0000)]
* elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
and "sreloc" fields.
* elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
"pc_count" fields.  Remove "section" field.
(elf_i386_check_relocs): Don't set DF_TEXTREL here.  Don't
allocate space for dynamic relocs here.  Instead, record all
needed dynamic relocs via dyn_relocs and local_dynrel.  Cache
pointer to "sreloc" section in elf_section_data.
(elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
(allocate_plt_and_got_and_discard_relocs): Rename to
allocate_dynrelocs.  Allocate rather than discarding dyn relocs.
(readonly_dynrelocs): New function.
(elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
Rename "i" to "ibfd".  Allocate space for local dyn relocs.
(elf_i386_relocate_section): Make use of cached sreloc.

22 years ago* maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
Andrew Cagney [Tue, 25 Sep 2001 02:31:51 +0000 (02:31 +0000)]
* maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
variables.
(maintenance_set_profile_cmd): New function.
(maintenance_show_cmd, maintenance_set_cmd): New functions.
(_initialize_maint_cmds): Add "maintenance set" and "maintenance
show" and, commented out, "maintenance set/show profile" commands.

22 years ago*** empty log message ***
gdbadmin [Tue, 25 Sep 2001 00:00:06 +0000 (00:00 +0000)]
*** empty log message ***

22 years agomerge from gcc
DJ Delorie [Mon, 24 Sep 2001 23:37:52 +0000 (23:37 +0000)]
merge from gcc

22 years ago* findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
Andrew Cagney [Mon, 24 Sep 2001 19:46:15 +0000 (19:46 +0000)]
* findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
convert the pointer into a CORE_ADDRs.

22 years ago* doublest.h (store_floating, extract_floating): Add comment
Andrew Cagney [Mon, 24 Sep 2001 17:16:53 +0000 (17:16 +0000)]
* doublest.h (store_floating, extract_floating): Add comment
indicating these functions are deprecated.
(extract_typed_floating, store_typed_floating): Declare.
* doublest.c: Include "gdbtypes.h".
(extract_typed_floating, store_typed_floating): Define.

* stabsread.c (define_symbol): Use store_typed_floating.
* valarith.c (value_binop): Ditto.
* values.c (unpack_long): Use extract_typed_floating.
(unpack_double): Ditto.

22 years ago2001-09-24 Orjan Friberg <orjanf@axis.com>
Orjan Friberg [Mon, 24 Sep 2001 08:04:10 +0000 (08:04 +0000)]
2001-09-24  Orjan Friberg  <orjanf@axis.com>

* cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
from correct register.

22 years ago * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
Alan Modra [Mon, 24 Sep 2001 01:38:31 +0000 (01:38 +0000)]
* elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
reloc rather than just the type.
(_bfd_elf_reloc_type_class): Likewise.
* elf.c (_bfd_elf_reloc_type_class): Likewise.
* elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
* elf32-cris.c (elf_cris_reloc_type_class): Likewise.
* elf32-i386.c (elf_i386_reloc_type_class): Likewise.
* elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
* elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
* elf32-s390.c (elf_s390_reloc_type_class): Likewise.
* elf32-sh.c (sh_elf_reloc_type_class): Likewise.
* elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
* elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
* elf64-s390.c (elf_s390_reloc_type_class): Likewise.
* elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
* elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
* elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
* elflink.h: Formatting fixes.
(elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
Call bfd_zmalloc rather than calloc.  Remove unnecessary cast of
o->contents to PTR.  Update call to elf_backend_reloc_type_class.

22 years ago*** empty log message ***
gdbadmin [Mon, 24 Sep 2001 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
gdbadmin [Sun, 23 Sep 2001 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago * elfcode.h (elf_object_p): Allow for no section header at all in
Alan Modra [Sat, 22 Sep 2001 03:16:01 +0000 (03:16 +0000)]
* elfcode.h (elf_object_p): Allow for no section header at all in
non-ET_REL files.  Honor 0 for e_shnum, e_shstrndx, e_shoff.

22 years ago*** empty log message ***
gdbadmin [Sat, 22 Sep 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago* x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
Mark Kettenis [Fri, 21 Sep 2001 22:57:29 +0000 (22:57 +0000)]
* x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.

22 years agoFix compile time warnings
Nick Clifton [Fri, 21 Sep 2001 14:25:09 +0000 (14:25 +0000)]
Fix compile time warnings

22 years ago * arc-dis.c: Don't include <ctype.h>.
Alan Modra [Fri, 21 Sep 2001 12:36:56 +0000 (12:36 +0000)]
* arc-dis.c: Don't include <ctype.h>.
* openrisc-desc.c: Likewise.
* openrisc-ibld.c: Likewise.

22 years ago* config/i386/x86-64linux.mh: New file.
Jiri Smid [Fri, 21 Sep 2001 12:24:55 +0000 (12:24 +0000)]
* config/i386/x86-64linux.mh: New file.
* config/i386/x86-64linux.mt: New file.
* config/i386/nm-x86_64.h: New file.
* x86-64-linux-tdep.c: New file.
* x86-64-linux-nat.c: New file.
* x86-64-tdep.c: New file.
* x86-64-tdep.h: New file.
* i386-tdep.h: New file.
* i387-nat.c: Include i386-tdep.h when multiarch.
* i387-tdep.c: Ditto.
* config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
and x86_64-linux-nat.c
* Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.

22 years ago* config/i386/x86-64linux.mh: New file.
Jiri Smid [Fri, 21 Sep 2001 12:19:15 +0000 (12:19 +0000)]
* config/i386/x86-64linux.mh: New file.
* config/i386/x86-64linux.mt: New file.
* config/i386/nm-x86_64.h: New file.
* x86-64-linux-tdep.c: New file.
* x86-64-linux-nat.c: New file.
* x86-64-tdep.c: New file.
* x86-64-tdep.h: New file.
* config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
and x86_64-linux-nat.c
* Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.

22 years ago* i386-tdep.h: New file.
Jiri Smid [Fri, 21 Sep 2001 12:15:15 +0000 (12:15 +0000)]
* i386-tdep.h: New file.
* i387-nat.c: Include i386-tdep.h when multiarch.
* i387-tdep.c: Ditto.

22 years ago* MAINTAINERS: Add myself to the write-after-approval list.
Jiri Smid [Fri, 21 Sep 2001 07:17:52 +0000 (07:17 +0000)]
* MAINTAINERS: Add myself to the write-after-approval list.
* i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
(i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
i386_insert_watchpoint, i386_remove_watchpoint):  Add support for
8-byte wide watchpoints.
(i386_show_dr): Debug message format string change.

22 years ago* i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
Jiri Smid [Fri, 21 Sep 2001 07:16:03 +0000 (07:16 +0000)]
* i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
(i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
i386_insert_watchpoint, i386_remove_watchpoint):  Add support for
8-byte wide watchpoints.
(i386_show_dr): Debug message format string change.

22 years ago* MAINTAINERS: Add myself to the write-after-approval list.
Jiri Smid [Fri, 21 Sep 2001 07:14:31 +0000 (07:14 +0000)]
* MAINTAINERS: Add myself to the write-after-approval list.

22 years agofix compile time warning messages
Nick Clifton [Fri, 21 Sep 2001 06:52:20 +0000 (06:52 +0000)]
fix compile time warning messages

22 years ago* Makefile.in (AS_FOR_TARGET, LD_FOR_TARGET,
Alexandre Oliva [Fri, 21 Sep 2001 05:14:32 +0000 (05:14 +0000)]
* Makefile.in (AS_FOR_TARGET, LD_FOR_TARGET,
DLLTOOL_FOR_TARGET, WINDRES_FOR_TARGET, AR_FOR_TARGET,
RANLIB_FOR_TARGET, NM_FOR_TARGET): Don't use double quotes to
avoid quotes nesting problems.
(NATIVE_CHECK_MODULES): Ditto, just for consistency.
(DO_X): Export only variables that are set.

22 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Fri, 21 Sep 2001 02:12:29 +0000 (02:12 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.

* aoutx.h: Formatting fixes.
* merge.c (_bfd_merged_section_offset): Break line at 80 chars.

* linker.c: Replace bfd_get_filename with bfd_archive_filename
in error message.

22 years ago*** empty log message ***
gdbadmin [Fri, 21 Sep 2001 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago * bfd.c (bfd_archive_filename): New function.
Alan Modra [Thu, 20 Sep 2001 23:30:37 +0000 (23:30 +0000)]
* bfd.c (bfd_archive_filename): New function.
* bfd-in2.h: Regenerate.
* aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
in error messages where the bfd is an input bfd.
* aout-cris.c: Likewise.
* coff-arm.c: Likewise.
* coff-mcore.c: Likewise.
* coff-ppc.c: Likewise.
* coff-rs6000.c: Likewise.
* coff-sh.c: Likewise.
* coff-tic54x.c: Likewise.
* coff-tic80.c: Likewise.
* coff64-rs6000.c: Likewise.
* coffcode.h: Likewise.
* coffgen.c: Likewise.
* cofflink.c: Likewise.
* ecofflink.c: Likewise.
* elf-hppa.h: Likewise.
* elf.c: Likewise.
* elf32-arm.h: Likewise.
* elf32-cris.c: Likewise.
* elf32-gen.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-mips.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-sparc.c: Likewise.
* elf32-v850.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-gen.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sparc.c: Likewise.
* elf64-x86-64.c: Likewise.
* elflink.h: Likewise.
* elfxx-ia64.c: Likewise.
* ieee.c: Likewise.
* ihex.c: Likewise.
* libbfd.c: Likewise.
* pdp11.c: Likewise.
* pe-mips.c: Likewise.
* peicode.h: Likewise.
* srec.c: Likewise.
* xcofflink.c: Likewise.

* elf32-arm.h: Make _bfd_error_handler calls K&R compatible.

* elflink.c (_bfd_elf_create_linker_section): Better grammar for
error message.

* coff-mcore.c (coff_mcore_relocate_section): Internalionalise
error message.

* elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
Consolidate error messages, and split long messages to two lines.

22 years agoMake set_solib_svr4_fetch_link_map_offsets() work as intended.
Kevin Buettner [Thu, 20 Sep 2001 20:07:55 +0000 (20:07 +0000)]
Make set_solib_svr4_fetch_link_map_offsets() work as intended.

22 years agooops - forgot to check for clean 64 bit build - fix compile time warning
Nick Clifton [Thu, 20 Sep 2001 15:33:41 +0000 (15:33 +0000)]
oops - forgot to check for clean 64 bit build - fix compile time warning

22 years agoFix compile time warnings
Nick Clifton [Thu, 20 Sep 2001 15:28:25 +0000 (15:28 +0000)]
Fix compile time warnings

22 years agocoordinate info->symbolic and info->allow_shlib_undefined
Nick Clifton [Thu, 20 Sep 2001 10:37:35 +0000 (10:37 +0000)]
coordinate info->symbolic and info->allow_shlib_undefined

22 years ago * coffread.c: Replace all occurrences of bfd_read with bfd_bread.
Alan Modra [Thu, 20 Sep 2001 03:03:40 +0000 (03:03 +0000)]
* coffread.c: Replace all occurrences of bfd_read with bfd_bread.
* dbxread.c: Likewise.
* dwarf2read.c: Likewise.
* dwarfread.c: Likewise.
* somread.c: Likewise.
* ultra3-nat.c: Likewise.
* xcoffread.c: Likewise.

22 years ago*** empty log message ***
gdbadmin [Thu, 20 Sep 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago* cris-tdep.c (cris_get_signed_offset): Change return type to an
Andrew Cagney [Wed, 19 Sep 2001 21:59:41 +0000 (21:59 +0000)]
* cris-tdep.c (cris_get_signed_offset): Change return type to an
explicitly signed char.

22 years ago* config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
Andrew Cagney [Wed, 19 Sep 2001 20:43:54 +0000 (20:43 +0000)]
* config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
function signature to match recent tracepoint.c:encode_actions
changes.
* mcore-tdep.c (mcore_virtual_frame_pointer): Ditto.

22 years ago * library/main.tcl: Append iwidgets library path, if needed.
Keith Seitz [Wed, 19 Sep 2001 18:10:37 +0000 (18:10 +0000)]
* library/main.tcl: Append iwidgets library path, if needed.
* generic/gdbtk.c (gdbtk_init): Add TCLLIBPATH to iwidgets
package index.
Define IWIDGETS_LIBRARY in interpreter so that we can add
this path to the auto_path at the right time later.

22 years agoFix compile time warning messages
Nick Clifton [Wed, 19 Sep 2001 17:40:28 +0000 (17:40 +0000)]
Fix compile time warning messages