OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
22 years agomerge from gcc
DJ Delorie [Tue, 16 Oct 2001 02:55:31 +0000 (02:55 +0000)]
merge from gcc

22 years ago* value.h (value_as_address): Rename value_as_pointer.
Andrew Cagney [Tue, 16 Oct 2001 01:58:07 +0000 (01:58 +0000)]
* value.h (value_as_address): Rename value_as_pointer.
* eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c,
jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c,
values.c: Update.

22 years ago202001-10-15 Jim Ingham <jingham@inghji.apple.com>
Andrew Cagney [Tue, 16 Oct 2001 01:19:09 +0000 (01:19 +0000)]
202001-10-15  Jim Ingham  <jingham@inghji.apple.com>
* valarith.c (value_sub): Don't pass a raw type to
value_from_pointer, it has to go through check_typedef first.

22 years agodaily update
Alan Modra [Tue, 16 Oct 2001 00:00:05 +0000 (00:00 +0000)]
daily update

22 years agoProvide a valid non-multi-arch default for INTEGER_TO_ADDRESS.
Andrew Cagney [Mon, 15 Oct 2001 21:38:44 +0000 (21:38 +0000)]
Provide a valid non-multi-arch default for INTEGER_TO_ADDRESS.

22 years agoAdd INTEGER_TO_ADDRESS to hadle nasty harvard architectures that do
Andrew Cagney [Mon, 15 Oct 2001 18:18:30 +0000 (18:18 +0000)]
Add INTEGER_TO_ADDRESS to hadle nasty harvard architectures that do
funnies to integer to address conversions.

22 years ago * elf32-i386.c (elf_i386_relocate_section): Report some detail on
Alan Modra [Mon, 15 Oct 2001 12:58:48 +0000 (12:58 +0000)]
* elf32-i386.c (elf_i386_relocate_section): Report some detail on
bfd_reloc_outofrange and similar errors.

22 years ago * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
Alan Modra [Mon, 15 Oct 2001 09:45:48 +0000 (09:45 +0000)]
* elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
rather than ind->weakdef.
* elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
* elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
* elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
* elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.

22 years ago * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
Alan Modra [Mon, 15 Oct 2001 07:28:45 +0000 (07:28 +0000)]
* elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
counts for aliases instead of aborting.
* elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.

* elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
to -1 for non-function symbols.
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
* elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
* elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
* elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
plt.offset instead of plt.refcount when setting to -1.

22 years agodaily update
Alan Modra [Mon, 15 Oct 2001 01:16:16 +0000 (01:16 +0000)]
daily update

22 years ago* config/s390/nm-linux.h: Don't include <signal.h>.
Mark Kettenis [Sun, 14 Oct 2001 21:04:05 +0000 (21:04 +0000)]
* config/s390/nm-linux.h: Don't include <signal.h>.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Remove.

