Vladimir Prus [Thu, 31 Jul 2008 07:38:51 +0000 (07:38 +0000)]
* lib/mi-support.exp (mi_load_shlibs): New.
* gdb.mi/mi-pending.exp: Use mi_load_shlibs, not gdb_load_shlibs.
Danny Smith [Thu, 31 Jul 2008 07:27:52 +0000 (07:27 +0000)]
2008-07-31 Takashi Ono <t_ono@hkfreak.net>
* pe-dll.c (generate_relocs): Don't generate relocs for
undefined weak symbols.
Jan Kratochvil [Thu, 31 Jul 2008 05:27:54 +0000 (05:27 +0000)]
* emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
gdbadmin [Thu, 31 Jul 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 31 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update
Stan Shebs [Wed, 30 Jul 2008 21:53:07 +0000 (21:53 +0000)]
* objfiles.c (TARGET_KEEP_SECTION): Remove.
(add_to_objfile_sections): Remove use.
Vladimir Prus [Wed, 30 Jul 2008 17:08:45 +0000 (17:08 +0000)]
* lib/mi-support.exp (get_mi_thread_list)
(check_mi_and_console_threads): New, moved from ...
* gdb.mi/mi-pthread.exp: ...here.
* gdb.mi/gdb669.exp (get_mi_thread_list)
(check_mi_and_console_threads): Delete.
* gdb.mi/mi2-pthread.exp: Likewise.
Paolo Bonzini [Wed, 30 Jul 2008 15:03:57 +0000 (15:03 +0000)]
2008-07-30 Paolo Bonzini <bonzini@gnu.org>
Sync with gcc:
2008-07-30 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Add makefile fragments for hpux.
* Makefile.def (flags_to_pass): Add ADA_CFLAGS.
* Makefile.tpl (HOST_EXPORTS): Pass ADA_CFLAGS.
* configure: Regenerate.
* Makefile.in: Regenerate.
2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Makefile.tpl ($(srcdir)/configure): Update dependencies.
* Makefile.in: Regenerate.
* configure: Regenerate.
config:
2008-07-30 Paolo Bonzini <bonzini@gnu.org>
* mh-pa: New, from gcc/config/pa/x-ada.
* mh-pa-hpux10: New, from gcc/config/pa/x-ada-hpux10.
2008-06-11 Bernhard Fischer <aldot@gcc.gnu.org>
* tls.m4: Fix typos.
Nick Clifton [Wed, 30 Jul 2008 10:28:31 +0000 (10:28 +0000)]
* ld-elf/sec-to-seg.exp: New test: Checks the assignment of
sections to segments.
* ld-elf/sec-to-seg1.s: Test source file.
* ld-elf/sec-to-seg2.s: Test source file.
* ld-elf/sec-to-seg-script-same-page.t: Test linker script.
* ld-elf/sec-to-seg-script-adjoining-pages.t: Test linker script.
* ld-elf/sec-to-seg-script-disjoint-pages.t: Test linker script.
Alan Modra [Wed, 30 Jul 2008 06:29:22 +0000 (06:29 +0000)]
include/opcode/
* ppc.h (PPC_OPCODE_405): Define.
(PPC_OPERAND_FSL, PPC_OPERAND_FCR, PPC_OPERAND_UDI): Define.
gas/
* config/tc-ppc.c (parse_cpu): Separate handling of -m403/405.
(md_show_usage): Likewise.
opcodes/
* ppc-dis.c (print_insn_powerpc): Disassemble FSL/FCR/UDI fields.
* ppc-opc.c (powerpc_operands): Add Xilinx APU related operands.
(insert_sprg, PPC405): Use PPC_OPCODE_405.
(powerpc_opcodes): Add Xilinx APU related opcodes.
Alan Modra [Wed, 30 Jul 2008 04:34:58 +0000 (04:34 +0000)]
Silence gcc printf warnings
Tom Tromey [Wed, 30 Jul 2008 01:10:17 +0000 (01:10 +0000)]
* cli/cli-decode.c (lookup_cmd_1): Use memcpy.
(lookup_cmd_composition): Likewise.
Tom Tromey [Wed, 30 Jul 2008 01:08:35 +0000 (01:08 +0000)]
* cli/cli-cmds.c (edit_command): Remove unused variables. Delete
dead code. Fix indentation.
Alan Modra [Wed, 30 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Wed, 30 Jul 2008 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
Ian Lance Taylor [Tue, 29 Jul 2008 22:58:03 +0000 (22:58 +0000)]
* script.cc (Script_options::finalize_symbols): Finalize SECTIONS
symbols before other symbols.
* testsuite/script_test_2.cc (test_addr): Declare.
(test_addr_alias): Declare.
(main): Check that test_addr and test_addr_alias have the right
values.
* testsuite/script_test_2.t: Define test_addr_alias and
test_addr.
Stan Shebs [Tue, 29 Jul 2008 20:26:53 +0000 (20:26 +0000)]
* gdbint.texinfo: General round of cleanup and minor
clarifications.
(Breakpoint Handling): Remove mention of BREAKPOINT macro.
(Longjmp Support): Update description to reflect how it is done
for targets without using native header.
(Symbol Handling): Add a little more general explanation.
(COFF, ELF): Mention stabs encapsulation.
(DWARF 3): New section.
(Adding a New Host): Scrub out some obsolete bits.
(Generic Host Support Files): Mention ser-pipe.c, ser-mingw.c.
(Host Conditionals): Remove descriptions of NO_STD_REGS,
HAVE_MMAP, HAVE_TERMIO, INT_MAX etc, LONGEST, HAVE_LONG_DOUBLE,
PRINTF_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE, L_SET, SEEK_CUR,
SEEK_SET, STOP_SIGNAL, USG.
(Raw and Virtual Register Representations): Ditto for
DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE,
DEPRECATED_REGISTER_VIRTUAL_TYPE, REGISTER_CONVERT_TO_TYPE.
(Target Conditionals): Ditto for DEPRECATED_FP_REGNUM,
DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN,
DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_INIT_SAVED_REGS,
DEPRECATED_FRAME_SAVED_PC, DEPRECATED_FUNCTION_START_OFFSET,
DEPRECATED_REGISTER_VIRTUAL_SIZE,
DEPRECATED_REGISTER_VIRTUAL_TYPE,
DEPRECATED_USE_STRUCT_CONVENTION.
Describe gdbarch_deprecated_fp_regnum.
Update description of gdbarch_print_insn.
(Adding a New Target): Scrub out obsolete bits.
(Obsolete Conditionals): Remove entire section.
Stan Shebs [Tue, 29 Jul 2008 14:16:15 +0000 (14:16 +0000)]
* main.c (captured_main): Remove long-unused #if 0 blocks.
Nick Clifton [Tue, 29 Jul 2008 13:53:02 +0000 (13:53 +0000)]
* common/genmloop.sh: Add new parameter: -shell to specify the
command interpreter to use to run the input file. This is
necessary because otherwise SHELL is taken from the user's
environment, and not from the makefile that invoked this script
and the user might not be running an sh-like shell.
* cris/Makefile.in: Pass -shell parameter to genmloop.sh.
* fr30/Makefile.in: Likewise.
* frv/Makefile.in: Likewise.
* i960/Makefile.in: Likewise.
* iq2000/Makefile.in: Likewise.
* m32r/Makefile.in: Likewise.
* frv/mloop.in: Add missing start of line comment marker.
gdbadmin [Tue, 29 Jul 2008 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 29 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update
Daniel Jacobowitz [Mon, 28 Jul 2008 22:14:53 +0000 (22:14 +0000)]
* elfxx-mips.c (mips_elf_calculate_relocation): Avoid generating
relocations for undefined weak symbols with non-default visibility.
(_bfd_mips_elf_check_relocs): Use possibly_dynamic_relocs for
global symbols in shared libraries.
(allocate_dynrelocs): New function.
(_bfd_mips_elf_adjust_dynamic_symbol): Do not handle
possibly_dynamic_relocs here.
(_bfd_mips_elf_size_dynamic_sections): Call allocate_dynrelocs.
Tom Tromey [Mon, 28 Jul 2008 20:05:58 +0000 (20:05 +0000)]
* Makefile.in (just-check): Remove. Move body to...
(check): ... here.
Doug Evans [Mon, 28 Jul 2008 18:28:56 +0000 (18:28 +0000)]
* linux-low.c (sys/dir.h, sys/user.h): Remove includes.
(linux_write_memory): Remove declaration of errno.
Alexandre Oliva [Mon, 28 Jul 2008 18:07:05 +0000 (18:07 +0000)]
bfd/ChangeLog:
* elf32-i386.c (struct elf_i386_link_hash_table): Added field
tls_module_base.
(elf_i386_link_hash_table_create): Initialize it.
(elf_i386_always_size_sections): Set it.
(set_tls_module_base): New.
(elf_i386_relocate_sections): Call it.
* elf64-x86-64.c (struct elf64_x86_64_link_hash_table): Added
field tls_module_base.
(elf64_x86_64_link_hash_table_create): Initialize it.
(elf64_x86_64_always_size_sections): Set it.
(set_tls_module_base): New.
(elf64_x86_64_relocate_sections): Call it.
Reported by Cary Coutant <ccoutant@google.com>
ld/testsuite/ChangeLog:
* ld-i386/tlsbindesc.dd: Adjust incorrect expectations for LD to
LE relaxation.
* ld-x86-64/tlsbindesc.dd: Likewise.
* ld-i386/tlsbindesc.rd: Adjust address of _TLS_MODULE_BASE_.
* ld-x86-64/tlsbindesc.rd: Likewise.
Reported by Cary Coutant <ccoutant@google.com>
Tom Tromey [Mon, 28 Jul 2008 17:53:52 +0000 (17:53 +0000)]
* annotate.h (deprecated_annotate_starting_hook): Remove.
(deprecated_annotate_stopped_hook): Remove.
(deprecated_annotate_exited_hook): Remove.
* Makefile.in (annotate.o): Depend on observer_h.
* top.c (deprecated_delete_breakpoint_hook): Remove.
(deprecated_create_breakpoint_hook): Likewise.
(deprecated_modify_breakpoint_hook): Likewise.
* interps.c (clear_interpreter_hooks): Update for removed hooks.
* breakpoint.c (mention): Don't call removed hook.
(delete_breakpoint): Likewise.
(disable_breakpoint): Likewise.
(do_enable_breakpoint): Likewise.
* annotate.c: Include observer.h.
(breakpoint_changed): Change type of argument.
(_initialize_annotate): Register observers.
(deprecated_annotate_starting_hook): Remove.
(deprecated_annotate_stopped_hook): Remove.
(deprecated_annotate_exited_hook): Remove.
(annotate_starting): Update for hook removal.
(annotate_stopped): Likewise.
(annotate_exited): Likewise.
* defs.h (deprecated_delete_breakpoint_hook): Remove.
(deprecated_create_breakpoint_hook): Likewise.
(deprecated_modify_breakpoint_hook): Likewise.
Tom Tromey [Mon, 28 Jul 2008 16:29:02 +0000 (16:29 +0000)]
* main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
Alan Modra [Mon, 28 Jul 2008 06:48:00 +0000 (06:48 +0000)]
warning fix
Alan Modra [Mon, 28 Jul 2008 06:46:31 +0000 (06:46 +0000)]
* elf32-arm.c (arm_map_one_stub): Declare variables at beginning
of block.
* elf32-avr.c (get_local_syms): Likewise.
Alan Modra [Mon, 28 Jul 2008 04:14:40 +0000 (04:14 +0000)]
* readelf.c (print_vma): Typo fix.
Alan Modra [Mon, 28 Jul 2008 04:07:32 +0000 (04:07 +0000)]
bfd/
PR 6769
* bfd-in.h (BFD_VMA_FMT): Define.
(printf_vma, sprintf_vma): Use the above.
(_bfd_int64_low, _bfd_int64_high): Delete.
* bfd-in2.h: Regenerate.
binutils/
PR 6769
* readelf.c (print_dec_vma, print_hex_vma): Delete.
(print_vma): Use BFD_VMA_FMT.
* size.c (size_number, rprint_number): Likewise.
gdbadmin [Mon, 28 Jul 2008 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 28 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update
Daniel Jacobowitz [Sun, 27 Jul 2008 21:18:50 +0000 (21:18 +0000)]
* configure.ac: Check for the GNU/Linux ptrace signature.
* configure: Regenerated.
Daniel Jacobowitz [Sun, 27 Jul 2008 21:12:40 +0000 (21:12 +0000)]
* linux-nat.c (resume_callback): Add more debugging output.
(linux_nat_has_pending_sigint): New function, based on
linux_nat_has_pending.
(set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
(stop_wait_callback): Remove flush_mask handling. Honor
ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
to recursive calls.
(linux_nat_has_pending, flush_callback): Remove.
(linux_nat_filter_event): Check for ignore_sigint.
(linux_nat_wait): Remove flush_mask support and call to
flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
* linux-nat.h (struct lwp_info): Add ignore_sigint field.
* gdb.threads/manythreads.exp: Use remote_expect instead of after.
Add a test for duplicated SIGINTs.
Daniel Jacobowitz [Sun, 27 Jul 2008 21:05:37 +0000 (21:05 +0000)]
* linux-nat.c (count_events_callback, select_event_lwp_callback): Only
report events from resumed threads.
* gdb.threads/schedlock.exp (get_args): Update to work for any
value of NUM.
(Top level): Report the number of threads that did not resume.
Daniel Jacobowitz [Sun, 27 Jul 2008 21:01:45 +0000 (21:01 +0000)]
* gdb.dwarf2/dw2-compressed.S: Also define __start.
Daniel Jacobowitz [Sun, 27 Jul 2008 20:57:43 +0000 (20:57 +0000)]
* lib/mi-support.exp (default_mi_gdb_start): Remove check for
non-MI prompt.
Daniel Jacobowitz [Sun, 27 Jul 2008 20:52:42 +0000 (20:52 +0000)]
* mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
(mips_linux_init_abi): Set tdep->syscall_next_pc.
* mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
mips-tdep.h.
(mips32_next_pc): Handle the syscall instruction.
* mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
Alan Modra [Sun, 27 Jul 2008 04:40:58 +0000 (04:40 +0000)]
* ld-gc/gc.exp (test_gc): xfail powerpc64.
Alan Modra [Sun, 27 Jul 2008 03:43:51 +0000 (03:43 +0000)]
* elf.c (_bfd_elf_make_section_from_shdr): Ignore return from
elf_parse_notes. Use bfd_malloc_and_get_section.
(elf_parse_notes): Validate note namesz and descsz.
Tom Tromey [Sun, 27 Jul 2008 02:00:04 +0000 (02:00 +0000)]
gdb:
PR gdb/1158:
* valops.c (value_struct_elt): Treat function-valued field as a
static method.
gdb/testsuite:
* gdb.base/callfuncs.c (struct struct_with_fnptr): New struct.
(function_struct, function_struct_ptr): New globals.
* gdb.base/callfuncs.exp (do_function_calls): Test calling via a
function pointer in a struct.
Tom Tromey [Sun, 27 Jul 2008 01:58:01 +0000 (01:58 +0000)]
gdb:
PR gdb/1136:
* macroexp.c (get_punctuator) <punctuators>: Rearrange to put
longer tokens first.
gdb/testsuite:
* gdb.base/macscp.exp: Add test for macro lexing bug.
gdbadmin [Sun, 27 Jul 2008 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 27 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update
Alan Modra [Sat, 26 Jul 2008 14:30:39 +0000 (14:30 +0000)]
missed from last commit
Alan Modra [Sat, 26 Jul 2008 13:10:48 +0000 (13:10 +0000)]
Support PowerPC single-precision float.
Vladimir Prus [Sat, 26 Jul 2008 10:23:56 +0000 (10:23 +0000)]
Kill cmd_async_ok.
* cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
(get_cmd_async_ok): Remove.
* cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
* cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
* infcmd.c (_initialize_infcmd): Likewise.
* thread.c (_initialize_thread): Likewise.
Alan Modra [Sat, 26 Jul 2008 01:23:37 +0000 (01:23 +0000)]
* ld-scripts/include.exp: Don't run test for aout.
* ld-scripts/include.s: Use .fill rather than .4byte.
* ld-scripts/include-1.d: Adjust.
Joseph Myers [Sat, 26 Jul 2008 01:19:34 +0000 (01:19 +0000)]
* mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
128-bit long doubles in even-odd pairs of FPRs. Do not
right-align float arguments for big-endian.
(mips_n32n64_return_value): Apply return value convention for
structs containing one or two floating-point values to soft-float
as well as hard-float. Handle 128-bit long doubles in such
structs.
(mips_o32_push_dummy_call): Only skip one integer register for a
float argument passed in an FPR.
Alan Modra [Sat, 26 Jul 2008 01:15:42 +0000 (01:15 +0000)]
* binutils-all/objdump.exp: Run compressed debug test only for ELF.
gdbadmin [Sat, 26 Jul 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 26 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update
Keith Seitz [Fri, 25 Jul 2008 18:00:17 +0000 (18:00 +0000)]
* acinclude.m4: Remove libide, libgui, and all the other Tcl
functions.
* tcl.m4: New file.
Tom Tromey [Fri, 25 Jul 2008 16:12:03 +0000 (16:12 +0000)]
gdb:
* tui/tui-hooks.c: Include observer.h.
(tui_event_default, tui_old_event_hooks, tui_event_hooks):
Remove.
(tui_bp_created_observer, tui_bp_deleted_observer,
tui_bp_modified_observer): New globals.
(tui_install_hooks): Use observers, not events.
(tui_remove_hooks): Likewise.
* mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
(mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
globals.
(breakpoint_notify): Check mi_can_breakpoint_notify.
(breakpoint_hooks): Remove.
(mi_cmd_break_insert): Attach observers. Don't use events.
* tracepoint.c: Include observer.h, not gdb-events.h.
(tracepoint_operation, trace_pass_command): Notify observer.
* interps.c: Don't include gdb-events.h.
(clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
* gdbarch.c: Rebuild.
* gdbarch.sh: Emit include for observer.h, not gdb-events.h.
(deprecated_current_gdbarch_select_hack): Notify observer.
* breakpoint.h: Don't include gdb-events.h.
* breakpoint.c: Don't include gdb-events.h.
(condition_command): Notify observer.
(commands_command): Likewise.
(commands_from_control_command): Likewise.
(mention, delete_breakpoint, set_ignore_count): Likewise.
(disable_breakpoint, do_enable_breakpoint): Likewise.
* Makefile.in (gdb_events_h): Remove.
(breakpoint_h): Update.
(COMMON_OBS): Remove gdb-events.o.
(gdb-events.o): Remove.
(breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
* gdb-events.c: Remove.
* gdb-events.h: Remove.
* gdb-events.sh: Remove.
gdb/doc:
* observer.texi (GDB Observers): Document new observers:
breakpoint_created, breakpoint_deleted, breakpoint_modified,
tracepoint_created, tracepoint_deleted, tracepoint_modified,
architecture_changed.
gdb/gdbtk:
* generic/gdbtk-hooks.c: Include observer.h, not gdb-events.h.
(gdbtk_add_hooks): Use observers, not events.
(gdbtk_architecture_changed): Add argument, for observer.
* generic/gdbtk-bp.c: Include observer.h.
(gdb_set_bp): Notify observer.
(gdb_set_bp_addr): Likewise.
Ian Lance Taylor [Fri, 25 Jul 2008 04:25:49 +0000 (04:25 +0000)]
PR 5990
* descriptors.cc: New file.
* descriptors.h: New file.
* gold-threads.h (class Hold_optional_lock): New class.
* fileread.cc: Include "descriptors.h".
(File_read::~File_read): Release descriptor rather than closing
it.
(File_read::open) [file]: Call open_descriptor rather than open.
Set is_descriptor_opened_.
(File_read::open) [memory]: Assert that descriptor is not open.
(File_read::reopen_descriptor): New function.
(File_read::release): Release descriptor.
(File_read::do_read): Make non-const. Reopen descriptor.
(File_read::read): Make non-const.
(File_read::make_view): Reopen descriptor.
(File_read::do_readv): Likewise.
* fileread.h (class File_read): Add is_descriptor_opened_ field.
Update declarations.
* layout.cc: Include "descriptors.h".
(Layout::create_build_id): Use open_descriptor rather than open.
* output.cc: Include "descriptors.h".
(Output_file::open): Use open_descriptor rather than open.
* archive.cc (Archive::const_iterator): Change Archive to be
non-const.
(Archive::begin, Archive::end): Make non-const.
(Archive::count_members): Likewise.
* archive.h (class Archive): Update declarations.
* object.h (Object::read): Make non-const.
* Makefile.am (CCFILES): Add descriptors.cc.
(HFILES): Add descriptors.h.
* Makefile.in: Rebuild.
gdbadmin [Fri, 25 Jul 2008 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 25 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update
Ian Lance Taylor [Thu, 24 Jul 2008 21:45:50 +0000 (21:45 +0000)]
PR 6716
* gold.h: Always include <clocale>. Add Solaris workarounds
following code in binutils/sysdep.h.
Ian Lance Taylor [Thu, 24 Jul 2008 21:23:09 +0000 (21:23 +0000)]
PR 6048
* ehframe.cc (Eh_frame::add_ehframe_input_section): Check whether
this->eh_frame_hdr_ is NULL before using it.
Ian Lance Taylor [Thu, 24 Jul 2008 21:21:38 +0000 (21:21 +0000)]
* dynobj.cc (Versions::Versions): Update comment.
H.J. Lu [Thu, 24 Jul 2008 18:51:33 +0000 (18:51 +0000)]
2008-07-24 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/nops-1.d: Add -mtune=generic32.
* gas/i386/nops-2.d: Likewise.
* gas/i386/nops-3.d: Likewise.
* gas/i386/x86-64-nops-1.d: Add -mtune=generic64.
* gas/i386/x86-64-nops-2.d: Likewise.
* gas/i386/x86-64-nops-3.d: Likewise.
* gas/i386/x86-64-nops-4.d: Likewise.
Daniel Jacobowitz [Thu, 24 Jul 2008 16:17:42 +0000 (16:17 +0000)]
* elf32-mips.c (elf_backend_write_section): Define.
Pedro Alves [Thu, 24 Jul 2008 15:28:42 +0000 (15:28 +0000)]
* remote.c (remote_threads_extra_info): Don't query the remote
server about info on the internally added main thread.
DJ Delorie [Thu, 24 Jul 2008 13:51:49 +0000 (13:51 +0000)]
merge from gcc
Aleksandar Ristovski [Thu, 24 Jul 2008 13:18:58 +0000 (13:18 +0000)]
* nto-procfs.c (procfs_attach): Populate initial thread list.
(procfs_wait): Return new pid, built from the inferior status.
Nick Clifton [Thu, 24 Jul 2008 07:51:25 +0000 (07:51 +0000)]
* elf.c (_bfd_elf_map_sections_to_segments): Catch off by one
error assigning sections to segments.
Ian Lance Taylor [Thu, 24 Jul 2008 07:26:27 +0000 (07:26 +0000)]
* dynobj.cc (Versions::Versions): If there is an soname, use it as
the base version name.
Jie Zhang [Thu, 24 Jul 2008 07:25:13 +0000 (07:25 +0000)]
* config/bfin-parse.y (asm_1): Error if plain symbol is used
as load/store offset.
Ian Lance Taylor [Thu, 24 Jul 2008 07:23:20 +0000 (07:23 +0000)]
* stringpool.cc (Stringpool_template::add_with_length): Set key to
array size plus one.
(Stringpool_template::set_string_offsets): Subtract one from key
before using it as an array index.
(Stringpool_template::get_offset_with_length): Likewise.
(Stringpool_template::write_to_buffer): Likewise.
* stringpool.h (Stringpool_template::get_offset_from_key):
Likewise.
Ian Lance Taylor [Thu, 24 Jul 2008 01:24:50 +0000 (01:24 +0000)]
PR 6658
* object.h (Merged_symbol_value::value): Do our best to handle a
negative addend.
Alan Modra [Thu, 24 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Thu, 24 Jul 2008 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Ian Lance Taylor [Wed, 23 Jul 2008 23:44:02 +0000 (23:44 +0000)]
PR 6647
* script.cc (Version_script_info::get_versions): Don't add empty
version tag to return value.
(Version_script_info::get_symbol_version_helper): Change return
type to bool. Add pversion parameter. Change all callers.
(script_register_vers_node): Don't require a non-NULL tag.
* script.h (class Version_script_info): Update declarations.
(Version_script_info::get_symbol_version): Change return type to
bool. Add version parameter. Change all callers.
* symtab.cc (Sized_symbol::add_from_relobj): Rework version
handling. Handle an empty version from a version script.
(Symbol_table::define_special_symbol): Likewise.
* testsuite/ver_test_10.script: New file.
* testsuite/ver_test_10.sh: New file.
* testsuite/Makefile.am (check_SCRIPTS): Add ver_test_10.sh.
(check_DATA): Add ver_test_10.syms.
(ver_test_10.syms, ver_test_10.so): New target.
* testsuite/Makefile.in: Rebuild.
Thiago Jung Bauermann [Wed, 23 Jul 2008 17:40:48 +0000 (17:40 +0000)]
* configure.ac (CONFIG_INITS): Delete long obsoleted variable.
* configure: Regenerate.
Chris Demetriou [Wed, 23 Jul 2008 16:19:59 +0000 (16:19 +0000)]
2008-07-23 Simon Baldwin <simonb@google.com>
* symtab.cc (Symbol_table::sized_write_symbol): Only set st_size
to zero for undefined symbols from dynamic libraries.
Ian Lance Taylor [Wed, 23 Jul 2008 14:36:09 +0000 (14:36 +0000)]
* symtab.cc (Symbol_table::resolve): Remove version parameter.
Change all callers.
* symtab.h (class Symbol_table): Update declaration.
* testsuite/ver_test_9.cc: New file.
* testsuite/Makefile.am (check_PROGRAMS): Add ver_test_9.
(ver_test_9_SOURCES, ver_test_9_DEPENDENCIES): Define.
(ver_test_9_LDFLAGS, ver_test_9_LDADD): Define.
(ver_test_9.so, ver_test_9.o): New targets.
* testsuite/Makefile.in: Rebuild.
Aleksandar Ristovski [Wed, 23 Jul 2008 13:36:00 +0000 (13:36 +0000)]
* nto-procfs.c (procfs_xfer_memory): Changed signature.
(procfs_resume): Workaround for dereferencing type-punned pointer
warning.
* nto-tdep.c (nto_parse_redirection): Change signature to be const
correct.
* nto-tdep.h (nto_parse_redirection): Likewise.
gdbadmin [Wed, 23 Jul 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 23 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update
Ian Lance Taylor [Tue, 22 Jul 2008 23:55:24 +0000 (23:55 +0000)]
* options.h (class General_options): Define --check-sections.
* layout.cc (Layout::set_segment_offsets): Handle
--check-sections.
Ian Lance Taylor [Tue, 22 Jul 2008 23:01:20 +0000 (23:01 +0000)]
* options.h (class General_options): Define -n/--nmagic and
-N/--omagic.
* options.cc (General_options::finalize): For -n/--nmagic or
-N/--omagic, set -static.
* layout.cc (Layout::attach_allocated_section_to_segment): If
-N/--omagic, don't put read-only and read-write sections in
different segments.
(Layout::find_first_load_seg): If -N/--omagic, don't insist on
finding a read-only segment.
(Layout::set_segment_offsets): If -N/--omagic or -n/--nmagic,
don't set the minimum segment alignment to the common page size,
and don't set the file offset to the address modulo the page size.
* script-sections.cc (Script_sections::create_segments): If
-n/--omagic, don't put read-only and read-write sections in
different segments.
Ian Lance Taylor [Tue, 22 Jul 2008 22:08:43 +0000 (22:08 +0000)]
* cref.cc: New file.
* cref.h: New file.
* options.h (class General_options): Add --print-symbol-counts.
* main.cc (main): Issue defined symbol report if requested.
* archive.cc (Archive::interpret_header): Make into a const member
function.
(Archive::add_symbols): Call Input_objects::archive_start and
archive_stop.
(Archive::const_iterator): Define new class.
(Archive::begin, Archive::end): New functions.
(Archive::include_all_members): Rewrite to use iterator.
(Archive::count_members): New function.
* archive.h (class Archive): Update declarations.
(Archive::filename): New function.
* object.cc: Include "cref.h".
(Sized_relobj::Sized_relobj): Initialize defined_count_.
(Sized_relobj::do_get_global_symbol_counts): New function.
(Input_objects::add_object): Add object to cross-referencer.
(Input_objects::archive_start): New function.
(Input_objects::archive_stop): New function.
(Input_objects::print_symbol_counts): New function.
* object.h: Declare Cref and Archive.
(Object::get_global_symbol_counts): New function.
(Object::do_get_global_symbol_counts): New pure virtual function.
(class Sized_relobj): Add defined_count_ field. Update
declarations.
(class Input_objects): Add cref_ field. Update constructor.
Update declarations.
* dynobj.cc (Sized_dynobj::Sized_dynobj): Initialize symbols_ and
defined_count_.
(Sized_dynobj::do_add_symbols): Allocate symbols_ if printing
symbol counts.
(Sized_dynobj::do_get_global_symbol_counts): New function.
* dynobj.h (class Sized_dynobj): Add fields symbols_ and
defined_count_. Update declarations. Define Symbols typedef.
* symtab.cc (Symbol_table::add_from_relobj): Add defined
parameter. Change all callers.
(Symbol_table::add_from_dynobj): Add sympointers and defined
parameters. Change all callers.
* symtab.h (class Symbol_table): Update declarations.
* Makefile.am (CCFILES): Add cref.cc.
(HFILES): Add cref.h.
* Makefile.in: Rebuild.
Chris Demetriou [Tue, 22 Jul 2008 21:02:44 +0000 (21:02 +0000)]
2008-07-22 Simon Baldwin <simonb@google.com>
* symtab.cc (Symbol_table::sized_write_symbol): Set symbol size
to zero when writing undefined symbols.
Alan Modra [Tue, 22 Jul 2008 14:15:32 +0000 (14:15 +0000)]
Update for elf_link_output_extsym change
Nick Clifton [Tue, 22 Jul 2008 11:19:01 +0000 (11:19 +0000)]
* elf.c (_bfd_elf_map_sections_to_segments): Allow sections in
adjoining pages to be included in the same segment.
Nick Clifton [Tue, 22 Jul 2008 10:44:51 +0000 (10:44 +0000)]
* config/tc-mips.c (mips_ip): Reset s to argsStart.
* gas/mips/tls-ill.l: Update error message.
* gas/mips/octeon-ill.l: Likewise.
Jie Zhang [Tue, 22 Jul 2008 08:34:16 +0000 (08:34 +0000)]
* config/tc-bfin.c (bfin_gen_loop): Remove loop symbol.
Ian Lance Taylor [Tue, 22 Jul 2008 08:09:48 +0000 (08:09 +0000)]
* output.cc (Output_section::add_input_section): Don't try to
merge empty merge sections.
Chris Demetriou [Tue, 22 Jul 2008 04:58:33 +0000 (04:58 +0000)]
2008-07-22 Simon Baldwin <simonb@google.com>
* elflink.c (elf_link_output_extsym): Set st_size to zero for
symbols from dynamic libraries.
Stan Shebs [Tue, 22 Jul 2008 02:10:14 +0000 (02:10 +0000)]
Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
* gdbarch.sh: Adjust comment to refer to
in_solib_dynsym_resolve_code().
* gdbarch.h, gdbarch.c: Update.
* solib-osf.c: Ditto.
* infrun.c: Ditto.
(handle_inferior_event): Use in_solib_dynsym_resolve_code
unconditionally.
* config/mips/nm-irix5.h: Remove undef of
IN_SOLIB_DYNSYM_RESOLVE_CODE.
* gdbint.texinfo: Refer to target_so_ops.in_dynsym_resolve_code
instead of IN_SOLIB_DYNSYM_RESOLVE_CODE.
Alan Modra [Tue, 22 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Tue, 22 Jul 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Craig Silverstein [Mon, 21 Jul 2008 23:36:29 +0000 (23:36 +0000)]
2008-07-21 Craig Silverstein <csilvers@google.com>
* symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol):
Include symbol version in error message.
DJ Delorie [Mon, 21 Jul 2008 17:50:54 +0000 (17:50 +0000)]
* config/tc-h8300.c (fix_operand_size): Use the default size
specified by the .lbranch/.sbranch pseudos.
Tom Tromey [Mon, 21 Jul 2008 16:47:11 +0000 (16:47 +0000)]
gdb
* symfile.c (reread_symbols): Don't pass argument to observer.
* exec.c (exec_file_attach): Don't pass argument to observer.
* ada-lang.c (ada_executable_changed_observer): Remove argument.
* symtab.c (symtab_observer_executable_changed): Remove argument.
* observer.sh: Handle functions with no arguments.
gdb/doc
* observer.texi (GDB Observers): Remove obsolete comment.
<executable_changed>: Remove argument.
H.J. Lu [Mon, 21 Jul 2008 16:13:27 +0000 (16:13 +0000)]
2008-07-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/4424
* elflink.c (_bfd_elf_merge_symbol): Call bed->relocs_compatible
to check if 2 inputs are compatible.
Nick Clifton [Mon, 21 Jul 2008 16:01:01 +0000 (16:01 +0000)]
* elf.c (assign_file_positions_for_load_sections): Print vma in
error message about overlapping section vmas.
H.J. Lu [Mon, 21 Jul 2008 14:36:07 +0000 (14:36 +0000)]
2008-07-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/6747
* elf32-frv.c (elf32_frv_relocate_section): Revert the change
for PR ld/6446 checked in by accident on May 21, 2008.
Nick Clifton [Mon, 21 Jul 2008 14:09:57 +0000 (14:09 +0000)]
* coff-sh.c (bfd_pe_print_pdata): Define to NULL for non
COFF_WITH_PE based SH ports.
* libpei.h (_bfd_XX_print_ce_compressed_pdata): Prototype.
* arm-wince-pe.c (bfd_pe_print_pdata): Use
_bfd_pe_print_ce_compressed_pdata.
(slurp_symcache, cleanup_syms, pe_print_ce_compressed_pdata): Move
to...
* peXXigen.c: ... here and rename pe_print_ce_compressed_pdata to
_bfd_XX_print_ce_compressed_pdata.