external/binutils.git
16 years ago * options.h (class General_options): Define --check-sections.
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.

16 years ago * options.h (class General_options): Define -n/--nmagic and
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.

16 years ago * cref.cc: New file.
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.

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

16 years agoUpdate for elf_link_output_extsym change
Alan Modra [Tue, 22 Jul 2008 14:15:32 +0000 (14:15 +0000)]
Update for elf_link_output_extsym change

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 ago * config/tc-mips.c (mips_ip): Reset s to argsStart.
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.

16 years ago * config/tc-bfin.c (bfin_gen_loop): Remove loop symbol.
Jie Zhang [Tue, 22 Jul 2008 08:34:16 +0000 (08:34 +0000)]
* config/tc-bfin.c (bfin_gen_loop): Remove loop symbol.

16 years ago * output.cc (Output_section::add_input_section): Don't try to
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.

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 ago2008-07-21 Craig Silverstein <csilvers@google.com>
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.

16 years ago* config/tc-h8300.c (fix_operand_size): Use the default size
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.

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 * ld-scripts/include-sections.t: Discard all sections not
Nick Clifton [Mon, 21 Jul 2008 08:38:35 +0000 (08:38 +0000)]
    * ld-scripts/include-sections.t: Discard all sections not
        explicitly requested by the rest of the linker script.
        * ld-scripts/include-1.d: Expect test to fail for AIX ports.
        Do not assume that the .text section will be marked readonly.
        * ld-scripts/include.s: Replace .section directives with just
        .text or .data.

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 ago2008-07-20 Chris Demetriou <cgd@google.com>
Chris Demetriou [Mon, 21 Jul 2008 05:55:27 +0000 (05:55 +0000)]
2008-07-20  Chris Demetriou  <cgd@google.com>

        * configure.ac (gold_cv_c_random_seed): New configured variable.
        (RANDOM_SEED_CFLAGS): New substituted variable.
        * Makefile.am (AM_CFLAGS, AM_CXXFLAGS): Add $(RANDOM_SEED_CFLAGS).
        * configure: Rebuild.
        * Makefile.in: Likewise.
        * testsuite/Makefile.in: Likewise.

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 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 ago* config/tc-m32c.h (H_TICK_HEX): Define.
DJ Delorie [Fri, 18 Jul 2008 22:25:07 +0000 (22:25 +0000)]
* config/tc-m32c.h (H_TICK_HEX): Define.
* config/tc-m32c.c (OPTION_H_TICK_HEX): Define.
(md_longopts): Add support for it.
(md_parse_option): Likewise.
* doc/as.texinfo (Overview): Add new m32c options.
* doc/c-m32c.texi (M32C-Modifiers): Likewise

* as.h: (enable_h_tick_hex): New.
* app.c (enable_h_tick_hex): New.
(LEX_IS_H): New.
(do_scrub_begin): Mark 'H' and 'h' as special if enable_h_tick_hex.
(do_scrub_chars): If enable_h_tick_hex and 'h', check for H'00
style hex constants and convert the input stream to 0x00 style.
(do_scrub_chars): If a 'X style character constant is found after
a symbol character (like you're or X'00), warn the user.

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 ago * symtab.cc (Symbol_table::add_from_object): Rewrite the case
Ian Lance Taylor [Fri, 18 Jul 2008 07:03:27 +0000 (07:03 +0000)]
* symtab.cc (Symbol_table::add_from_object): Rewrite the case
where we see NAME/NULL and NAME/VERSION  as separate symbols.
* testsuite/ver_test_main.cc (main): Call t4.
(t4, t4_2a): Define.
* testsuite/ver_test_2.cc (t4_2): Define.
* testsuite/ver_test_2.script: Put t4_2a in VER2.
* testsuite/ver_test_4.cc (t4_2a): Define.
* testsuite/ver_test_4.script: Put t4_2a in VER2.
* testsuite/ver_test.h (t4, t4_2, t4_2a): Declare.

16 years ago * dynobj.cc (Versions::add_def): If we give an error about a
Ian Lance Taylor [Fri, 18 Jul 2008 06:58:04 +0000 (06:58 +0000)]
* dynobj.cc (Versions::add_def): If we give an error about a
missing version, go ahead and create the version anyhow.

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 ago2008-07-15 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 15 Jul 2008 18:48:34 +0000 (18:48 +0000)]
2008-07-15  H.J. Lu  <hongjiu.lu@intel.com>

* objdump.c (load_debug_section): Initialize section_is_compressed
for gcc 3.4/ia64.
* readelf.c (load_debug_section): Likewise.

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.