22 years ago* config/nm-linux.h (struct objfile): Remove forward declaration.
Mark Kettenis [Sun, 14 Oct 2001 20:59:23 +0000 (20:59 +0000)]
* config/nm-linux.h (struct objfile): Remove forward declaration.
(linuxthreads_new_objfile): Remove prototype.
(linuxthreads_pid_to_str): Remove prototype.
(PREPARE_TO_PROCEED): Redefine in terms of
lin_lwp_prepare_to_proceed.
(struct target_waitstatus): Forward declaration.
(child_wait): New prototype.
(CHILD_WAIT): Define.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Moved here from arch-specific files.
* config/alpha/nm-linux.h, config/arm/nm-linux.h,
config/ia64/nm-linux.h, config/mips/nm-linux.h,
config/powerpc/nm-linux.h: Don't include <signal.h>.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Remove.
* config/i386/nm-linux.h: Likewise.
(struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
* config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
Remove linux-thread.o.  Add proc-service.o, thread-db.o and
lin-lwp.o.
(LOADLIBES): New variable.

22 years ago* sparc-nat.c (fetch_core_registers): Remove redundant prototype.
Mark Kettenis [Sun, 14 Oct 2001 17:15:14 +0000 (17:15 +0000)]
* sparc-nat.c (fetch_core_registers): Remove redundant prototype.

22 years ago* proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
Mark Kettenis [Sun, 14 Oct 2001 11:50:39 +0000 (11:50 +0000)]
* proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.

22 years agoFix attaching to cloned processes. This fixes PR gdb/61.
Mark Kettenis [Sun, 14 Oct 2001 11:30:37 +0000 (11:30 +0000)]
Fix attaching to cloned processes.  This fixes PR gdb/61.
* lin-lwp.c (struct lwp_info): Add new member `cloned'.
(is_cloned) Removed.
(lin_lwp_attach_lwp): Don't call stop_wait_callback.  Instead call
waitpid explicitly.  Mark the LWP as cloned if waitpid fails and
retry with __WCLONE flag.
(lin_lwp_attach): Likewise.  Warn if attaching to a cloned process.
(detach_callback): Replace use of is_cloned with explicit check on
LWP id and process id.
(stop_wait_callback): Replace use of is_cloned with check if LWP
is marked as cloned.
[CHILD_WAIT] (child_wait): New function.
(lin_lwp_wait): Replace use of is_cloned with check if LWP is
marked as cloned.  Mark newly detected LWPs as cloned if detected
by waitpid with __WCLONE flag.
(kill_wait_callback): Replace use of is_cloned with check if LWP
is marked as cloned.
* config/i386/nm-linux.h (struct target_waitstatus): Add forward
declaration.
(child_wait): Add prototype.
(CHILD_WAIT): Define.

22 years ago[gas/testsuite/ChangeLog]
Matthew Green [Sun, 14 Oct 2001 01:19:09 +0000 (01:19 +0000)]
[gas/testsuite/ChangeLog]
* gas/ppc/booke.s (rfci, wrtee, wrteei, mfdcrx, mfdcr, mtdcrx,
mtdcr, msync, dcba, mbar): New BookE tests.
* gas/ppc/booke.d: Update for new BookE tests.

[opcodes/ChangeLog]
* ppc-opc.c (MO): New macro for MO field of mbar instruction.
(powerpc_opcodes): Add rfci, wrtee, wrteei, mfdcrx, mfdcr,
mtdcrx, mtdcr, msync, dcba and mbar as BookE instructions.

22 years agodaily update
Alan Modra [Sun, 14 Oct 2001 00:00:05 +0000 (00:00 +0000)]
daily update

22 years agoS/390 31 & 64 bit target and GNU/Linux native support.
Andrew Cagney [Sat, 13 Oct 2001 22:13:35 +0000 (22:13 +0000)]
S/390 31 & 64 bit target and GNU/Linux native support.
Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
* s390-nat.c, s390-tdep.c: New file.
* config/s390/nm-linux.h, config/s390/s390.mh: New file.
* config/s390/s390.mt, config/s390/s390x.mt: New file.
* config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
* config/s390/xm-linux.h: New file.
* NEWS: Update.
* MAINTAINERS: Update.

22 years agoFrom 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
Andrew Cagney [Sat, 13 Oct 2001 19:40:31 +0000 (19:40 +0000)]
From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
* gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
CALL_DUMMY_BREAKPOINT_OFFSET_P.
* gdbarch.c: Regenerate.

22 years ago* thread-db.c: Fix a few formatting mistakes.
Mark Kettenis [Sat, 13 Oct 2001 15:04:02 +0000 (15:04 +0000)]
* thread-db.c: Fix a few formatting mistakes.

22 years agoUse safe-ctype.h not ctype.h
Nick Clifton [Sat, 13 Oct 2001 09:38:04 +0000 (09:38 +0000)]
Use safe-ctype.h not ctype.h

22 years ago * gdb.base/maint.exp: Treat $EXEEXT as optional in output.
Corinna Vinschen [Sat, 13 Oct 2001 08:36:32 +0000 (08:36 +0000)]
* gdb.base/maint.exp: Treat $EXEEXT as optional in output.

22 years agoFix capitalization.
Christopher Faylor [Sat, 13 Oct 2001 04:15:40 +0000 (04:15 +0000)]
Fix capitalization.

22 years agooops, fix an error in the previous entry.
Matthew Green [Sat, 13 Oct 2001 02:27:25 +0000 (02:27 +0000)]
oops, fix an error in the previous entry.

22 years ago[gas/ChangeLog]
Matthew Green [Sat, 13 Oct 2001 01:59:09 +0000 (01:59 +0000)]
[gas/ChangeLog]
* config/tc-ppc.c (md_parse_option): New -m7410, -m7450 and -m7455
flags, equivalent to -m7400.  New -maltivec to enable AltiVec
instructions.  New -mbook64 and -mbooke/-mbooke32 flags to enable
64-bit and 32-bit BookE support, respectively.  Change -m403 and
-m405 to set PPC403 option.
(md_show_usage): Adjust for new options.
* doc/all.texi: Set PPC.
* doc/as.texinfo: Add PPC support and pull in c-ppc.texi.
* doc/c-ppc.texi: New file.
* doc/Makefile.am (CPU_DOCS): Add c-ppc.texi.
* doc/Makefile.in: Regenerate.

[gas/testsuite/ChangeLog]
* gas/ppc/booke.s: New test for Motorola BookE.
* gas/ppc/booke.d: New file.
* gas/ppc/ppc.exp: Test booke.s.

[include/opcode/ChangeLog]
* ppc.h (PPC_OPCODE_BOOKE, PPC_OPCODE_403): New opcode flags for
BookE and PowerPC403 instructions.

[opcodes/ChangeLog]
* ppc-opc.c (insert_de, extract_de, insert_des, extract_des): New
instruction field instruction/extraction functions for new BookE
DE form instructions.
(CT): New macro for CT field in an X form instruction.
(DE, DES, DEO, DE_MASK): New macros for DE/DES fields in DE form
instructions.
(PPC64): Don't include PPC_OPCODE_PPC.
(403): New opcode macro for PPC403 processors.
(BOOKE): New opcode macro for BookE processors.
(bce, bcel, bcea, bcela, bclre, bclrel: New BookE instructions.
(bcctre, bcctrel, be, bel, bea, bela, icbt, icbte, lwzxe): Likewise.
(dcbste, lwzuxe, luxe, dcbfe, lbzxe, lwarxe, lbzuxe): Likewise.
(stwcxe, stwxe, stxe, stwuxe, stuxe, stbxe, dcbtste, stbuxe): Likewise.
(mfapidi, dcbte, lhzxe, lhzuxe, lhaxe, lhauxe, subfe64): Likewise.
(subfeo64, adde64, addeo64, sthxe, sthuxe, subfze64): Likewise.
(subfzeo64, addze64, addzeo64, dcbie, subfme64, subfmeo64): Likewise.
(addme64, addmeo64, stdcxe., mcrxr64, lwbrxe, lfsxe, lfsuxe): Likewise.
(lfdxe, lfduxe, stwbrxe, stfsxe, stfsuxe, stfdxe, dcbae): Likewise.
(stfduxe, tlbivax, tlbivaxe, lhbrxe, ldxe, lduxe, tlbsx): Likewise.
(tlbsxe, sthbrxe, stdxe, stduxe, icbie, stfiwxe, dcbze, lbze): Likewise.
(lbzue, ldue, lhze, lhzue, lhae, lhaue, lwze, lwzue): Likewise.
(stbe, stbue, sthe, sthue, stwe, stwue, lfse, lfsue, lfde): Likewise.
(lfdue, stde, stdue, stfse, stfsue, stfde, stfdue): Likewise.

* ppc-dis.c (print_insn_big_powerpc, print_insn_little_powerpc): Look
for a disassembler option of `booke', `booke32' or `booke64' to enable
BookE support in the disassembler.

22 years ago* win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked list
Christopher Faylor [Sat, 13 Oct 2001 01:20:29 +0000 (01:20 +0000)]
* win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked list
pointer to beginning rather than one beyond beginning.

22 years ago * library/console.itb (Console::_build_win): Bind Control-m and
Tom Tromey [Sat, 13 Oct 2001 00:16:17 +0000 (00:16 +0000)]
* library/console.itb (Console::_build_win): Bind Control-m and
Control-j.

22 years agodaily update
Alan Modra [Sat, 13 Oct 2001 00:00:11 +0000 (00:00 +0000)]
daily update

22 years ago2001-10-12 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Fri, 12 Oct 2001 23:51:30 +0000 (23:51 +0000)]
2001-10-12  Daniel Jacobowitz  <drow@mvista.com>

        * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.

        * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
        (make_symbol_completion_list): Likewise.
        (make_symbol_overload_list): Likewise.
        * buildsym.c (finish_block): Likewise.
        * breakpoint.c (get_catch_sals):  Likewise.
        * mdebugread.c (mylookup_symbol): Likewise.
        * objfiles.c (objfile_relocate): Likewise.
        * printcmd.c (print_frame_args): Likewise.
        * stack.c (print_block_frame_locals): Likewise.
        (print_block_frame_labels): Likewise.
        (print_frame_arg_vars): Likewise.
        * symmisc.c (dump_symtab): Likewise.
        * tracepoint.c (add_local_symbols): Likewise.
        (scope_info): Likewise.

2001-10-12  Daniel Jacobowitz  <drow@mvista.com>

        * mi-cmd-stack.c (list_args_or_locals): Use ALL_BLOCK_SYMBOLS.

2001-10-12  Daniel Jacobowitz  <drow@mvista.com>

        * generic/gdbtk-cmds.c (gdb_listfuncs): Use ALL_BLOCK_SYMBOLS.
        * generic/gdbtk-stack.c (gdb_block_vars): Likewise.
        (gdb_get_blocks): Likewise.
        (gdb_get_vars_command): Likewise.
5~

22 years ago* Makefile.in (MAKEHTMLFLAGS): Remove -glossary; the most recent
Jim Blandy [Fri, 12 Oct 2001 21:10:07 +0000 (21:10 +0000)]
* Makefile.in (MAKEHTMLFLAGS): Remove -glossary; the most recent
version of texi2html (1.64) doesn't support this flag any more.

22 years ago * minsyms.c (msymbol_hash): Use better hash function.
Daniel Jacobowitz [Fri, 12 Oct 2001 19:07:07 +0000 (19:07 +0000)]
    * minsyms.c (msymbol_hash): Use better hash function.
        (msymbol_hash_iw): Likewise.  Terminate loop at '(' properly.

        * objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
        binaries.

22 years ago2001-10-12 John Healy <jhealy@redhat.com>
John Healy [Fri, 12 Oct 2001 18:28:57 +0000 (18:28 +0000)]
2001-10-12  John Healy  <jhealy@redhat.com>

        * cgen-dis.in (print_insn): Use min (cd->base_insn_bitsize, buflen*8)
        for the length when extracting the base part of the insn.

22 years ago * printcmd.c (print_frame_args): Move symbol iteration explicitly
Daniel Jacobowitz [Fri, 12 Oct 2001 17:15:34 +0000 (17:15 +0000)]
    * printcmd.c (print_frame_args):  Move symbol iteration explicitly
        inside the func != NULL block.

22 years ago2001-10-12 Fernando Nasser <fnasser@redhat.com>
Fernando Nasser [Fri, 12 Oct 2001 15:59:11 +0000 (15:59 +0000)]
2001-10-12  Fernando Nasser  <fnasser@redhat.com>

* MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
maintainer.

22 years agoTreat R_ARM_THM_PC22 like R_ARM_PC24.
Nick Clifton [Fri, 12 Oct 2001 11:16:21 +0000 (11:16 +0000)]
Treat R_ARM_THM_PC22 like R_ARM_PC24.

22 years ago* config/i386/tm-cygwin.h: include tm-i386.h instead of tm-i386v.h. This fixes
Christopher Faylor [Fri, 12 Oct 2001 04:32:16 +0000 (04:32 +0000)]
* config/i386/tm-cygwin.h: include tm-i386.h instead of tm-i386v.h.  This fixes
errors in "long long" handling for 'finish' and 'return' commands.
* win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared library if it
has already been loaded.
(safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see any
error messages.
(safe_symbol_file_add): Ditto.
(solib_symbols_add): Make static.  Accept 'from_tty' parameter.  Pass it to
safe_symbol_file_add.
(core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
(child_solib_add): Ditto.
* win32-nat.c (handle_exception): Don't print "first chance" exceptions.
(get_child_debug_event): Continue from exceptions if !handle_exception.

22 years ago * symtab.c (lookup_symtab): Removed.
Tom Tromey [Fri, 12 Oct 2001 03:38:12 +0000 (03:38 +0000)]
* symtab.c (lookup_symtab): Removed.
(lookup_symtab_1): Renamed to lookup_symtab.

22 years agodaily update
Alan Modra [Fri, 12 Oct 2001 00:00:09 +0000 (00:00 +0000)]
daily update

22 years ago*** empty log message ***
gdbadmin [Fri, 12 Oct 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago * library/gdbtoolbar.itcl (GDBToolBar::add): Add option
Ian Roxborough [Thu, 11 Oct 2001 06:14:05 +0000 (06:14 +0000)]
* library/gdbtoolbar.itcl (GDBToolBar::add): Add option
for "custom" type.
(GDBToolBar::toolbar_add_custom): new method.

22 years ago* win32-nat.c (get_child_debug_event): Close file handles created after process
Christopher Faylor [Thu, 11 Oct 2001 01:55:58 +0000 (01:55 +0000)]
* win32-nat.c (get_child_debug_event): Close file handles created after process
creation and DLL load.
(child_create_inferior): Close unneeded process/thread handle after thread
creation.

22 years agodaily update
Alan Modra [Thu, 11 Oct 2001 00:00:06 +0000 (00:00 +0000)]
daily update

22 years ago*** empty log message ***
gdbadmin [Thu, 11 Oct 2001 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago* mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
Jim Blandy [Wed, 10 Oct 2001 21:22:44 +0000 (21:22 +0000)]
* mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.

22 years ago * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
Jakub Jelinek [Wed, 10 Oct 2001 19:32:02 +0000 (19:32 +0000)]
* elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
relocations against the same symbol in .rel{,a}.dyn section.

22 years ago * varobj.c (cplus_value_of_child): Deal with a failure
Keith Seitz [Wed, 10 Oct 2001 17:01:52 +0000 (17:01 +0000)]
* varobj.c (cplus_value_of_child): Deal with a failure
to dereference a pointer object.

22 years ago * aout-encap.c: Fix comment typos.
Kazu Hirata [Wed, 10 Oct 2001 12:08:29 +0000 (12:08 +0000)]
* aout-encap.c: Fix comment typos.
* aoutx.h: Likewise.
* archive.c: Likewise.
* bout.c: Likewise.
* coff64-rs6000.c: Likewise.
* coffcode.h: Likewise.
* coffgen.c: Likewise.
* cofflink.c: Likewise.
* coff-mips.c: Likewise.
* ecoff.c: Likewise.
* elf32-m32r.c: Likewise.
* libcoff-in.h: Likewise.
* libecoff.h: Likewise.
* libxcoff.h: Likewise.
* nlm32-i386.c: Likewise.
* pdp11.c: Likewise.
* section.c: Likewise.
* som.c: Likewise.
* som.h: Likewise.
* bfd-in2.h: Regenerate.
* libcoff.h: Likewise.

22 years ago * elf.c (elf_map_symbols): Don't create new section symbols; Use
Alan Modra [Wed, 10 Oct 2001 11:19:54 +0000 (11:19 +0000)]
* elf.c (elf_map_symbols): Don't create new section symbols; Use
existing section syms.  Update comments.
(copy_private_bfd_data): Formatting fixes.
(elfcore_grok_win32pstatus): Likewise.
(swap_out_syms): Likewise.  Remove unnecessary level of braces.

22 years agowork around locale problems for case insensitivity
Nick Clifton [Wed, 10 Oct 2001 09:13:05 +0000 (09:13 +0000)]
work around locale problems for case insensitivity

22 years agomerge from gcc
DJ Delorie [Wed, 10 Oct 2001 00:05:13 +0000 (00:05 +0000)]
merge from gcc

22 years agodaily update
Alan Modra [Wed, 10 Oct 2001 00:00:08 +0000 (00:00 +0000)]
daily update

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

22 years agofix z8k assembly and disassembly
Nick Clifton [Tue, 9 Oct 2001 17:25:58 +0000 (17:25 +0000)]
fix z8k assembly and disassembly

22 years ago * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
Alan Modra [Tue, 9 Oct 2001 13:12:19 +0000 (13:12 +0000)]
* elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
"group_name".
(elf_group_name): Define.
(elf_next_in_group): Define.
* elf.c: Make use of elf_group_name and elf_next_in_group throughout.
(setup_group): Don't use sec->lineno for SHT_GROUP section to store
first member section; Instead use elf_next_in_group.
(bfd_section_from_shdr): Likewise.
(set_group_contents): Likewise.  Use elf_section_syms, not sec->symbol.

22 years agofix encoding & decoding of DSP single data transfer instructions
Nick Clifton [Tue, 9 Oct 2001 12:25:22 +0000 (12:25 +0000)]
fix encoding & decoding of DSP single data transfer instructions

22 years agoFix compile time warnings in cgen-generated files
Nick Clifton [Tue, 9 Oct 2001 08:54:58 +0000 (08:54 +0000)]
Fix compile time warnings in cgen-generated files

22 years ago * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
Alan Modra [Tue, 9 Oct 2001 06:05:17 +0000 (06:05 +0000)]
* elf-bfd.h (struct bfd_elf_section_data): Add "group" and
"next_in_group".  Fix gp and gp_size comments.
* elf.c (union elf_internal_group): New.
(setup_group): New function.
(_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
Call setup_group for SHF_GROUP sections.
(bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
(elf_fake_sections): Set header type for SEC_GROUP, and header
flags for sections in a group.
(set_group_contents): New function.
(_bfd_elf_compute_section_file_positions): Call it.
(assign_section_numbers): Set sh_link for SHT_GROUP.
* elflink.h (gc_mark_hook): Handle section groups.
* elfxx-target.h: Add SEC_GROUP to applicable_flags.
* section.c (SEC_GROUP): Define.
(struct sec): Comment fixes.
* bfd-in2.h: Regenerate.

* elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
out of function args.
(_bfd_elf_canonicalize_reloc): Similarly.
(_bfd_elf_get_symtab): Here too.
(_bfd_elf_canonicalize_dynamic_symtab): And here.
* elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
bfd_bread, and remove unnecessary cast.

22 years ago*** empty log message ***
gdbadmin [Tue, 9 Oct 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago * c_variable.test (check_update): Forget about returning
Keith Seitz [Mon, 8 Oct 2001 21:34:04 +0000 (21:34 +0000)]
* c_variable.test (check_update): Forget about returning
the "unchanged" list. It unneccessarily complicates things.
Update all callers.
* cpp_variable.test: Likewise.

22 years agoDocument changes to hpux-thread.c.
Joel Brobecker [Mon, 8 Oct 2001 20:44:38 +0000 (20:44 +0000)]
Document changes to hpux-thread.c.

22 years agoRewrite find_active_thread() and find_tcb() to use ptid_t, instead of
Joel Brobecker [Mon, 8 Oct 2001 20:42:08 +0000 (20:42 +0000)]
Rewrite find_active_thread() and find_tcb() to use ptid_t, instead of
overloading the thread and the pid into the same 32-bit value. Make
associated necessary adaptations. Also remove unused variable
cached_active_thread.

22 years ago * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
Aldy Hernandez [Mon, 8 Oct 2001 19:11:36 +0000 (19:11 +0000)]
    * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.

22 years ago * MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
Nicholas Duffek [Mon, 8 Oct 2001 19:05:00 +0000 (19:05 +0000)]
* MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
entries.

22 years ago * opcodess/arm-opc.h (arm_opcodes): Add cirrus insns.
Aldy Hernandez [Mon, 8 Oct 2001 18:50:37 +0000 (18:50 +0000)]
    * opcodess/arm-opc.h (arm_opcodes): Add cirrus insns.

* opcodes/arm-dis.c (print_insn_arm): Add 'I' case.

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

22 years agomerge from gcc
DJ Delorie [Sun, 7 Oct 2001 22:42:23 +0000 (22:42 +0000)]
merge from gcc

22 years agomerge from gcc
DJ Delorie [Sun, 7 Oct 2001 17:24:36 +0000 (17:24 +0000)]
merge from gcc

22 years agodaily update
Alan Modra [Sun, 7 Oct 2001 00:00:06 +0000 (00:00 +0000)]
daily update

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

22 years ago* config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
Mark Kettenis [Sat, 6 Oct 2001 19:19:27 +0000 (19:19 +0000)]
* config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.

22 years ago * library/session.tcl (SESSION_recreate_bps): Use
Tom Tromey [Sat, 6 Oct 2001 18:10:50 +0000 (18:10 +0000)]
* library/session.tcl (SESSION_recreate_bps): Use
gdb_run_readline_command_no_output to recreate breakpoints.
* library/interface.tcl (gdb_run_readline_command): Set
readlineShowUser element of gdbtk_state.
(gdb_run_readline_command_no_output): New proc.
(initialize_gdbtk): Initialize readlineShowUser element.
(gdbtk_tcl_readline_begin): Use readlineShowUser element.
(gdbtk_tcl_readline): Likewise.

22 years ago * dwarf2.c (comp_unit_find_nearest_line): Check for end of
Stephane Carrez [Sat, 6 Oct 2001 10:01:09 +0000 (10:01 +0000)]
* dwarf2.c (comp_unit_find_nearest_line): Check for end of
compilation unit.

22 years ago * bfd.c (bfd_assert): Report bfd version.
Alan Modra [Sat, 6 Oct 2001 07:40:44 +0000 (07:40 +0000)]
* bfd.c (bfd_assert): Report bfd version.
(_bfd_abort): Likewise.

22 years ago * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
Alan Modra [Sat, 6 Oct 2001 07:25:40 +0000 (07:25 +0000)]
* elflink.h (elf_link_input_bfd): Don't zero discarded link-once
section sym values.  Instead replace any relocs against them with
relocs against STN_UNDEF, which has a zero value.

22 years ago * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
Alan Modra [Sat, 6 Oct 2001 06:41:47 +0000 (06:41 +0000)]
* elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
relocs.

22 years ago * generic/gdbtk-bp.c (get_breakpoint_commands): New function.
Keith Seitz [Sat, 6 Oct 2001 01:42:33 +0000 (01:42 +0000)]
* generic/gdbtk-bp.c (get_breakpoint_commands): New function.
(gdb_get_breakpoint_info): Use gdb_breakpoint_commands to
assemble breakpoint commands information.

22 years ago*** empty log message ***
gdbadmin [Sat, 6 Oct 2001 00:00:08 +0000 (00:00 +0000)]
*** empty log message ***

22 years agodaily update
Alan Modra [Sat, 6 Oct 2001 00:00:07 +0000 (00:00 +0000)]
daily update

22 years ago * som.h (som_exec_data): New field "version_id".
Jeff Law [Fri, 5 Oct 2001 21:55:12 +0000 (21:55 +0000)]
    * som.h (som_exec_data): New field "version_id".
        * som.c (som_object_setup): Record the version_id if it
        exists.
        (som_prep_headers): Do not initialize version_id here.
        (som_finish_writing): Initialize version_id here.

22 years ago * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
Thiemo Seufer [Fri, 5 Oct 2001 16:14:39 +0000 (16:14 +0000)]
* elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
according to the MIPS/SGI ELF64 ABI Draft.
(mips_elf_sort_hash_table): Typo.

22 years agodaily update
Alan Modra [Fri, 5 Oct 2001 00:00:06 +0000 (00:00 +0000)]
daily update

22 years ago*** empty log message ***
gdbadmin [Fri, 5 Oct 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

22 years ago2001-10-04 Frank Ch. Eigler <fche@redhat.com>
Frank Ch. Eigler [Thu, 4 Oct 2001 22:11:12 +0000 (22:11 +0000)]
2001-10-04  Frank Ch. Eigler  <fche@redhat.com>

* lib/insight-support.exp (gdbtk_start): Don't exit dejagnu
if gdb child process crashes, just signal an error.

22 years agoFix a comment typo in last commit.
Alan Modra [Thu, 4 Oct 2001 16:18:32 +0000 (16:18 +0000)]
Fix a comment typo in last commit.

22 years ago * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
Alan Modra [Thu, 4 Oct 2001 16:09:03 +0000 (16:09 +0000)]
* elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
copying flags if this is a weakdef.

22 years agosomehow missed committing this.
Alan Modra [Thu, 4 Oct 2001 15:37:38 +0000 (15:37 +0000)]
somehow missed committing this.
* dep-in.sed: Remove symcat.h from dependencies.

22 years ago * main.c (enable_external_editor): Don't declare.
Tom Tromey [Thu, 4 Oct 2001 15:04:27 +0000 (15:04 +0000)]
* main.c (enable_external_editor): Don't declare.
(captured_main): Don't set enable_external_editor.

22 years ago * library/tclIndex: Updated.
Tom Tromey [Thu, 4 Oct 2001 15:01:36 +0000 (15:01 +0000)]
* library/tclIndex: Updated.
* library/prefs.tcl (pref_set_defaults): Define gdb/editor
preference.
* library/srcpref.itb (SrcPref::constructor): Save gdb/editor
preference.
(SrcPref::build_win): Added external editor control.
* library/srctextwin.itb (SrcTextWin::do_source_popup): Always
enable external editor.  Use `code' instead of `list'.
* library/srcwin.itb (SrcWin::edit): Use Editor::edit.
* library/editor.tcl: New file.
* generic/gdbtk.c (enable_external_editor): Removed.
(external_editor_command): Default to NULL.
(gdbtk_init): Don't set enable_external_editor.  Free external
editor command when finished with it.

22 years ago * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
Alan Modra [Thu, 4 Oct 2001 12:30:26 +0000 (12:30 +0000)]
* elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
packing.

22 years ago * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
Alan Modra [Thu, 4 Oct 2001 05:50:29 +0000 (05:50 +0000)]
* elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
to 1 rather than 0 to avoid confusing copy_indirect_symbol.
(mips_elf_sort_hash_table_f): Compare got.offset against 1.

22 years ago * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
Alan Modra [Thu, 4 Oct 2001 05:40:43 +0000 (05:40 +0000)]
* Makefile.am (BFD_H_DEPS): Add symcat.h.  Ensure everything
depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
backends we configure.  Run "make dep-am".
(install-data-local): Install symcat.h.
* dep-in.sed: Remove symcat.h from dependencies.
* Makefile.in: Regenerate.

22 years agodaily update
Alan Modra [Thu, 4 Oct 2001 00:03:26 +0000 (00:03 +0000)]
daily update

22 years ago*** empty log message ***
gdbadmin [Thu, 4 Oct 2001 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

22 years agoAdd support for -z nocopyreloc.
Alan Modra [Wed, 3 Oct 2001 15:11:47 +0000 (15:11 +0000)]
Add support for -z nocopyreloc.

22 years ago * elf64-mips.c (elf_backend_may_use_rela_p): New define.
Thiemo Seufer [Wed, 3 Oct 2001 14:12:12 +0000 (14:12 +0000)]
* elf64-mips.c (elf_backend_may_use_rela_p): New define.
(elf_backend_default_use_rela_p): New define.

22 years agoRegenerate configure to include the gettext.m4 change. Update
Alan Modra [Wed, 3 Oct 2001 13:46:35 +0000 (13:46 +0000)]
Regenerate configure to include the gettext.m4 change.  Update
opcodes/po/POTFILES.in

22 years ago * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
Alan Modra [Wed, 3 Oct 2001 13:16:18 +0000 (13:16 +0000)]
* elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
change.

22 years agobfd/ChangeLog
Alan Modra [Wed, 3 Oct 2001 12:29:10 +0000 (12:29 +0000)]
bfd/ChangeLog
* configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
* configure: Regenerate.
* Makefile.am (BFD_H_FILES): Add version.h.
* Makefile.in: Regenerate.
* po/SRC-POTFILES.in: Regenerate.

bfd/doc/ChangeLog
* Makefile.am (BFD_H_DEP): Add ../version.h.
* Makefile.in: Regenerate.

22 years ago * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
Alan Modra [Wed, 3 Oct 2001 08:33:18 +0000 (08:33 +0000)]
* elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
elf_backend_copy_indirect_symbol so that backend has a chance to
copy other necessary fields.
* elf-bfd.h (struct elf_backend_data): Update description of
elf_backend_copy_indirect_symbol.
* elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
copying flags if this is a weakdef.
* elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
(elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
than bfd_link_hash_lookup.
* elf32-i386 (elf_i386_adjust_dynamic_symbol): Don't do copy
reloc processing for weakdefs.
* elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.

22 years agodaily update
Alan Modra [Wed, 3 Oct 2001 02:02:26 +0000 (02:02 +0000)]
daily update