OSDN Git Service
corinna [Thu, 20 Feb 2003 14:14:36 +0000 (14:14 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Check descriptor
created by cygheap_fdnew constructor.
* fhandler_virtual.cc (fhandler_virtual::opendir): Ditto.
* fhandler_socket.cc (fhandler_socket::accept): Ditto and move
creation of file descriptor behind blocking OS call.
* net.cc (cygwin_socket): Ditto.
(cygwin_rcmd): Ditto.
(cygwin_rresvport): Ditto.
(cygwin_rexec): Ditto.
(socketpair): Ditto.
cagney [Thu, 20 Feb 2003 13:43:13 +0000 (13:43 +0000)]
2003-02-20 Andrew Cagney <
ac131313@redhat.com>
* remote.c (_initialize_remote): Add commands "set/show remote
hardware-watchpoint-limit" and "set/show remote
hardware-breakpoint-limit".
(remote_hw_watchpoint_limit): Initialize to -1.
(remote_hw_breakpoint_limit): Ditto.
(remote_check_watch_resources): Treat a limit of -1 as unlimited.
Index: doc/ChangeLog
2003-02-20 Andrew Cagney <
ac131313@redhat.com>
* gdb.texinfo (Set Breaks): Add cross reference to "set remote
hardware-breakpoint-limit".
(Set Watchpoints): Add cross reference to "set remote
hardware-watchpoint-limit".
(Remote configuration options): New section.
muller [Thu, 20 Feb 2003 12:12:33 +0000 (12:12 +0000)]
2003-02-20 Pierre Muller <muller@ics.u-strasbg.fr>
* generic/gdbtk-cmds.c: Add missing "block.h" include.
generic/gdbtk-stack.c: Ditto.
generic/gdbtk-wrapper.c: Ditto.
corinna [Thu, 20 Feb 2003 11:22:16 +0000 (11:22 +0000)]
* winsup.api/crlf.c: Fix C signed/unsigned compare warning.
* winsup.api/mmaptest01.c: Ditto.
* winsup.api/ltp/chmod01.c: Ditto.
* winsup.api/ltp/fork04.c: Ditto.
* winsup.api/ltp/lseek03.c: Ditto.
* winsup.api/ltp/lseek06.c: Ditto.
* winsup.api/ltp/lseek07.c: Ditto.
* winsup.api/ltp/lseek08.c: Ditto.
* winsup.api/ltp/mmap001.c: Ditto.
* winsup.api/ltp/mmap02.c: Ditto.
* winsup.api/ltp/mmap03.c: Ditto.
* winsup.api/ltp/mmap04.c: Ditto.
* winsup.api/ltp/mmap05.c: Ditto.
* winsup.api/ltp/mmap06.c: Ditto.
* winsup.api/ltp/mmap07.c: Ditto.
* winsup.api/ltp/mmap08.c: Ditto.
* winsup.api/ltp/pipe11.c: Ditto.
* winsup.api/ltp/poll01.c: Ditto.
* winsup.api/ltp/sync02.c: Ditto.
* winsup.api/ltp/times03.c: Ditto.
* winsup.api/ltp/umask03.c: Ditto.
* winsup.api/ltp/getpgid01.c: Remove unused obsolete include.
* winsup.api/ltp/getpgid02.c: Ditto.
corinna [Thu, 20 Feb 2003 11:12:44 +0000 (11:12 +0000)]
* autoload.cc (GetCompressedFileSize): Add.
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Compute
st_blocks value from GetCompressedFileSize() if available.
corinna [Thu, 20 Feb 2003 10:14:51 +0000 (10:14 +0000)]
w32api:
* include/winioctl.h (FSCTL_SET_SPARSE): Define.
cygwin:
* wincap.h (wincaps::supports_sparse_files): New flag.
(wincapc::supports_sparse_files): New method.
* wincap.cc (wincap_unknown): Define value for the new flag.
(wincap_95): Ditto.
(wincap_95osr2): Ditto.
(wincap_98): Ditto.
(wincap_98se): Ditto.
(wincap_me): Ditto.
(wincap_nt3): Ditto.
(wincap_nt4): Ditto.
(wincap_nt4sp4): Ditto.
(wincap_2000): Ditto.
(wincap_xp): Ditto.
* path.h (path_conv::fs_flags): New method.
* fhandler_disk_file.cc: Include winioctl.h for DeviceIoControl.
(fhandler_disk_file::open): Set newly created and truncated files as
sparse on platforms that support it.
corinna [Thu, 20 Feb 2003 10:12:14 +0000 (10:12 +0000)]
* Makefile.in: Make sure libmingwex.a from current build tree is used.
amodra [Thu, 20 Feb 2003 09:10:18 +0000 (09:10 +0000)]
* elf32-ppc.c: Formatting.
(allocate_dynrelocs): LD and GD relocs against the same sym need
separate GOT entries.
(ppc_elf_relocate_section): Correct GOT handling for multiple GOT
entries per symbol.
aoliva [Thu, 20 Feb 2003 09:08:42 +0000 (09:08 +0000)]
* configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
config.status.
* configure: Rebuilt.
cgf [Thu, 20 Feb 2003 03:31:41 +0000 (03:31 +0000)]
* rclex.l (handle_quotes): Fix minor formatting problems introduced in previous
change.
cgf [Thu, 20 Feb 2003 03:28:55 +0000 (03:28 +0000)]
* rclex.l: Handle strings spanning more than one line.
cgf [Thu, 20 Feb 2003 03:12:46 +0000 (03:12 +0000)]
* coff-pe-read.c: New file - support reading of minimal symbols from a portable
executable using the export table.
* coff-pe-read.h: New file.
* coffread.c: Include coff-pe-read.h.
(coff_symtab_read): Call read_pe_exported_syms iff no recognized debugging
symbols found.
* Makefile.in (SFILES): Add coff-pe-read.o.
(coff_pe_read_h): Define.
(COMMON_OBS): Add coff-pe-read.o.
(coffread.o): Add coff_pe_read_h dependency.
(coff-pe-read.o): New target.
aoliva [Thu, 20 Feb 2003 02:09:58 +0000 (02:09 +0000)]
* libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld.
* ltconfig: Handle it.
* ltcf-cxx.sh: Use with_gnu_ld passed as a shell variable instead of
auto-detecting it.
aoliva [Thu, 20 Feb 2003 01:12:28 +0000 (01:12 +0000)]
* libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld.
* ltconfig: Handle it.
* ltcf-cxx.sh: Use with_gnu_ld passed as a shell variable instead of
auto-detecting it.
amodra [Thu, 20 Feb 2003 01:02:38 +0000 (01:02 +0000)]
* ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
* ldgram.y (vers_defns): Allow optional trailing semicolon in
EXTERN NAME block;
carlton [Thu, 20 Feb 2003 00:01:03 +0000 (00:01 +0000)]
2003-02-19 David Carlton <carlton@math.stanford.edu>
* Makefile.in (SFILES): Add block.c.
(block_h): New.
(COMMON_OBS): Add block.o.
(block.o): New.
(x86-64-tdep.o): Add $(block_h).
(values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
(stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
(objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
(m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
(f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
(c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
(alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
* value.h: Add opaque declaration for struct block.
* parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
* ada-lang.h: Ditto.
* x86-64-tdep.c: #include "block.h"
* values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
* symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
* objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
* mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
* jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
* findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
* buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
* alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
* blockframe.c (blockvector_for_pc_sect): Move to "block.c".
(blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
* symtab.c (block_function): Ditto.
(contained_in): Ditto.
* frame.h: Move block_for_pc and block_for_pc_sect declarations to
block.h. Add opaque declaration for struct block.
* symtab.h: Move block_function and contained_in declarations to
block.h. Add opaque declarations for struct block, struct
blockvector.
(struct block): Move to block.h.
(struct blockvector): Ditto.
(BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
(BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
(BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
(ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
(BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
Ditto.
* block.c: New file.
* block.h: New file.
2003-02-19 David Carlton <carlton@math.stanford.edu>
* mi-cmd-stack.c: #include "block.h"
gdbadmin [Thu, 20 Feb 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
aoliva [Wed, 19 Feb 2003 23:51:28 +0000 (23:51 +0000)]
* ltcf-cxx.sh: Replace $linker_flags with $compiler_flags wherever
it is used as argument to $CC.
* ltcf-gcj.sh: Likewise.
aoliva [Wed, 19 Feb 2003 23:51:03 +0000 (23:51 +0000)]
* configure.in: Introduce --enable-maintainer-mode.
* configure: Rebuilt.
* Makefile.tpl (Makefile.in, configure): Enable dependencies only
for maintainer mode.
* Makefile.in: Rebuilt.
aoliva [Wed, 19 Feb 2003 23:40:12 +0000 (23:40 +0000)]
* configure.in: Introduce --enable-maintainer-mode.
* configure: Rebuilt.
* Makefile.tpl (Makefile.in, configure): Enable dependencies only
for maintainer mode.
* Makefile.in: Rebuilt.
cagney [Wed, 19 Feb 2003 23:32:19 +0000 (23:32 +0000)]
2003-02-19 Andrew Cagney <
ac131313@redhat.com>
* configure: Regenerate using autoconf 2.13.
amodra [Wed, 19 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update
troth [Wed, 19 Feb 2003 20:38:01 +0000 (20:38 +0000)]
* avr-tdep.c (avr_extract_return_value): Remove function.
(avr_store_return_value): Remove function.
(avr_extract_struct_value_address): Remove function.
(avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
jjohnstn [Wed, 19 Feb 2003 19:00:11 +0000 (19:00 +0000)]
2003-02-19 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
cagney [Wed, 19 Feb 2003 18:57:29 +0000 (18:57 +0000)]
2003-02-19 Andrew Cagney <
ac131313@redhat.com>
* rs6000-tdep.c: Include "gdb_assert.h".
(registers_e500): Add "acc" and "spefscr".
(PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
(rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
really is "r0".
(registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
amodra [Wed, 19 Feb 2003 14:14:16 +0000 (14:14 +0000)]
* elf32-hppa.c (elf32_hppa_gc_sweep_hook): Simplify dynamic reloc
removal. Localize vars. Remove unnecessary dynobj test.
* elf32-i386 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead
of INFO.
(allocate_dynrelocs): Adjust WILL_CALL_FINISH_DYNAMIC_SYMBOL uses,
and optimize.
(elf_i386_relocate_section): Likewise.
(elf_i386_gc_sweep_hook): Simplify dyn reloc removal. Localize vars.
* elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
* elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
* elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
* elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
* elf32-sparc.c (elf32_sparc_gc_sweep_hook): Likewise. Remove
local_dynrel for section too. Don't touch HIPLT22, LOPLT10, PCPLT32
or PCPLT10 relocs. Don't subtract twice on PLT32 relocs.
Formatting.
amodra [Wed, 19 Feb 2003 11:44:14 +0000 (11:44 +0000)]
* elf64-ppc.c (ELIMINATE_COPY_RELOCS): Define.
(ppc64_elf_check_relocs): Use it. Correct comment. Move SEC_ALLOC
test.
(ppc64_elf_adjust_dynamic_symbol): Use ELIMINATE_COPY_RELOCS.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO.
(allocate_dynrelocs): Adjust WILL_CALL_FINISH_DYNAMIC_SYMBOL uses,
and optimize. Use ELIMINATE_COPY_RELOCS.
(ppc64_elf_relocate_section): Likewise.
amodra [Wed, 19 Feb 2003 11:26:50 +0000 (11:26 +0000)]
* elf32-ppc.c (struct ppc_elf_dyn_relocs): Add pc_count field.
(ppc_elf_copy_indirect_symbol): Copy pc_count field.
(ELIMINATE_COPY_RELOCS): Define.
(ppc_elf_adjust_dynamic_symbol): Convert copy relocs to dynamic.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO.
(MUST_BE_DYN_RELOC): Define.
(allocate_dynrelocs): Adjust WILL_CALL_FINISH_DYNAMIC_SYMBOL uses,
and optimize. Trim dyn_relocs.
(ppc_elf_check_relocs): Don't generate dyn_relocs when we know they'll
not be used. Do generate dyn_relocs for copy reloc avoidance. Keep
track of pc_rel dyn relocs.
(ppc_elf_relocate_section): Remove "will_become_local". Adjust
WILL_CALL_FINISH_DYNAMIC_SYMBOL use. Trim dyn relocs as per
allocate_dynrelocs. Don't recalculate "sec".
amodra [Wed, 19 Feb 2003 10:46:52 +0000 (10:46 +0000)]
* app.c (do_scrub_chars): Handle '||' in two states.
amodra [Wed, 19 Feb 2003 07:47:34 +0000 (07:47 +0000)]
import latest versions
gdbadmin [Wed, 19 Feb 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
kseitz [Tue, 18 Feb 2003 23:33:05 +0000 (23:33 +0000)]
* generic/gdbtk-main.c (main): Change name of intepreter to "insight".
* generic/gdbtk.h: Add ifdef wrappers.
(gdbtk_init): Declare.
(gdbtk_source_start_file): Declare.
* generic/gdbtk.c (gdbtk_init): Export.
Reomve init_ui_hook stuff.
Do not add hooks here anymore (moved into interps).
Do not muck with gdbk_stdout et al (moved into interps).
(gdbtk_source_start_file): Code ripped out of gdbtk_init
which deals with sourcing the main startup file.
(gdbtk_init_1): Hack: New function.
(argv0): Hack: New static global.
(tk_init): Moved to gdbtk-interps.c.
(gdbtk_resume): Likewise.
(gdbtk_suspend): Likewise.
(gdbtk_prompt_p): Likewise.
(gdbtk_exec): Likewise.
(gdbtk_command_loop): Likewise.
(_initialize_gdbtk): Move interpreter stuff to gdbtk-interps.c.
Hack: Add new init_ui_hook.
* generic/gdbtk-interps.c: New file.
kseitz [Tue, 18 Feb 2003 23:27:41 +0000 (23:27 +0000)]
* Makefile.in: Add gdbtk-interps.c.
amodra [Tue, 18 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update
dj [Tue, 18 Feb 2003 22:57:29 +0000 (22:57 +0000)]
* xstormy16-decode.cxx: Regenerate.
* xstormy16-sem.cxx: Regenerate.
* xstormy16-write.cxx: Regenerate.
* xstormy16.cxx (parity): Fix logic.
dj [Tue, 18 Feb 2003 22:57:07 +0000 (22:57 +0000)]
* xstormy16.cpu (set-mem-alignfix-psw): Remove.
(movlmemimm): Just mask the address.
(movhmemimm): Likewise.
(movlmemgr): Likewise.
(movhmemgr): Likewise.
(set-psw): Always set the psw last.
(set-psw-carry): Likewise.
(set-psw-add): Likewise.
(set-psw-sub): Likewise.
* xstormy16.cpu (set-psw-rrotate17): New. Choose the correct set
of 16 patterns from the set-psw-rotate17 function.
(movgrigr, movgripostincgr, movgripredecgr, movgriigr,
movgriipostincgr, movgriipredecgr): Set psw correctly.
(movfgrigr, movfgripostincgr, movfgripredecgr, movfgriigr,
movfgriipostincgr, movfgriipredecgr): Fix semantics.
(rrcgrgr, rrcgrimm4): Use new set-psw-rrotate17 function.
kevinb [Tue, 18 Feb 2003 22:46:14 +0000 (22:46 +0000)]
Make Sparc/Solaris work again.
jjohnstn [Tue, 18 Feb 2003 22:41:16 +0000 (22:41 +0000)]
2003-02-18 Christian Groessler <chris@groessler.org>
* libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
support z8001 segmented mode.
jjohnstn [Tue, 18 Feb 2003 22:34:02 +0000 (22:34 +0000)]
2003-02-18 Earnie Boyd <earnie@users.sf.net>
* libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
with a NULL value.
cagney [Tue, 18 Feb 2003 22:14:25 +0000 (22:14 +0000)]
2003-02-18 Andrew Cagney <cagney@redhat.com>
* symtab.h (struct objfile): Add opaque declaration.
jason [Tue, 18 Feb 2003 20:12:50 +0000 (20:12 +0000)]
* Makefile.tpl (check-c++): Allow parallelism.
rsandifo [Tue, 18 Feb 2003 19:37:04 +0000 (19:37 +0000)]
* mips/nullmon.c (_ftext, _end): Adjust declaration.
(get_mem_info): Rework.
rsandifo [Tue, 18 Feb 2003 19:32:24 +0000 (19:32 +0000)]
* mips/crt0.S (zerobss): Reload __memsize after call.
ezannoni [Tue, 18 Feb 2003 15:41:29 +0000 (15:41 +0000)]
2003-02-18 Elena Zannoni <ezannoni@redhat.com>
From Jim Ingham <jingham@apple.com>:
* dbxread.c (process_one_symbol): Use last_function_start rather
than function_start_offset to find the real beginning of the
current function. The latter is just the text section offset on
some systems, the former is always the real function start.
amodra [Tue, 18 Feb 2003 12:54:56 +0000 (12:54 +0000)]
* ld-powerpc/tlsexe.d: Update for changed handling of invalid LD
relocs.
* ld-powerpc/tlsexe.g: Likewise.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexe.t: Likewise.
amodra [Tue, 18 Feb 2003 12:54:14 +0000 (12:54 +0000)]
* elf32-ppc.c (ppc_elf_relocate_section): Remove unnecessary test.
* elf64-ppc.c (ppc64_elf_tls_optimize): Decrement tlsld_got.refcount
on invalid LD relocs.
(allocate_dynrelocs): Invalid LD relocs don't use tlsld_got entry.
(ppc64_elf_relocate_section): Unify new handling of LD relocs and
tlsld_got entry. Use IS_PPC64_TLS_RELOC.
amodra [Tue, 18 Feb 2003 12:52:55 +0000 (12:52 +0000)]
* ppc64.h (IS_PPC64_TLS_RELOC): Rename from IS_TLS_RELOC.
corinna [Tue, 18 Feb 2003 10:09:37 +0000 (10:09 +0000)]
* grp.cc (internal_getgroups): Handle properly tokens with
no groups. Fix bug introduced on 2003-02-04.
amodra [Tue, 18 Feb 2003 06:11:32 +0000 (06:11 +0000)]
New tests.
amodra [Tue, 18 Feb 2003 06:06:17 +0000 (06:06 +0000)]
* elf32-ppc.h: New file.
* elf32-ppc.c: Include elf32-ppc.h.
(NOP, CROR_151515, CROR_313131, TP_OFFSET, DTP_OFFSET): Define.
(struct ppc_elf_link_hash_entry): Rename "root" to "elf". Adjust uses.
Add "tls_mask" field.
(TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL, TLS_TLS, TLS_TPRELGD): Define.
(struct ppc_elf_link_hash_table): Rename "root" to "elf". Adjust uses.
Add got, relgot, plt, relplt, dynbss, relbss, dynsbss, relsbss,
sdata, sdata2, tls_sec, tls_get_addr, tlsld_got fields.
Make use of htab shortcuts throughout file.
(ppc_elf_link_hash_newfunc): Init tls_mask field.
(ppc_elf_link_hash_table_create): Init new fields.
(ppc_elf_copy_indirect_symbol): Copy tls_mask.
(ppc_elf_howto_raw): Add tls relocs.
(ppc_elf_reloc_type_lookup): Handle them.
(ppc_elf_unhandled_reloc): New function.
(ppc_elf_create_got): Stash got section pointer in hash table,
return status. Make .rela.got too.
(ppc_elf_create_dynamic_sections): Stash section pointers in htab.
(ppc_elf_adjust_dynamic_symbol): Only set up copy relocs when
NON_GOT_REF set. Don't allocate space in .plt here..
(allocate_dynrelocs): ..do so here instead, properly ref-counting and
not allocating plt entries unnecessarily. Allocate got entries here.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
(ppc_elf_size_dynamic_sections): Allocate local got entries. Pass
"info" during allocate_dynrelocs hash traversal. Use htab section
shortcuts rather than searching for named sections. Get rid of
"plt" and "strip" booleans.
(update_local_sym_info, bad_shared_reloc): New functions.
(ppc_elf_check_relocs): Handle TLS relocs. Move .rela.got creation to
ppc_elf_create_got. Don't mark got or plt reloc syms dynamic, do so
in allocate_dynreloc. Use update_local_sym_info and bad_shared_reloc.
Disallow R_PPC_EMB_RELSDA, R_PPC_EMB_NADDR32, R_PPC_EMB_NADDR16,
R_PPC_EMB_NADDR16_LO, R_PPC_EMB_NADDR16_HI and R_PPC_EMB_NADDR16_HA
in shared libs. R_PPC_PLTREL32 is a plt reloc too. Refcount all
relocs that might use a plt entry. Set NON_GOT_REF too.
Enumerate all do-nothing relocs.
(ppc_elf_gc_sweep_hook): Simplify removal of dynrelocs. Handle
tls relocs and all plt relocs.
(ppc_elf_tls_setup, ppc_elf_tls_optimize): New functions.
(ppc_elf_finish_dynamic_symbol): Don't build got entries here.
(ppc_elf_finish_dynamic_sections): Rewrite tag code using htab
shortcuts.
(ppc_elf_relocate_section): Tidy. Handle TLS relocs. Use
bfd_elf_local_sym_name. Simplify unresolved reloc code. Build got
entries and got relocs here. Warn on non-zero got reloc addend.
Split out branch taken/not taken reloc code into a separate switch
and correct offset calculation. Allow BRTAKEN/BRNTAKEN dynamic relocs.
Split out HA reloc adjustments to separate switch statement. Don't
warn on reloc overflow if we've already warned about undefined.
Don't rebuild sym name when reporting errors. Report all possible
errors from _bfd_final_link_relocate.
(bfd_elf32_bfd_final_link): Don't define.
amodra [Tue, 18 Feb 2003 06:05:06 +0000 (06:05 +0000)]
* emultempl/ppc32elf.em: New file.
* emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
* Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
(eelf32lppcnto.c): Likewise.
(eelf32lppcsim.c): Likewise.
(eelf32ppcnto.c): Likewise.
(eelf32ppc.c): Likewise.
(eelf32ppc_fbsd.c): Likewise.
(eelf32ppcsim.c): Likewise.
(eelf32ppclinux.c): Likewise.
amodra [Tue, 18 Feb 2003 06:03:41 +0000 (06:03 +0000)]
* ppc.h: Replace DTPMOD64, TPREL64, DTPREL64 with DTPMOD32 etc.
(IS_PPC_TLS_RELOC): Define.
amodra [Tue, 18 Feb 2003 04:52:21 +0000 (04:52 +0000)]
* ld.texinfo: Remove spaces between @samp and opening brace.
gdbadmin [Tue, 18 Feb 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
jjohnstn [Mon, 17 Feb 2003 23:45:26 +0000 (23:45 +0000)]
2003-02-17 Chris Demetriou <cgd@broadcom.com>
* mips/cfe.c (__cfe_handle, __cfe_entrypt): Fix types.
amodra [Mon, 17 Feb 2003 23:00:05 +0000 (23:00 +0000)]
daily update
amodra [Mon, 17 Feb 2003 22:57:54 +0000 (22:57 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Don't init "r". Don't
rebuild sym name when reporting errors.
amodra [Mon, 17 Feb 2003 22:49:53 +0000 (22:49 +0000)]
* ld-powerpc/tlsexe.g: Update for 2003-02-14 elf64-ppc.c change.
amodra [Mon, 17 Feb 2003 22:49:24 +0000 (22:49 +0000)]
* emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
hash creator.
(ppc_before_allocation): Don't do optimizations if wrong hash table.
(gld${EMULATION_NAME}_finish): Ditto.
cagney [Mon, 17 Feb 2003 21:56:27 +0000 (21:56 +0000)]
Revert previous change. Something doesn't work.
cgf [Mon, 17 Feb 2003 18:49:11 +0000 (18:49 +0000)]
Revert below change.
cgf [Mon, 17 Feb 2003 18:41:29 +0000 (18:41 +0000)]
* gdbtk/gdbtk.c (tk_procs): Make file global. Declare at top.
(_initialize_gdbtk): Move interp_add from here.
(gdb_tk): Call interp_add here. Pass correct uiout to interp_new.
nickc [Mon, 17 Feb 2003 18:24:37 +0000 (18:24 +0000)]
Fix the behaviour of --allow-shlib-undefined, so that it does what it claims
to do. Add an inverse switch. Update the documentation.
nickc [Mon, 17 Feb 2003 18:13:18 +0000 (18:13 +0000)]
SEGMENT_OVERLAPS: Check that LMAs overlap as well.
cagney [Mon, 17 Feb 2003 17:14:16 +0000 (17:14 +0000)]
Re-generate using autoconf 000227.
cagney [Mon, 17 Feb 2003 16:58:01 +0000 (16:58 +0000)]
2003-02-17 Andrew Cagney <
ac131313@redhat.com>
* configure.in (Makefile): Use the test ${target} != ${host},
instead of the absence of the "nm.h" file, to determine of the
configuration non-native.
* configure: Regenerate.
gdbadmin [Mon, 17 Feb 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***
cgf [Sun, 16 Feb 2003 19:31:07 +0000 (19:31 +0000)]
* cygwin.din: Export all appropriate newlibc libm functions. Sort.
* include/cygwin/version.h: Bump API minor number.
geoffk [Sun, 16 Feb 2003 01:24:56 +0000 (01:24 +0000)]
* configure.in (*-*-darwin*): Rename from powerpc*-*-darwin*,
don't configure target-libobjc.
* configure: Regenerate.
gdbadmin [Sun, 16 Feb 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sat, 15 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update
cgf [Sat, 15 Feb 2003 21:45:08 +0000 (21:45 +0000)]
* cygwin.din: Export all appropriate newlib functions.
* include/cygwin/version.h: Bump API minor number.
chastain [Sat, 15 Feb 2003 18:32:44 +0000 (18:32 +0000)]
2003-02-13 Michael Chastain <mec@shout.net>
* gdb.base/exprs.exp: Remove i960 remnants.
* gdb.base/funcargs.exp: Likewise.
* gdb.base/list.exp: Likewise.
* gdb.base/ptype.exp: Likewise.
kseitz [Sat, 15 Feb 2003 07:12:05 +0000 (07:12 +0000)]
From Chris Faylor <cgf@redhat.com>
* generic/gdbtk-main.c (main): Correctly initialize args.interpreter_p.
cgf [Sat, 15 Feb 2003 03:24:54 +0000 (03:24 +0000)]
white space
hunt [Sat, 15 Feb 2003 02:10:40 +0000 (02:10 +0000)]
2003-02-14 Martin M. Hunt <hunt@redhat.com>
* library/globalpref.itb (GlobalPref::_change_icons): Fix
curselection call for combobox.
carlton [Sat, 15 Feb 2003 01:20:45 +0000 (01:20 +0000)]
2003-02-14 David Carlton <carlton@math.stanford.edu>
* gdb.c++/virtfunc.exp (test_virtual_calls): Change 'print
pEe->D::vg()" from XFAIL to KFAIL.
gdbadmin [Sat, 15 Feb 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Fri, 14 Feb 2003 23:00:05 +0000 (23:00 +0000)]
daily update
dj [Fri, 14 Feb 2003 21:15:36 +0000 (21:15 +0000)]
* Makefile.tpl (RANLIB): Define.
* Makefile.in: Regenerate.
corinna [Fri, 14 Feb 2003 21:15:16 +0000 (21:15 +0000)]
* mmap.cc (mprotect): Add missing break.
ezannoni [Fri, 14 Feb 2003 20:36:57 +0000 (20:36 +0000)]
2003-02-14 Elena Zannoni <ezannoni@redhat.com>
From Brian Ford <ford@vss.fsi.com>
* cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
conditionalize tui_active test.
(lookup_cmd_1): Ditto.
kettenis [Fri, 14 Feb 2003 20:06:59 +0000 (20:06 +0000)]
* configure.in: Add check for _etext.
* maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
available.
* config.in, configure: regenerated.
cgf [Fri, 14 Feb 2003 19:25:11 +0000 (19:25 +0000)]
* profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to ensure
-mno-cygwin where appropriate. Filter out -O2.
brolley [Fri, 14 Feb 2003 19:06:21 +0000 (19:06 +0000)]
2003-02-13 Dave Brolley <brolley@redhat.com>
* compMapper.cxx (make_name_mapping): Compute the upper bound of a
mapped range correctly when bytes_per_word is specified.
drow [Fri, 14 Feb 2003 19:05:52 +0000 (19:05 +0000)]
* dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
cagney [Fri, 14 Feb 2003 13:58:04 +0000 (13:58 +0000)]
2003-02-14 Andrew Cagney <
ac131313@redhat.com>
* main.c (tui_version): Delete variable.
(captured_main): When --tui, set interpreter_p to "tui" instead of
enabling tui_version.
* printcmd.c (display_command) [TUI]: Test tui_active instead of
tui_version.
* cli/cli-decode.c (lookup_cmd_composition): Ditto.
* cli/cli-cmds.c (disassemble_command): Ditto.
* defs.h (tui_version): Delete declaration.
* Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
(tui-interp.o): Add rules.
(SUBDIR_TUI_OBS): Add "tui-interp.o".
Index: tui/ChangeLog
2003-02-14 Andrew Cagney <
ac131313@redhat.com>
* tui.c (tui_enable, tui_disable): Don't modify tui_version.
(tui_is_window_visible, tui_get_command_dimension): Test
tui_active instead of tui_version.
* tuiData.h (tui_version): Delete declaration.
* tui-hooks.c (tui_init_hook, tui_event_loop): Delete function,
moved to "tui-interp.c".
(tui_exit, tui_command_loop): Ditto.
(_initialize_tui): Don't initialize init_ui_hook. Initialize
target_new_objfile_hook.
* tui-interp.c: New file.
nickc [Fri, 14 Feb 2003 11:16:09 +0000 (11:16 +0000)]
Change embedded documentation to use consistent indentation and to split up
long lines. Change informal style of description for functions lacking real
documentation.
nickc [Fri, 14 Feb 2003 09:31:56 +0000 (09:31 +0000)]
(_bfd_stab_section_find_nearest_line): For line number stabs outside of
functions, treat values as absolute addresses.
nickc [Fri, 14 Feb 2003 09:21:21 +0000 (09:21 +0000)]
(elf_core_file_p): Compare alternate machine codes for ELF backends when
checking if the generic ELF target should be used.
cgf [Fri, 14 Feb 2003 05:15:42 +0000 (05:15 +0000)]
* win32-nat.cc (register_loaded_dll): Correctly set address range for
just-loaded dll.
cgf [Fri, 14 Feb 2003 02:52:28 +0000 (02:52 +0000)]
* exceptions.cc (try_to_debug): Don't reset priority when returning from
non-waitloop call.
jsm [Fri, 14 Feb 2003 01:13:44 +0000 (01:13 +0000)]
[ChangeLog]
2003-02-12 Jason Molenda (jmolenda@apple.com)
* symmisc.c (print_objfile_statistics): Include information about
the number of psymtabs and symtabs in each object file.
[testsuite/ChangeLog]
2003-02-13 Jason Molenda (jmolenda@apple.com)
* gdb.base/maint.exp: Update maint print statistics regexp to include
new entries.
dannysmith [Fri, 14 Feb 2003 00:45:17 +0000 (00:45 +0000)]
Fix typo in last ChangeLog entry.
dannysmith [Fri, 14 Feb 2003 00:42:34 +0000 (00:42 +0000)]
* profile/Makefile.in (mcount,o): Use -O1 optimization
switch to compile.
brolley [Fri, 14 Feb 2003 00:02:40 +0000 (00:02 +0000)]
Update copyright date.
gdbadmin [Fri, 14 Feb 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***
cgf [Thu, 13 Feb 2003 23:51:41 +0000 (23:51 +0000)]
* fhandler_console.cc (fhandler_console::write_normal): Use MessageBeep for
bell sound.
* autoload.cc (MessageBeep): Add.
amodra [Thu, 13 Feb 2003 23:48:31 +0000 (23:48 +0000)]
* elf64-ppc.c (ppc64_elf_link_hash_table_create): Init tls_get_addr.
(ppc64_elf_copy_indirect_symbol): Merge tls_mask too.
(ppc64_elf_gc_sweep_hook): Simplify removal of dyn_relocs.
(allocate_dynrelocs): Don't treat undefined and undefweak specially.
(ppc_size_one_stub): Fix warning, and tighten plt entry check.
(group_sections): Don't share a stub section if stubs are for a large
section. Adjust comment.
(ppc64_elf_size_stubs): Roughly double the size left for stubs if
!stubs_always_before_branch.
(ppc64_elf_relocate_section): Initialize tlsld GOT entry once. Don't
treat undefined and undefweak specially when processing dyn relocs.
amodra [Thu, 13 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update