OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
16 years agobfd/ChangeLog:
Alexandre Oliva [Mon, 28 Jul 2008 18:07:04 +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>

16 years ago * annotate.h (deprecated_annotate_starting_hook): Remove.
Tom Tromey [Mon, 28 Jul 2008 17:53:51 +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.

16 years ago * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
Tom Tromey [Mon, 28 Jul 2008 16:28:58 +0000 (16:28 +0000)]
* main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.

16 years agowarning fix
Alan Modra [Mon, 28 Jul 2008 06:48:00 +0000 (06:48 +0000)]
warning fix

16 years ago * elf32-arm.c (arm_map_one_stub): Declare variables at beginning
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.

16 years ago * readelf.c (print_vma): Typo fix.
Alan Modra [Mon, 28 Jul 2008 04:14:40 +0000 (04:14 +0000)]
* readelf.c (print_vma): Typo fix.

16 years agobfd/
Alan Modra [Mon, 28 Jul 2008 04:07:31 +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.

16 years ago*** empty log message ***
gdbadmin [Mon, 28 Jul 2008 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Mon, 28 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago* dcrt0.cc (dll_crt0_0): Remove calling malloc_init and
Christopher Faylor [Sun, 27 Jul 2008 22:31:48 +0000 (22:31 +0000)]
* dcrt0.cc (dll_crt0_0): Remove calling malloc_init and
user_shared_initialize_1 from here.
(dll_crt0_1): Remove dynamically_loaded check.  Just call malloc_init and
user_shared_initialize unconditionally.
* shared.cc (user_shared_create): Rename from user_shared_initialize.
(user_shared_initialize): Rename from user_shared_initialize_1.  Move complete
user_shared content initialization code here from user_shared_create.
* syscalls.cc (seteuid32): Remove call to user_shared_initialize_1.  That is
implied by the "true" argument to user_shared_create().

16 years ago * configure.ac: Check for the GNU/Linux ptrace signature.
Daniel Jacobowitz [Sun, 27 Jul 2008 21:18:50 +0000 (21:18 +0000)]
* configure.ac: Check for the GNU/Linux ptrace signature.
* configure: Regenerated.

16 years ago * linux-nat.c (resume_callback): Add more debugging output.
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.

16 years ago * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
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.

16 years ago * gdb.dwarf2/dw2-compressed.S: Also define __start.
Daniel Jacobowitz [Sun, 27 Jul 2008 21:01:45 +0000 (21:01 +0000)]
* gdb.dwarf2/dw2-compressed.S: Also define __start.

16 years ago * lib/mi-support.exp (default_mi_gdb_start): Remove check for
Daniel Jacobowitz [Sun, 27 Jul 2008 20:57:42 +0000 (20:57 +0000)]
* lib/mi-support.exp (default_mi_gdb_start): Remove check for
non-MI prompt.

16 years ago * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
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.

16 years ago* mount.cc (mount_info::init): Add location where we're looking for fstab to
Christopher Faylor [Sun, 27 Jul 2008 16:59:07 +0000 (16:59 +0000)]
* mount.cc (mount_info::init): Add location where we're looking for fstab to
temporary message.
* lib/cygwin_crt0.c (cygwin_crt0): Simplify by eliminating accommodations for
ancient cygwin DLLs.
* lib/crt0.h: Include <windows.h> directly since it is needed.

16 years ago* cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with it.
Christopher Faylor [Sun, 27 Jul 2008 14:53:42 +0000 (14:53 +0000)]
* cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with it.

16 years ago* shared_info.h (shared_destroy): Declare.
Christopher Faylor [Sun, 27 Jul 2008 14:52:46 +0000 (14:52 +0000)]
* shared_info.h (shared_destroy): Declare.
* shared.cc (shared_destroy): Define new function to destroy shared memory
regions.
* init.cc (dll_entry): Call shared_destroy when dll detaches from the process.

16 years ago * fhandler_socket.cc (fhandler_socket::send_internal): Send never more
Corinna Vinschen [Sun, 27 Jul 2008 10:20:49 +0000 (10:20 +0000)]
* fhandler_socket.cc (fhandler_socket::send_internal): Send never more
then 64K bytes at once.  For blocking sockets, loop until entire data
has been sent or an error occurs.
(fhandler_socket::sendto): Drop code which sends on 64K bytes.
(fhandler_socket::sendmsg): Ditto.

16 years ago * ld-gc/gc.exp (test_gc): xfail powerpc64.
Alan Modra [Sun, 27 Jul 2008 04:40:57 +0000 (04:40 +0000)]
* ld-gc/gc.exp (test_gc): xfail powerpc64.

16 years ago * elf.c (_bfd_elf_make_section_from_shdr): Ignore return from
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.

16 years agogdb:
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.

16 years agogdb:
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.

16 years ago*** empty log message ***
gdbadmin [Sun, 27 Jul 2008 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Sun, 27 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agoSupport PowerPC single-precision float.
Alan Modra [Sat, 26 Jul 2008 13:10:47 +0000 (13:10 +0000)]
Support PowerPC single-precision float.

16 years ago Kill cmd_async_ok.
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.

16 years ago * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
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.

16 years ago*** empty log message ***
gdbadmin [Sat, 26 Jul 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Sat, 26 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * acinclude.m4: Remove libide, libgui, and all the other Tcl
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.

16 years agogdb:
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.

16 years ago*** empty log message ***
gdbadmin [Fri, 25 Jul 2008 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Fri, 25 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * elf32-mips.c (elf_backend_write_section): Define.
Daniel Jacobowitz [Thu, 24 Jul 2008 16:17:42 +0000 (16:17 +0000)]
* elf32-mips.c (elf_backend_write_section): Define.

16 years ago * remote.c (remote_threads_extra_info): Don't query the remote
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.

16 years agomerge from gcc
DJ Delorie [Thu, 24 Jul 2008 13:51:49 +0000 (13:51 +0000)]
merge from gcc

16 years ago * nto-procfs.c (procfs_attach): Populate initial thread list.
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.

16 years ago * elf.c (_bfd_elf_map_sections_to_segments): Catch off by one
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.

16 years agodaily update
Alan Modra [Thu, 24 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Thu, 24 Jul 2008 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
Thiago Jung Bauermann [Wed, 23 Jul 2008 17:40:48 +0000 (17:40 +0000)]
* configure.ac (CONFIG_INITS): Delete long obsoleted variable.
* configure: Regenerate.

16 years ago * nto-procfs.c (procfs_xfer_memory): Changed signature.
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.

16 years ago*** empty log message ***
gdbadmin [Wed, 23 Jul 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Wed, 23 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * elf.c (_bfd_elf_map_sections_to_segments): Allow sections in
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.

16 years ago2008-07-22 Simon Baldwin <simonb@google.com>
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.

16 years ago Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
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.

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

16 years ago*** empty log message ***
gdbadmin [Tue, 22 Jul 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agogdb
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.

16 years ago2008-07-21 H.J. Lu <hongjiu.lu@intel.com>
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.

16 years ago * elf.c (assign_file_positions_for_load_sections): Print vma in
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.

16 years ago2008-07-21 H.J. Lu <hongjiu.lu@intel.com>
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.

16 years ago * coff-sh.c (bfd_pe_print_pdata): Define to NULL for non
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.

16 years ago * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Drop
Alan Modra [Mon, 21 Jul 2008 07:49:58 +0000 (07:49 +0000)]
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Drop
unwanted zero terminators.

16 years ago * elf32-spu.c (spu_elf_relocate_section): Expand
Alan Modra [Mon, 21 Jul 2008 07:36:25 +0000 (07:36 +0000)]
* elf32-spu.c (spu_elf_relocate_section): Expand
RELOC_FOR_GLOBAL_SYMBOL.  Don't warn about undefined symbols for
R_SPU_PPU32 and R_SPU_PPU64 relocations.

16 years ago * bfd/elf-bfd.h: Declare elfcore_write_ppc_vsx.
Luis Machado [Mon, 21 Jul 2008 05:33:37 +0000 (05:33 +0000)]
* bfd/elf-bfd.h: Declare elfcore_write_ppc_vsx.
* bfd/elf.c (elfcore_grok_ppc_vsx): New function.
(elfcore_write_ppc_vsx): New function
(elfcore_grok_note): Handle VSX notes.
(elfcore_write_register_note): Handle VSX notes.
* include/elf/common.h: Define NT_PPC_VSX.
* binutils/readelf.c (get_note_type): Handle VSX notes.

16 years ago2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
Chris Demetriou [Mon, 21 Jul 2008 05:05:23 +0000 (05:05 +0000)]
2008-07-20  Sergei Poselenov  <sposelenov@emcraft.com>
            Chris Demetriou  <cgd@google.com>

        * elfread.c (elf_symfile_segments): Fix the check that each loadable
        section fits within an ELF segment to handle ELF segments that hit
        the end of the address space.

16 years agodaily update
Alan Modra [Mon, 21 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Mon, 21 Jul 2008 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago2008-07-20 Chris Demetriou <cgd@google.com>
Chris Demetriou [Sun, 20 Jul 2008 21:56:49 +0000 (21:56 +0000)]
2008-07-20  Chris Demetriou  <cgd@google.com>

        * MAINTAINERS (Write After Approval): Add self.

16 years agofile record.h was initially added on branch reverse-20080717-branch.
Hui Zhu [Sun, 20 Jul 2008 14:30:11 +0000 (14:30 +0000)]
file record.h was initially added on branch reverse-20080717-branch.

16 years agofile record.c was initially added on branch reverse-20080717-branch.
Hui Zhu [Sun, 20 Jul 2008 14:30:11 +0000 (14:30 +0000)]
file record.c was initially added on branch reverse-20080717-branch.

16 years agofile linux-record.h was initially added on branch reverse-20080717-branch.
Hui Zhu [Sun, 20 Jul 2008 14:30:11 +0000 (14:30 +0000)]
file linux-record.h was initially added on branch reverse-20080717-branch.

16 years agofile linux-record.c was initially added on branch reverse-20080717-branch.
Hui Zhu [Sun, 20 Jul 2008 14:30:11 +0000 (14:30 +0000)]
file linux-record.c was initially added on branch reverse-20080717-branch.

16 years agodaily update
Alan Modra [Sun, 20 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Sun, 20 Jul 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago*** empty log message ***
gdbadmin [Sat, 19 Jul 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

16 years agodaily update
Alan Modra [Sat, 19 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agogdb
Tom Tromey [Fri, 18 Jul 2008 20:55:33 +0000 (20:55 +0000)]
gdb
PR gdb/855:
* NEWS: Add entry for macro commands.
* Makefile.in (macrocmd.o): Add gdb_string.h.
* macroscope.h (user_macro_scope): Declare.
(default_macro_scope): Update documentation.
(macro_user_macros): Declare.
* c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
Use user_macro_scope.
(null_macro_lookup): Remove.
* macrotab.h (macro_callback_fn): Declare.
(macro_for_each): Likewise.
(macro_allow_redefinitions): Likewise.
* macrotab.c (foreach_macro): New function
(macro_for_each): Likewise.
(struct macro_table) <redef_ok>: New field.
(macro_allow_redefinitions): New function.
(new_macro_table): Update.
(macro_define_function): Likewise.
(macro_define_object): Likewise.
* macroscope.c (user_macro_scope): New function.
(default_macro_scope): Use it.
(macro_user_macros): New global.
(standard_macro_lookup): Look in macro_user_macros.
(_initialize_macroscope): New function.
* macroexp.h (macro_is_whitespace, macro_is_digit,
macro_is_identifier_nondigit): Declare.
* macroexp.c (macro_is_whitespace): Rename.  No longer static.
(macro_is_digit): Likewise.
(macro_is_identifier_nondigit): Likewise.
(get_identifier): Update.
(get_pp_number): Likewise.
(get_token): Likewise.
* macrocmd.c (skip_ws): New function.
(extract_identifier): Likewise.
(free_macro_definition_ptr): Likewise.
(user_macros): Remove.
(macro_define_command): Implement.
(_initialize_macrocmd): Update.
(macro_undef_command): Implement.
(print_one_macro): New function.
(macro_list_command): Implement.
gdb/doc
* gdb.texinfo (Macros): Update.  Use @code rather than @command.
gdb/testsuite
* gdb.base/macscp.exp: Add macro tests.

16 years agobfd:
Joseph Myers [Fri, 18 Jul 2008 20:49:12 +0000 (20:49 +0000)]
bfd:
* bfd-in.h (bfd_elf32_arm_set_target_relocs): Add new parameter.
* bfd-in2.h: Regenerate.
* elf32-arm.c (struct elf_arm_obj_tdata): Add field
no_wchar_size_warning.
(bfd_elf32_arm_set_target_relocs): Add new parameter
no_wchar_warn.
(elf32_arm_merge_eabi_attributes): Give a warning, not an error,
for conflicting wchar_t attributes.  Do not warn if
--no-wchar-size-warning.  Make diagnostic text more specific.

ld:
* ld.texinfo (--no-wchar-size-warning): Document new ARM option.
* emultempl/armelf.em (no_wchar_size_warning): New.
(arm_elf_create_output_section_statements): Pass
no_wchar_size_warning to arm_elf_create_output_section_statements.
(OPTION_NO_WCHAR_SIZE_WARNING): New.
(PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
(PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
(PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.

ld/testsuite:
* ld-arm/attr-merge-wchar-0.s,ld-arm/attr-merge-wchar-2.s,
ld-arm/attr-merge-wchar-4.s, ld-arm/attr-merge-wchar-00-nowarn.d,
ld-arm/attr-merge-wchar-00.d, ld-arm/attr-merge-wchar-02-nowarn.d,
ld-arm/attr-merge-wchar-02.d, ld-arm/attr-merge-wchar-04-nowarn.d,
ld-arm/attr-merge-wchar-04.d, ld-arm/attr-merge-wchar-20-nowarn.d,
ld-arm/attr-merge-wchar-20.d, ld-arm/attr-merge-wchar-22-nowarn.d,
ld-arm/attr-merge-wchar-22.d, ld-arm/attr-merge-wchar-24-nowarn.d,
ld-arm/attr-merge-wchar-24.d, ld-arm/attr-merge-wchar-40-nowarn.d,
ld-arm/attr-merge-wchar-40.d, ld-arm/attr-merge-wchar-42-nowarn.d,
ld-arm/attr-merge-wchar-42.d, ld-arm/attr-merge-wchar-44-nowarn.d,
ld-arm/attr-merge-wchar-44.d: New.
* ld-arm/arm-elf.exp: Run new tests.

16 years ago * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
Joseph Myers [Fri, 18 Jul 2008 13:38:14 +0000 (13:38 +0000)]
* configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
in BFD ELF check.
* configure: Regenerate.

16 years ago2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 18 Jul 2008 12:45:33 +0000 (12:45 +0000)]
2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/6748
* elf32-arm.c (elf32_arm_link_hash_table_create): Initialize
new fields added for ARM long call support.

16 years ago * pe-arm-wince.c (pe_print_compressed_pdata): Define new function to
Nick Clifton [Fri, 18 Jul 2008 11:30:22 +0000 (11:30 +0000)]
    * pe-arm-wince.c (pe_print_compressed_pdata): Define new function to
        print compressed pdata structure as described on MSDN. This only
        applies to a limited set of architectures (ARM, SH4).
        (slurp_symtab, my_symbol_for_address): Define static helper
        functions for pe_print_compressed_pdata.
        * coffcode.h (bfd_coff_backend_data): Add _bfd_coff_print_pdata field.
        (bfd_coff_have_print_pdata, bfd_coff_print_pdata): Define.
        * bfd/peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add check on
        bfd_coff_backend_data, call the function if non-null.
        * pei-mcore.c: Add target dependent initialisation for
        bfd_coff_backend_data.
        * coff-sh.c: Likewise.
        * coff64-rs6000.c: Likewise.
        * coff-rs6000.c: Likewise.
        * libcoff-in.h: Likewise.
        * cf-i386lynx.c: Likewise.
        * coff-alpha.c: Likewise.
        * coff-apollo.c: Likewise.
        * coff-arm.c: Likewise.
        * coff-aux.c: Likewise.
        * coff-h8300.c: Likewise.
        * coff-h8500.c: Likewise.
        * coff-i386.c: Likewise.
        * coff-i860.c: Likewise.
        * coff-i960.c: Likewise.
        * coff-ia64.c: Likewise.
        * coff-m68k.c: Likewise.
        * coff-m88k.c: Likewise.
        * coff-maxq.c: Likewise.
        * coff-mips.c: Likewise.
        * coff-or32.c: Likewise.
        * coff-sparc.c: Likewise.
        * coff-tic30.c: Likewise.
        * coff-tic4x.c: Likewise.
        * coff-tic54x.c: Likewise.
        * coff-tic80.c: Likewise.
        * coff-w65.c: Likewise.
        * coff-we32k.c: Likewise.
        * coff-x86_64.c: Likewise.
        * coff-z80.c: Likewise.
        * coff-z8k.c: Likewise.
        * pe-mcore.c: Likewise.
        * pe-mips.c: Likewise.
        * pe-ppc.c: Likewise.
        * peXXigen.c: Likewise.
        * pei-ppc.c: Likewise.
        * libcoff.h: Regenerate.

16 years agodaily update
Alan Modra [Fri, 18 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Fri, 18 Jul 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agoFix for Linux/VDSO failure.
Paul Pluzhnikov [Thu, 17 Jul 2008 20:57:26 +0000 (20:57 +0000)]
Fix for Linux/VDSO failure.

16 years agoFix for failing gdb.base/auxv.exp on Linux
Paul Pluzhnikov [Thu, 17 Jul 2008 20:56:11 +0000 (20:56 +0000)]
Fix for failing gdb.base/auxv.exp on Linux

16 years agoFix for gdb.base/corefile.exp failure on Linux
Paul Pluzhnikov [Thu, 17 Jul 2008 19:01:44 +0000 (19:01 +0000)]
Fix for gdb.base/corefile.exp failure on Linux

16 years agodaily update
Alan Modra [Thu, 17 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Thu, 17 Jul 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years ago * elf32-bfin.c (bfin_check_relocs, bfin_relocate_section,
Bernd Schmidt [Wed, 16 Jul 2008 15:27:05 +0000 (15:27 +0000)]
* elf32-bfin.c (bfin_check_relocs, bfin_relocate_section,
bfin_final_link_relocate, bfin_gc_mark_hook, bfin_gc_sweep_hook,
ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE,
struct _bfinfdpic_dynamic_got_info): Moved around to keep FD-PIC code
separate from non-FD-PIC.

16 years agodaily update
Alan Modra [Wed, 16 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago*** empty log message ***
gdbadmin [Wed, 16 Jul 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

16 years agoRevert frame_unwind_caller_pc / frame_unwind_caller_id.
Daniel Jacobowitz [Tue, 15 Jul 2008 23:29:24 +0000 (23:29 +0000)]
Revert frame_unwind_caller_pc / frame_unwind_caller_id.

16 years ago* valops.c (value_cast_pointers): Follow typedefs when checking
Andreas Schwab [Tue, 15 Jul 2008 22:13:42 +0000 (22:13 +0000)]
* valops.c (value_cast_pointers): Follow typedefs when checking
result of coercion.

16 years agoFix for 'FAIL: gdb.cp/class2.exp: p acp->c2' on spu-elf
Paul Pluzhnikov [Tue, 15 Jul 2008 19:15:28 +0000 (19:15 +0000)]
Fix for 'FAIL: gdb.cp/class2.exp: p acp->c2' on spu-elf

16 years ago * block.c (block_function): Renamed to ...
Daniel Jacobowitz [Tue, 15 Jul 2008 19:11:34 +0000 (19:11 +0000)]
* block.c (block_function): Renamed to ...
(block_linkage_function): ... this.  All callers changed.
* block.h (block_function): Renamed to ...
(block_linkage_function): ... this.

16 years ago * frame.c (frame_unwind_id): Renamed to ...
Daniel Jacobowitz [Tue, 15 Jul 2008 18:58:32 +0000 (18:58 +0000)]
* frame.c (frame_unwind_id): Renamed to ...
(frame_unwind_caller_id): ... this.  All callers updated.
(frame_pc_unwind): Renamed to ...
(frame_unwind_caller_pc): ... this.  All callers updated.
* frame.h: Document frame_unwind_caller_WHAT functions.
(frame_unwind_id): Renamed to ...
(frame_unwind_caller_id): ... this.
(frame_pc_unwind): Renamed to ...
(frame_unwind_caller_pc): ... this.
* hppa-tdep.c (hppa_find_unwind_entry_in_block): Correct comment.
* stack.c (parse_frame_specification_1): Do not rely on
frame_unwind_id.

16 years ago * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
Daniel Jacobowitz [Tue, 15 Jul 2008 18:52:17 +0000 (18:52 +0000)]
* mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.

16 years ago * frame.c (frame_sp_unwind): Delete.
Daniel Jacobowitz [Tue, 15 Jul 2008 18:50:15 +0000 (18:50 +0000)]
* frame.c (frame_sp_unwind): Delete.
(get_frame_sp): Do not use it.
* frame.h (frame_sp_unwind): Delete prototype.

16 years ago* elf-m10300.c (mn10300_elf_final_link_relocate): Correct overflow
DJ Delorie [Tue, 15 Jul 2008 18:48:07 +0000 (18:48 +0000)]
* elf-m10300.c (mn10300_elf_final_link_relocate): Correct overflow
checks for PCREL8, PCREL16, GOTPC16, GOTOFF16, PLT16, and GOT16
relocs.
(mn10300_elf_relax_section): Correct jump offset check when target
is in a different section.

16 years ago * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
Daniel Jacobowitz [Tue, 15 Jul 2008 18:45:42 +0000 (18:45 +0000)]
* ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.

16 years agoAdd missing ChangeLog entries for
H.J. Lu [Tue, 15 Jul 2008 18:44:18 +0000 (18:44 +0000)]
Add missing ChangeLog entries for

http://sourceware.org/ml/binutils-cvs/2008-05/msg00092.html

16 years ago* dwarf2-frame.c (dwarf2_frame_cache): Update comment.
Daniel Jacobowitz [Tue, 15 Jul 2008 18:40:03 +0000 (18:40 +0000)]
* dwarf2-frame.c (dwarf2_frame_cache): Update comment.

* frame.c (frame_unwind_address_in_block): Delete.
(get_frame_address_in_block): Do not use it.  Check the type
of the next frame first.
(frame_cleanup_after_sniffer): Update comment.
* frame.h (frame_unwind_address_in_block): Delete prototype.
* hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.

16 years ago* frame.c (frame_func_unwind): Delete.
Daniel Jacobowitz [Tue, 15 Jul 2008 18:32:06 +0000 (18:32 +0000)]
* frame.c (frame_func_unwind): Delete.

(get_frame_func): Do not use it.
* frame.h (frame_func_unwind): Delete prototype.
* hppa-tdep.c (hppa_frame_cache): Update comment.
* rs6000-tdep.c (rs6000_frame_cache): Update comment.

16 years ago * remote-sim.c (init_gdbsim_ops): Remove
Stan Shebs [Tue, 15 Jul 2008 18:08:27 +0000 (18:08 +0000)]
* remote-sim.c (init_gdbsim_ops): Remove
TARGET_REDEFINE_DEFAULT_OPS.

16 years ago * findvar.c (read_var_value): Remove unused variable.
Daniel Jacobowitz [Tue, 15 Jul 2008 17:53:11 +0000 (17:53 +0000)]
* findvar.c (read_var_value): Remove unused variable.