16 years ago * infrun.c (handle_inferior_event): Tag threads as stopped
Luis Machado [Tue, 15 Jul 2008 17:25:21 +0000 (17:25 +0000)]
* infrun.c (handle_inferior_event): Tag threads as stopped
before inserting breakpoints.

16 years ago bfd/
Jie Zhang [Tue, 15 Jul 2008 13:09:47 +0000 (13:09 +0000)]
bfd/
* elf32-bfin.c (elf32_bfin_special_sections[]): New.
(elf_backend_special_sections): Define.

ld/
* emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.

16 years ago* MAINTAINERS: Added myself to section Write After Approval.
Hui Zhu [Tue, 15 Jul 2008 09:46:49 +0000 (09:46 +0000)]
* MAINTAINERS: Added myself to section Write After Approval.

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

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

16 years agoFix for PR gdb/2477
Paul Pluzhnikov [Mon, 14 Jul 2008 18:28:57 +0000 (18:28 +0000)]
Fix for PR gdb/2477

16 years ago * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
Pedro Alves [Mon, 14 Jul 2008 18:06:58 +0000 (18:06 +0000)]
* i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
(i386_dicos_push_dummy_code): New.
(i386_dicos_init_abi): Don't register i386_dicos_frame_align.
Register i386_dicos_push_dummy_code.

16 years ago * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
Markus Deuling [Mon, 14 Jul 2008 11:25:12 +0000 (11:25 +0000)]
* mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
(mips_n32n64_push_dummy_call, mips_o64_return_value)
(mips_eabi_push_dummy_call): Update call to fp_register_arg_p.

(MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
(fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
(mips_n32n64_fp_arg_chunk_p): Update caller.

(mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
(mips_n32n64_push_dummy_call): Update caller.

(MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
current_gdbarch.
(mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
(mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.

(MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
current_gdbarch.
(mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
(mips_o64_push_dummy_call): Update caller.

(MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
(fp_register_arg_p, mips_dump_tdep): Update caller.

(set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
(mips16_scan_prologue, mips32_scan_prologue): Update caller.

(reset_saved_regs): Make static.  Add gdbarch as parameter.  Replace
current_gdbarch.
(mips32_scan_prologue): Update caller.

(heuristic_proc_start): Add gdbarch as parameter. Replace
current_gdbarch.
(mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.

* mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
(mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
the current architecture. Update call to getregs_supplies.
(getregs_supplies): Add gdbarch as parameter and replace
current_gdbarch.

* mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
NBSD_MIPS_JB_ELEMENT_SIZE.
(NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
replace current_gdbarch.

* remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
current_gdbarch.
(mips_fetch_registers, mips_store_registers): Update call
to mips_map_regno.
(mips_load): Use get_regcache_arch to get at the current_architecture
and replace current_gdbarch.

16 years ago * gas/bfin/{bit2.s, cache2.s, control_code2.s, event2.s,
Jie Zhang [Mon, 14 Jul 2008 03:54:27 +0000 (03:54 +0000)]
* gas/bfin/{bit2.s, cache2.s, control_code2.s, event2.s,
logical2.s, move2.s, parallel.s, parallel2.s, parallel3.s,
parallel4.s, shift2.s, stack2.s, video2.s}: Remove DOS line
endings.

16 years agoMention "PR ld/6741" in ChangeLog.
H.J. Lu [Mon, 14 Jul 2008 01:22:23 +0000 (01:22 +0000)]
Mention "PR ld/6741" in ChangeLog.

16 years agoMention "PR binutils/6743" in ChangeLog.
H.J. Lu [Mon, 14 Jul 2008 01:20:48 +0000 (01:20 +0000)]
Mention "PR binutils/6743" in ChangeLog.

16 years ago2008-07-13 Craig Silverstein <csilvers@google.com>
Craig Silverstein [Mon, 14 Jul 2008 00:10:09 +0000 (00:10 +0000)]
2008-07-13  Craig Silverstein  <csilvers@google.com>

* dwarf2.c (struct dwarf2_debug): New variable info_ptr_memory.
(find_line): Use info_ptr_memory instead of sec_info_ptr.
(_bfd_dwarf2_cleanup_debug_info): Likewise.

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

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

16 years ago * thread.c (restore_selected_frame): On fail to restore, select
Pedro Alves [Sun, 13 Jul 2008 19:25:58 +0000 (19:25 +0000)]
* thread.c (restore_selected_frame): On fail to restore, select
the innermost frame, and don't crash when warning the user.

16 years ago * symtab.c (expand_line_sal): Fix a memory leak.
Joel Brobecker [Sun, 13 Jul 2008 16:58:20 +0000 (16:58 +0000)]
  * symtab.c (expand_line_sal): Fix a memory leak.

16 years ago * gdb.base/randomize.exp: Catch non-Linux targets as untested.
Jan Kratochvil [Sun, 13 Jul 2008 14:56:02 +0000 (14:56 +0000)]
* gdb.base/randomize.exp: Catch non-Linux targets as untested.

16 years ago * utils.c (struct continuation): Define as inheriting struct
Pedro Alves [Sun, 13 Jul 2008 11:28:31 +0000 (11:28 +0000)]
* utils.c (struct continuation): Define as inheriting struct
cleanup.
(add_continuation, do_all_continuations)
(discard_all_continuations, add_intermediate_continuation)
(do_all_intermediate_continuations)
(discard_all_intermediate_continuations): Adjust.

16 years ago Skip varobj in running threads.
Vladimir Prus [Sun, 13 Jul 2008 05:31:44 +0000 (05:31 +0000)]
Skip varobj in running threads.
        * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
        thread is not stopped, skip the varobj.
        * Makefile.in: Update dependencies.

16 years ago Enable all MI commands while inferiour is running
Vladimir Prus [Sun, 13 Jul 2008 04:13:50 +0000 (04:13 +0000)]
Enable all MI commands while inferiour is running
        * mi/mi-main.c (mi_cmd_execute): Don't check if
        inferiour is executing.

16 years ago Allow all CLI command even if target is executing.
Vladimir Prus [Sun, 13 Jul 2008 04:09:47 +0000 (04:09 +0000)]
Allow all CLI command even if target is executing.
        * gdb/top.c (execute_command_1): Don't check if the inferiour
        is running.

16 years ago * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
Vladimir Prus [Sun, 13 Jul 2008 03:59:28 +0000 (03:59 +0000)]
* mi/mi-main.c (mi_cmd_execute): Remove unused variable.
Fix printing of frame, when frame is wrong.

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

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

16 years ago * spu-tdep.c (spu_frame_unwind_cache): Do not error if
Ulrich Weigand [Sat, 12 Jul 2008 22:42:52 +0000 (22:42 +0000)]
* spu-tdep.c (spu_frame_unwind_cache): Do not error if
backchain is unreadable.

16 years ago * linux-low.c (handle_extended_wait): Do not use "status"
Ulrich Weigand [Sat, 12 Jul 2008 22:22:42 +0000 (22:22 +0000)]
* linux-low.c (handle_extended_wait): Do not use "status"
variable uninitialized.

16 years ago * spu-linux-nat.c: Include "gdbthread.h".
Ulrich Weigand [Sat, 12 Jul 2008 22:16:34 +0000 (22:16 +0000)]
* spu-linux-nat.c: Include "gdbthread.h".
(spu_child_post_startup_inferior): Register main thread.
(spu_child_post_attach): Likewise.
* Makefile.in (spu-linux-nat.o): Update dependencies.

16 years ago2008-07-12 Craig Silverstein <csilvers@google.com>
Craig Silverstein [Sat, 12 Jul 2008 21:36:53 +0000 (21:36 +0000)]
2008-07-12  Craig Silverstein  <csilvers@google.com>

        * configure.in: Check for, and include, libz.a if it is
          present.
        * configure: Regenerate.
        * config.in: Regenerate.

16 years ago2008-07-12 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Sat, 12 Jul 2008 19:25:42 +0000 (19:25 +0000)]
2008-07-12  Pedro Alves  <pedro@codesourcery.com>

Rewrite continuations internals on top of cleanups and plug
continuation arguments leaks.

* defs.h (struct continuation): Make it opaque.
(add_continuation, add_intermediate_continuation): Drop the int
argument of the continuation hook argument.  Add
continuation_free_args argument.
(do_all_continuations, do_all_intermediate_continuations): Drop
the error_p argument.

* utils.c (add_continuation): Drop the int argument of the
continuation hook argument.  Add continuation_free_args argument.
Reimplement on top of cleanups.
(do_all_continuations): Drop error argument.  Reimplement on top
of cleanups.
(discard_all_continuations): Reimplement on top of cleanups.
(add_intermediate_continuation): Drop the int argument of the
continuation hook argument.  Add continuation_free_args argument.
Reimplement on top of cleanups.
(do_all_intermediate_continuations): Drop error argument.
Reimplement on top of cleanups.
(discard_all_intermediate_continuations): Reimplement on top of
cleanups.

* breakpoint.c (until_break_command_continuation): Drop error
argument.  Add xfree as continuation argument deleter.

* inf-loop.c (inferior_event_handler): On error, discard all
continuations.  Adjust to new do_all_intermediate_continuations
and do_all_continuations interfaces.

* infcmd.c (step_1_continuation): Drop error_p argument.  Adjust.
Pass xfree as continuation argument deleter.
(finish_command_continuation): Drop error_p argument.  Adjust.
(finish_command_continuation_free_arg): New.
(finish_command): Pass finish_command_continuation_free_arg as
continuation argument deleter.  Adjust to new do_all_continuations
interfaces.
(attach_command_continuation): Drop error_p argument.
(attach_command_continuation_free_args): New.
(attach_command): Pass attach_command_continuation_free_args as
continuation argument deleter.

* interps.c (interp_set): Adjust to new do_all_continuations
interfaces.

* event-top.c (stdin_event_handler): In error, also discard the
intermediate continuations.

16 years ago Replace struct continuation_args by void* and per command structs.
Pedro Alves [Sat, 12 Jul 2008 19:07:38 +0000 (19:07 +0000)]
Replace struct continuation_args by void* and per command structs.

* top.c (execute_command): Remove unused arg1 and arg2 locals.

* breakpoint.c (struct until_break_command_continuation_args):
New.
(until_break_command_continuation): Take a void* instead of a
continuations_arg.  Adjust.
(until_break_command): Adjust to use struct
until_break_command_continuation_args instead of struct
continuation_arg.

* infcmd.c (struct step_1_continuation_args): New.
(step_1_continuation): Take a void* instead of a
continuations_arg.  Adjust to use struct step_1_continuation_args.
(step_once): Adjust to use struct step_1_continuation_args.

(struct finish_command_continuation_args): New.
(finish_command_continuation): Take a void* instead of a
continuations_arg.  Adjust to use struct
finish_command_continuation_args.
(finish_command): Adjust to use struct
finish_command_continuation_args.
(struct attach_command_continuation_args): New.
(attach_command_continuation): Take a void* instead of a
continuations_arg.  Adjust to use struct
attach_command_continuation_args.
(attach_command): Adjust to use struct
attach_command_continuation_args.

* defs.h (struct continuation_arg): Delete.
(struct continuation): Replace the struct continuation_arg*
parameter of continuation_hook by a void*.  Replace "arg_list"
member by a new "args" member with void* type.
(add_continuation, add_intermediate_continuation): Replace struct
continuation_arg type usages by void* usages.

* utils.c (add_continuation, do_all_continuations)
(add_intermediate_continuation)
(do_all_intermediate_continuations): Replace struct
continuation_arg type usages by void* usages.  Pass "args" instead
of "arg_list".

16 years ago2008-07-12 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Sat, 12 Jul 2008 18:39:10 +0000 (18:39 +0000)]
2008-07-12  Pedro Alves  <pedro@codesourcery.com>

* infrun.c (struct thread_stepping_state): Delete sal member.
(init_thread_stepping_state): Add local sal.  Use it instead of
tss->sal.
(handle_inferior_event): New local stop_pc_sal.  Use it instead of
tss->sal.
(step_into_function): Add local stop_func_sal.  Use it instead of
tss->sal.

16 years ago Implement -exec-continue/-exec-interrupt --all.
Vladimir Prus [Sat, 12 Jul 2008 17:10:59 +0000 (17:10 +0000)]
Implement -exec-continue/-exec-interrupt --all.
        * infcmd.c (continue_1): New, extracted from
        (continue_command): ...here.
        (interrupt_target_1): New, extracted from
        (interrupt_target_command): ...here.
        * inferior.h (continue_1, interrupt_target_1): New.
        * mi/mi-main.c (mi_cmd_exec_continue)
        (mi_cmd_exec_interrupt): Handle --all.

16 years ago Implement --thread and --frame.
Vladimir Prus [Sat, 12 Jul 2008 16:37:57 +0000 (16:37 +0000)]
Implement --thread and --frame.
* gdbthread.h (find_thread_id): Declare.
        * thread.c (find_thread_id): Make non-static.
        * mi/mi-main.c (mi_cmd_execute): Switch to the right
        thread and frame, if necessary.
        * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
        * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.

16 years ago * infrun.c (resume): Discard cleanups on early exit path.
Vladimir Prus [Sat, 12 Jul 2008 13:42:54 +0000 (13:42 +0000)]
* infrun.c (resume): Discard cleanups on early exit path.