external/binutils.git
14 years ago2010-08-04 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 4 Aug 2010 07:50:40 +0000 (07:50 +0000)]
2010-08-04  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (_bfd_vms_slurp_egsd): Use the canonical absolute
section for any absolute section.  Remove some debugging code.

14 years ago * configure.tgt (m32c): Set endian=little.
Alan Modra [Wed, 4 Aug 2010 04:21:06 +0000 (04:21 +0000)]
* configure.tgt (m32c): Set endian=little.
* config/tc-m32c.h (TARGET_BYTES_BIG_ENDIAN): Define as 0.
* config/tc-m32c.c (md_number_to_chars): Revert last change.

14 years ago* elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes.
DJ Delorie [Wed, 4 Aug 2010 03:42:45 +0000 (03:42 +0000)]
* elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes.

14 years ago*** empty log message ***
gdbadmin [Wed, 4 Aug 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Wed, 4 Aug 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years agoAdd missing entry to previous checkin.
Doug Evans [Tue, 3 Aug 2010 22:39:06 +0000 (22:39 +0000)]
Add missing entry to previous checkin.
(bfd_lookup_symbol): Remove unnecessary forward decl.

14 years ago * breakpoint.c (bpdisp_text): Constify bpdisps.
Doug Evans [Tue, 3 Aug 2010 22:35:41 +0000 (22:35 +0000)]
* breakpoint.c (bpdisp_text): Constify bpdisps.
* solib-svr4.c (solib_break_names): Constify.
(bkpt_names, main_name_list): Constify.
(match_main): Constify soname arg.
(bfd_lookup_symbol): Constify symname arg.
(enable_break): Constify bkpt_namep.
* symtab.c (search_symbols): Constify types, types2, types3, types4.
(symtab_symbol_info): Constify classnames.

14 years ago * merge.cc (Output_merge_string::do_add_input_section): Count strings
Cary Coutant [Tue, 3 Aug 2010 20:38:09 +0000 (20:38 +0000)]
* merge.cc (Output_merge_string::do_add_input_section): Count strings
to reserve space in merged_strings vector. Keep total input size
for stats.
(Output_merge_string::do_print_merge_stats): Print total input size.
* merge.h (Output_merge_string): Add input_size_ field.
* stringpool.cc (Stringpool_template::string_length): Move
implementations out of Stringpool_template class and place in
stringpool.h.
* stringpool.h (string_length): Move out of Stringpool_template.

14 years ago2010-08-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 3 Aug 2010 15:18:51 +0000 (15:18 +0000)]
2010-08-03  Tristan Gingold  <gingold@adacore.com>

* vms-misc.c (vms_convert_to_var): Make it static.
(_bfd_vms_convert_to_var_unix_filename): Make it public.

14 years ago PR 11712
Ian Lance Taylor [Tue, 3 Aug 2010 15:05:05 +0000 (15:05 +0000)]
PR 11712
* layout.cc (relaxation_loop_body): If address of load segment is
set, adjust address to include headers if possible.

14 years ago * version.cc (version_string): Bump to 1.10.
Ian Lance Taylor [Tue, 3 Aug 2010 14:29:27 +0000 (14:29 +0000)]
* version.cc (version_string): Bump to 1.10.

14 years agobfd/
Tristan Gingold [Tue, 3 Aug 2010 14:29:00 +0000 (14:29 +0000)]
bfd/
2010-08-03  Tristan Gingold  <gingold@adacore.com>

* makefile.vms (OBJS): Update list.

gas/
Index: gas/ChangeLog
2010-08-03  Tristan Gingold  <gingold@adacore.com>

* makefile.vms (OBJS): Add Add compress-debug.c.

14 years ago2010-08-03 Ian Lance Taylor <iant@google.com>
Ian Lance Taylor [Tue, 3 Aug 2010 14:07:13 +0000 (14:07 +0000)]
2010-08-03  Ian Lance Taylor  <iant@google.com>

PR 11805
* layout.h (enum Output_section_order): Define.
(class Layout): Update declarations.
* layout.cc (Layout::get_output_section): Add order parameter.
Remove is_interp, is_dynamic_linker_section, is_last_relro, and
is_first_non_relro parameters.  Change all callers.
(Layout::choose_output_section): Likewise.
(Layout::add_output_section_data): Likewise.
(Layout::make_output_section): Likewise.  Set order.
(Layout::default_section_order): New function.
(Layout::layout_eh_frame): Call add_output_section_to_nonload.
* output.cc (Output_section::Output_section): Initialize order_.
Don't initialize deleted fields.
(Output_segment::Output_segment): Don't initialize deleted
fields.
(Output_segment::add_output_section_to_load): New function
replacing add_output_section.  Change all callers to call this or
add_output_section_to_nonload.
(Output_segment::add_output_section_to_nonload): New function.
(Output_segment::remove_output_section): Rewrite.
(Output_segment::add_initial_output_data): Likewise.
(Output_segment::has_any_data_sections): Likewise.
(Output_segment::is_first_section_relro): Likewise.
(Output_segment::maximum_alignment): Likewise.
(Output_segment::has_dynamic_reloc): New function replacing
dynamic_reloc_count.  Change all callers.
(Output_segment::has_dynamic_reloc_list): New function replacing
dynamic_reloc_count_list.  Change all callers.
(Output_segment::set_section_addresses): Rewrite.
(Output_segment::set_offset): Rewrite.
(Output_segment::find_first_and_last_list): Remove.
(Output_segment::set_tls_offsets): Rewrite.
(Output_segment::first_section_load_address): Likewise.
(Output_segment::output_section_count): Likewise.
(Output_segment::section_with_lowest_load_address): Likewise.
(Output_segment::write_section_headers): Likewise.
(Output_segment::print_sections_to_map): Likewise.
* output.h (class Output_data): Remove dynamic_reloc_count_
field.  Add has_dynamic_reloc_ field.  Make bools into bitfields.
(Output_data::add_dynamic_reloc): Rewrite.
(Output_data::has_dynamic_reloc): New function.
(Output_data::dynamic_reloc_count): Remove.
(class Output_section): Add order_ field.  Remvoe is_relro_local_,
is_last_relro_, is_first_non_relro_, is_interp_,
is_dynamic_linker_section_ fields.  Add order and set_order
functions.  Remove is_relro_local, set_is_relro_local,
is_last_relro, set_is_last_relro, is_first_non_relro,
set_is_first_non_relro functions, is_interp, set_is_interp,
is_dynamic_linker_section, and set_is_dynamic_linker_section
functions.
(class Output_segment): Change Output_data_list from std::list to
std:;vector.  Add output_lists_ field.  Remove output_data_ and
output_bss_ fields.  Update declarations.

14 years ago * config/tc-d10v.h (TARGET_BYTES_BIG_ENDIAN): Define as 1.
Alan Modra [Tue, 3 Aug 2010 10:53:10 +0000 (10:53 +0000)]
* config/tc-d10v.h (TARGET_BYTES_BIG_ENDIAN): Define as 1.
* config/tc-m32c.c (md_number_to_chars): Call bigendian
form of number_to_chars, not littleendian.

14 years ago * gas/all/octa.s, * gas/all/octa.d: New test.
Alan Modra [Tue, 3 Aug 2010 10:30:52 +0000 (10:30 +0000)]
* gas/all/octa.s, * gas/all/octa.d: New test.
* gas/all/gas.exp: Run octa.
* gas/elf/data-1.s, * gas/elf/data-1.d: Delete.
* gas/elf/elf.exp: Don't run data-1.

14 years ago2010-08-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 3 Aug 2010 10:24:18 +0000 (10:24 +0000)]
2010-08-03  Tristan Gingold  <gingold@adacore.com>

* dwarf.c (display_debug_lines): Mark file argument unused.
Do not try to load .debug_info section.

14 years ago2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Tue, 3 Aug 2010 09:38:16 +0000 (09:38 +0000)]
2010-08-03  Phil Muldoon  <pmuldoon@redhat.com>

* NEWS: Document Python value inferior function calls.

14 years ago2010-08-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 3 Aug 2010 09:26:30 +0000 (09:26 +0000)]
2010-08-03  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS
nor SEC_RELOC for empty sections.

14 years ago2010-08-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 3 Aug 2010 09:21:09 +0000 (09:21 +0000)]
2010-08-03  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (evax_section_flags): Fix flags for absolute
section.  Remove useless parenthesis.

14 years ago2010-08-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 3 Aug 2010 08:49:01 +0000 (08:49 +0000)]
2010-08-03  Tristan Gingold  <gingold@adacore.com>

* vms-lib.c (vms_lib_bread_raw): Change type of BUF argument.
(vms_lib_bread, vms_lib_bopen): Adjust.

14 years ago * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
Doug Evans [Tue, 3 Aug 2010 00:51:29 +0000 (00:51 +0000)]
* dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.

14 years ago*** empty log message ***
gdbadmin [Tue, 3 Aug 2010 00:00:07 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Tue, 3 Aug 2010 00:00:06 +0000 (00:00 +0000)]
daily update

14 years ago * gdb.cp/namespace.exp: When "print ::cOtherFileClassVar" fails
Doug Evans [Mon, 2 Aug 2010 23:41:19 +0000 (23:41 +0000)]
* gdb.cp/namespace.exp: When "print ::cOtherFileClassVar" fails
because of an older gcc, change test2
"print ::C::OtherFileClass::cOtherFileClassVar" from unresolved
to unsupported.

14 years agoRun data-1 only for i*86, x86_64 and ia64.
H.J. Lu [Mon, 2 Aug 2010 22:05:23 +0000 (22:05 +0000)]
Run data-1 only for i*86, x86_64 and ia64.

2010-08-02  H.J. Lu  <hongjiu.lu@intel.com>

* elf/elf.exp: Run data-1 only for i*86, x86_64 and ia64.

14 years ago * arm.cc (Target_arm::gc_process_relocs): Use typename.
Ian Lance Taylor [Mon, 2 Aug 2010 20:44:31 +0000 (20:44 +0000)]
* arm.cc (Target_arm::gc_process_relocs): Use typename.
* powerpc.cc (Target_powerpc::gc_process_relocs): Likewise.
* sparc.cc (Target_sparc::gc_process_relocs): Likewise.

14 years agoAdd a testcase for PR gas/11867.
H.J. Lu [Mon, 2 Aug 2010 20:10:45 +0000 (20:10 +0000)]
Add a testcase for PR gas/11867.

2010-08-02  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/11867
* gas/elf/data-1.d: New.
* gas/elf/data-1.s: Likewise.

* elf/elf.exp: Run data-1.

14 years ago * gdb.base/break-always.exp: Do not expect full paths to file
Kazu Hirata [Mon, 2 Aug 2010 15:07:14 +0000 (15:07 +0000)]
* gdb.base/break-always.exp: Do not expect full paths to file
names.
* gdb.base/commands.exp: Likewise.

14 years ago * config/tc-d30v.c (d30v_cons_align): Don't align constants
Alan Modra [Mon, 2 Aug 2010 13:53:29 +0000 (13:53 +0000)]
* config/tc-d30v.c (d30v_cons_align): Don't align constants
in debug sections.

14 years ago * readelf.c (apply_relocations): D30V is really REL.
Alan Modra [Mon, 2 Aug 2010 13:52:49 +0000 (13:52 +0000)]
* readelf.c (apply_relocations): D30V is really REL.

14 years ago PR 11855
Ian Lance Taylor [Mon, 2 Aug 2010 13:34:33 +0000 (13:34 +0000)]
PR 11855
* script.cc (Script_options::Script_options): Initialize
symbol_definitions_ and symbol_references_.
(Script_options::add_symbol_assignment): Update
symbol_definitions_ and symbol_references_.
(Script_options::add_symbol_reference): New function.
(script_symbol): New function.
* script.h (class Script_options): Add symbol_definitions_ and
symbol_references_ fields.
(Script_options::referenced_const_iterator): New type.
(Script_options::referenced_begin): New function.
(Script_options::referenced_end): New function.
(Script_options::is_referenced): New function.
(Script_options::any_unreferenced): New function.
* script-c.h (script_symbol): Declare.
* yyscript.y (exp): Call script_symbol.
* symtab.cc: Include "script.h".
(Symbol_table::gc_mark_undef_symbols): Add layout parameter.
Change all callers.  Check symbols referenced by scripts.
(Symbol_table::add_undefined_symbols_from_command_line): Add
layout parameter.  Change all callers.
(Symbol_table::do_add_undefined_symbols_from_command_line):
Likewise.  Break out loop body.  Check symbols referenced by
scripts.
(Symbol_table::add_undefined_symbol_from_command_line): New
function broken out of
do_add_undefined_symbols_from_command_line.
* symtab.h (class Symbol_table): Update declarations.
* archive.cc: Include "layout.h".
(Archive::should_include_member): Add layout parameter.  Change
all callers.  Check for symbol mentioned in expression.
* archive.h (class Archive): Update declaration.
* object.cc (Sized_relobj::do_should_include_member): Add layout
parameter.
* object.h (Object::should_include_member): Add layout parameter.
Change all callers.
(Object::do_should_include_member): Add layout parameter.
(class Sized_relobj): Update declaration.
* dynobj.cc (Sized_dynobj::do_should_include_member): Add layout
parameter.
* dynobj.h (class Sized_dynobj): Update declaration.
* plugin.cc (Sized_pluginobj::do_should_include_member): Add
layout parameter.
* plugin.h (class Sized_pluginobj): Update declaration.

14 years ago PR gas/11867
Alan Modra [Mon, 2 Aug 2010 13:19:44 +0000 (13:19 +0000)]
PR gas/11867
* expr.c (operand <'-' and '~'>): Widen bignums.
(operand <'!'>): Correct bignum result and convert to O_constant.
* read.c (emit_expr): Don't assert on .byte bignum.  Don't display
bignum truncated warning for sign extended bignums.

14 years ago PR 11866
Ian Lance Taylor [Mon, 2 Aug 2010 11:59:11 +0000 (11:59 +0000)]
PR 11866
* output.cc (Output_segment::set_offset): Search for the first and
last sections rather than assuming that the list is in order.
(Output_segment::find_first_and_last_list): New function.
* output.h (class Output_segment): Update declarations.
* testsuite/Makefile.am (check_PROGRAMS): Add relro_strip_test.
(relro_strip_test_SOURCES): New variable.
(relro_strip_test_DEPENDENCIES): New variable.
(relro_strip_test_LDFLAGS): New variable.
(relro_strip_test_LDADD): New variable.
(relro_strip_test.so): New target.

14 years ago PR 11866
Alan Modra [Mon, 2 Aug 2010 10:08:02 +0000 (10:08 +0000)]
PR 11866
* elf.c (assign_file_positions_for_load_sections): Use p_vaddr to
calculate off_adjust rather than first section vma.

14 years ago * i386.cc (class Target_i386): Add got_tlsdesc_ field.
Ian Lance Taylor [Mon, 2 Aug 2010 10:07:03 +0000 (10:07 +0000)]
* i386.cc (class Target_i386): Add got_tlsdesc_ field.
(Target_i386::Target_i386):: Initialize got_tlsdesc_.
(Target_i386::got_tlsdesc_section): New function.
(Target_i386::got_section): Create space for GOT entries for
TLSDESC relocations.
(Target_i386::Scan::local): Use TLSDESC GOT for unoptimized
R_386_TLS_GOTDESC.
(Target_i386::Scan::global): Likewise.
(Target_i386::Relocate::relocate_tls): Adjust GOT offset when
using TLSDESC GOT.
* x86_64.cc (class Target_x86_64): Add got_tlsdesc_ field.
(Target_x86_64::Target_x86_64):: Initialize got_tlsdesc_.
(Target_x86_64::got_tlsdesc_section): New function.
(Target_x86_64::got_section): Create space for GOT entries for
TLSDESC relocations.
(Target_x86_64::Scan::local): Use TLSDESC GOT for unoptimized
R_386_TLS_GOTDESC.
(Target_x86_64::Scan::global): Likewise.
(Target_x86_64::Relocate::relocate_tls): Adjust GOT offset when
using TLSDESC GOT.

14 years ago2010-08-02 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 2 Aug 2010 08:48:57 +0000 (08:48 +0000)]
2010-08-02  Tristan Gingold  <gingold@adacore.com>

* lib/gas-defs.exp (get_standard_section_names): New function.
(run_dump_tests): Document the new behavior for objdump,
document to new section-subst option.  Automatically perform
substitutions for objdump.
(objdump_finish): Add REF_SUBST argument.
(run_list_test): Adjust call of regexp_diff.
(run_list_test_stdin): Ditto.
* gas/all/gas.exp (test_cond): Adjust call of regexp_diff.
* gas/symver/symver.exp (run_error_test): Ditto.
* gas/mt/relocs.exp (regexp_test): Ditto.
* gas/mep/complex-relocs.exp (regexp_test): Ditto.
* gas/m68k/all.exp: Ditto.
* gas/elf/elf.exp (run_elf_list_test): Ditto.
* gas/rx/rx-asm-good.d: Set section-subst to no.

14 years ago * config/tc-v850.c (md_assemble): Always pass format string to
Alan Modra [Mon, 2 Aug 2010 08:43:18 +0000 (08:43 +0000)]
* config/tc-v850.c (md_assemble): Always pass format string to
as_warn.
(md_apply_fix): Similarly for as_warn_where.

14 years ago * gas/i386/i386.exp (dw2-compress-1): Only run on ELF targets.
Alan Modra [Mon, 2 Aug 2010 08:38:45 +0000 (08:38 +0000)]
* gas/i386/i386.exp (dw2-compress-1): Only run on ELF targets.
(dw2-compress-2, x86-64-dw2-compress-2): Remove unnecessary linux
target test.

14 years agoUpdate for ppc_fix_adjustable change.
Alan Modra [Mon, 2 Aug 2010 08:22:53 +0000 (08:22 +0000)]
Update for ppc_fix_adjustable change.

14 years ago * testsuite/final_layout.sh: Use dc to convert from hex to
Ian Lance Taylor [Mon, 2 Aug 2010 07:41:04 +0000 (07:41 +0000)]
* testsuite/final_layout.sh: Use dc to convert from hex to
decimal.

14 years ago*** empty log message ***
gdbadmin [Mon, 2 Aug 2010 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Mon, 2 Aug 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Sun, 1 Aug 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sun, 1 Aug 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Sat, 31 Jul 2010 15:34:41 +0000 (15:34 +0000)]
2010-07-31  Paul Pluzhnikov  <ppluzhnikov@google.com>

       * linux-thread-db.c (libthread_db_debug): New variable.
       (thread_db_find_new_threads_silently): Control verbosity with it.
       (try_thread_db_load_1, try_thread_db_load): Likewise.
       (find_new_threads_once): Likewise.
       (_initialize_thread_db): Set/show it.

doc/ChangeLog
2010-07-31  Paul Pluzhnikov  <ppluzhnikov@google.com>

       * gdb.texinfo (Threads): Document 'debug libthread-db'.

14 years ago * Makefile.in (signals_h): New.
Pedro Alves [Sat, 31 Jul 2010 07:58:48 +0000 (07:58 +0000)]
* Makefile.in (signals_h): New.
(server_h): Depend on it.
(server.o): Don't depend on $(signals_def).
(signals.o): Depend on $(signals_def).

14 years agogdb/
Jan Kratochvil [Sat, 31 Jul 2010 04:17:44 +0000 (04:17 +0000)]
gdb/
* common/signals.c (signals): Move the content to signals.def.
Include it.  Remove the INDENT comments.

gdb/gdbserver/
* Makefile.in (signals_def): New.
(server_h): Append include/gdb/signals.h and signals_def.
(server.o): Append signals_def.

include/gdb/
* signals.h (enum target_signal): Move the content to signals.def.
Include it.
* signals.def: New file.

14 years agodaily update
Alan Modra [Sat, 31 Jul 2010 00:00:06 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Sat, 31 Jul 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agogdb
Tom Tromey [Fri, 30 Jul 2010 20:46:34 +0000 (20:46 +0000)]
gdb
* Makefile.in (install-only): Install gdb-add-index.
* gdb-add-index.sh: New file.
gdb/doc
* gdb.texinfo (Index Files): Mention gdb-add-index.

14 years ago * gdb.cp/temargs.exp: For new tests that require newer gccs,
Doug Evans [Fri, 30 Jul 2010 20:12:00 +0000 (20:12 +0000)]
* gdb.cp/temargs.exp: For new tests that require newer gccs,
xfail them when run with older gccs.

14 years ago * lib/gdb.exp (build_executable): Forward "c++" option to
Doug Evans [Fri, 30 Jul 2010 19:59:42 +0000 (19:59 +0000)]
* lib/gdb.exp (build_executable): Forward "c++" option to
get_compiler_info.

14 years agogdb/
Cheng Renquan [Fri, 30 Jul 2010 19:11:27 +0000 (19:11 +0000)]
gdb/
* MAINTAINERS: Add myself for write after approval privileges.

14 years ago * gdb.python/py-type.exp (test_template): Mark as xfail tests
Doug Evans [Fri, 30 Jul 2010 18:46:27 +0000 (18:46 +0000)]
* gdb.python/py-type.exp (test_template): Mark as xfail tests
"python print ttype.template_argument(1)" and
"python print isinstance(ttype.template_argument(1), gdb.Value)"
if using gcc 4.4 or earlier.

14 years ago * gdb.base/valgrind-db-attach.exp: Use unique test name for
Doug Evans [Fri, 30 Jul 2010 17:28:07 +0000 (17:28 +0000)]
* gdb.base/valgrind-db-attach.exp: Use unique test name for
attach-to-debugger handling.

14 years agoAdd ATTRIBUTE_UNUSED to info in compute_bucket_count.
H.J. Lu [Fri, 30 Jul 2010 16:29:58 +0000 (16:29 +0000)]
Add ATTRIBUTE_UNUSED to info in compute_bucket_count.

2010-07-30  H.J. Lu  <hongjiu.lu@intel.com>

* elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info.

14 years agogdb/
Jan Kratochvil [Fri, 30 Jul 2010 16:04:30 +0000 (16:04 +0000)]
gdb/
* symfile.c (addr_section_name): New function.
(addrs_section_compar): Use it.
(addr_info_make_relative): Use it.  Move variable sect_name into a more
inner block.  Make ".dynbss" and ".sdynbss" checks more strict.

gdb/testsuite/
* gdb.base/prelink-lib.c (copyreloc): New initialized variable.
* gdb.base/prelink.c (copyreloc, bssvar, bssvarp): New variables.
(main): Use copyreloc.
* gdb.base/prelink.exp (split debug of executable)
(.dynbss vs. .bss address shift): New tests.

14 years ago * configure: Rebuild.
Tom Tromey [Fri, 30 Jul 2010 15:59:41 +0000 (15:59 +0000)]
* configure: Rebuild.
* configure.ac: Add missing case for Python 2.7.

14 years ago2010-07-30 Hui Zhu <teawater@gmail.com>
Hui Zhu [Fri, 30 Jul 2010 14:32:02 +0000 (14:32 +0000)]
2010-07-30  Hui Zhu  <teawater@gmail.com>

* gdb.texinfo (Inferiors and Programs): Update the introduce of
"detach inferior" and "kill inferior".

14 years agoAdd moxie-rtems support
Anthony Green [Fri, 30 Jul 2010 07:32:18 +0000 (07:32 +0000)]
Add moxie-rtems support

14 years ago*** empty log message ***
gdbadmin [Fri, 30 Jul 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Fri, 30 Jul 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago * gdb.threads/pthreads.exp (check_backtraces): Consume $gdb_prompt
Pedro Alves [Thu, 29 Jul 2010 23:19:46 +0000 (23:19 +0000)]
* gdb.threads/pthreads.exp (check_backtraces): Consume $gdb_prompt
in gdb_test_multiple.

14 years agoReformat config/tc-i386-intel.c.
H.J. Lu [Thu, 29 Jul 2010 19:23:38 +0000 (19:23 +0000)]
Reformat config/tc-i386-intel.c.

2010-07-29  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386-intel.c: Reformat.

14 years ago * arm.cc (Target_arm<big_endian>::gc_process_relocs): Add template
Sriraman Tallam [Thu, 29 Jul 2010 18:57:28 +0000 (18:57 +0000)]
* arm.cc (Target_arm<big_endian>::gc_process_relocs): Add template
paramter to the call to gold::gc_process_relocs.
* i386.cc (Target_i386<big_endian>::gc_process_relocs): Add template
paramter to the call to gold::gc_process_relocs.
* x86_64.cc (Target_x86_64<big_endian>::gc_process_relocs): Add template
parameter to the call to gold::gc_process_relocs.
* powerpc.cc (Target_powerpc<big_endian>::gc_process_relocs): Add
template parameter to the call to gold::gc_process_relocs.
* sparc.cc (Target_sparc<big_endian>::gc_process_relocs): Add template
paramter to the call to gold::gc_process_relocs.
* gc.h (get_embedded_addend_size): New function.
(gc_process_relocs): Save the size of the reloc for use by ICF.
* icf.cc (get_section_contents): Get the addend from the text section
for SHT_REL relocation sections.
* icf.h (Icf::Reloc_addend_size_info): New typedef.
(Icf::Reloc_info): Add new member reloc_addend_size_info.
* int_encoding.h (read_from_pointer): New overloaded function.
* testsuite/Makefile.am (icf_sht_rel_addend_test): New test.
* testsuite/icf_sht_rel_addend_test.sh: New file.
* testsuite/icf_sht_rel_addend_test_1.cc: New file.
* testsuite/icf_sht_rel_addend_test_2.cc: New file.

14 years ago[include/opcode]
DJ Delorie [Thu, 29 Jul 2010 18:41:28 +0000 (18:41 +0000)]
[include/opcode]

* rx.h (RX_Operand_Type): Add TwoReg.
(RX_Opcode_ID): Remove ediv and ediv2.

[opcodes]

* rx-decode.opc (SRR): New.
(rx_decode_opcode): Use it for movbi and movbir.  Decode NOP2 (mov
r0,r0) and NOP3 (max r0,r0) special cases.
* rx-decode.c: Regenerate.

[sim/rx]

* rx.c (decode_cache_base): New.
(id_names): Remove ediv and edivu.
(optype_names): Add TwoReg.
(maybe_get_mem_page): New.
(rx_get_byte): Call it.
(get_op): Add TwoReg support.
(put_op): Likewise.
(PD, PS, PS2, GD, GS, GS2, DSZ, SSZ, S2SZ, US1, US2, OM): "opcode"
is a pointer now.
(DO_RETURN): New.  We use longjmp to return an exception result.
(decode_opcode): Make opcode a pointer to the decode cache.  Save
decoded opcode information and re-use.  Call DO_RETURN instead of
return throughout.  Remove ediv and edivu.
* mem.c (ptdc): New.  Adds decode cache.
(rx_mem_ptr): Support it.
(rx_mem_decode_cache): New.
* mem.h (enum mem_ptr_action): add MPA_DECODE_CACHE.
(rx_mem_decode_cache): Declare.
* gdb-if.c (sim_resume): Add decode_opcode's setjmp logic here...
* main.c (main): ...and here.  Use a fast loop if neither trace
nor disassemble is given.
* cpu.h (RX_MAKE_STEPPED, RX_MAKE_HIT_BREAK, RX_MAKE_EXITED,
RX_MAKE_STOPPED, RX_EXITED, RX_STOPPED): Adjust so that 0 is not a
valid code for anything.

14 years ago* rx-tdep.c (rx_analyze_prologue): Don't require branches to have
DJ Delorie [Thu, 29 Jul 2010 17:35:34 +0000 (17:35 +0000)]
* rx-tdep.c (rx_analyze_prologue): Don't require branches to have
conditions.

14 years ago * PROBLEMS: Remove mention of all problems.
Pedro Alves [Thu, 29 Jul 2010 14:48:58 +0000 (14:48 +0000)]
* PROBLEMS: Remove mention of all problems.

14 years ago * lib/gdb.exp (gdb_init): Set LC_ALL and LANG to C in the
Pedro Alves [Thu, 29 Jul 2010 14:18:57 +0000 (14:18 +0000)]
* lib/gdb.exp (gdb_init): Set LC_ALL and LANG to C in the
environment.

14 years ago * config/tc-ppc.c (ppc_fix_adjustable): Add got reloc types used
Alan Modra [Thu, 29 Jul 2010 07:48:43 +0000 (07:48 +0000)]
* config/tc-ppc.c (ppc_fix_adjustable): Add got reloc types used
in large toc code.

14 years ago * elf64-ppc.c (ppc64_elf_edit_toc): Always adjust local syms in
Alan Modra [Thu, 29 Jul 2010 07:35:58 +0000 (07:35 +0000)]
* elf64-ppc.c (ppc64_elf_edit_toc): Always adjust local syms in
.toc section, even when none are used in relocs.

14 years ago*** empty log message ***
gdbadmin [Thu, 29 Jul 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Thu, 29 Jul 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago2010-07-28 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Wed, 28 Jul 2010 23:24:57 +0000 (23:24 +0000)]
2010-07-28  Pedro Alves  <pedro@codesourcery.com>

PR build/11848
* configure.ac: Check for wresize.
* configure, config.in: Regenerate.
* tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
with HAVE_WRESIZE.

14 years agoSort *alphabetically* this time
DJ Delorie [Wed, 28 Jul 2010 22:31:09 +0000 (22:31 +0000)]
Sort *alphabetically* this time

14 years ago[sim/rx]
DJ Delorie [Wed, 28 Jul 2010 21:58:22 +0000 (21:58 +0000)]
[sim/rx]
* README.txt: New.
* config.h (CYCLE_ACCURATE, CYCLE_STATS): New.
* configure.in (--enable-cycle-accurate, --enable-cycle-stats):
New.  Default to enabled.
* configure: Regenerate.

* cpu.h (regs_type): Add cycle tracking info.
(reset_pipeline_stats): Declare.
(halt_pipeline_stats): Declare.
(pipeline_stats): Declare.
* main.c (done): Call pipeline_stats().
* mem.h (rx_mem_ptr): Moved to here ...
* mem.c (mem_ptr): ... from here.  Rename throughout.
(mem_put_byte): Move LEDs to Port A.  Add Port B to control cycle
statistics.  Move UART to SCI4.
(mem_put_hi): Add TPU 1-2.  TPU 1 and 2 count CPU cycles.
* reg.c (init_regs): Set Rt reg to -1 (no reg).
* rx.c: Add cycle counting and statistics throughout.
(rx_get_byte): Optimize for speed.
(decode_opcode): Likewise.
(reset_pipeline_stats): New.
(halt_pipeline_stats): New.
(pipeline_stats): New.
* trace.c (sim_disasm_one): Print cycle count.

[include/opcode]
* rx.h (RX_Opcode_ID): Add nop2 and nop3 for statistics.

14 years ago* MAINTAINERS: Add self as RX maintainer. Sort list.
DJ Delorie [Wed, 28 Jul 2010 21:56:16 +0000 (21:56 +0000)]
* MAINTAINERS: Add self as RX maintainer.  Sort list.

14 years agoAdd 0F to VEX opcode enums.
H.J. Lu [Wed, 28 Jul 2010 21:54:34 +0000 (21:54 +0000)]
Add 0F to VEX opcode enums.

2010-07-28  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c: Add 0F to VEX opcode enums.

14 years agogold: running tests in parallel.
Ralf Wildenhues [Wed, 28 Jul 2010 21:30:13 +0000 (21:30 +0000)]
gold: running tests in parallel.

gold/:
* configure.ac (AM_INIT_AUTOMAKE): Use parallel-tests option.
* Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.

14 years agogdb
Tom Tromey [Wed, 28 Jul 2010 20:50:17 +0000 (20:50 +0000)]
gdb
PR python/11060:
* python/py-type.c (typy_legacy_template_argument): New function,
extracted from typy_template_argument.
(typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT.  Return a
value when needed.
gdb/testsuite
PR python/11060:
* gdb.python/py-type.c (Temargs): New template.
(temvar): New variable.
* gdb.python/py-type.exp (test_template): New proc.

14 years ago2010-07-28 Oleg Nesterov <oleg@redhat.com>
Tom Tromey [Wed, 28 Jul 2010 20:20:26 +0000 (20:20 +0000)]
2010-07-28  Oleg Nesterov  <oleg@redhat.com>

* remote.c (readchar): Call pop_target in case of SERIAL_ERROR.

14 years ago * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
Tom Tromey [Wed, 28 Jul 2010 20:05:03 +0000 (20:05 +0000)]
* dwarf2read.c (dwarf2_const_value_data): Never sign extend.

14 years ago2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
Pedro Alves [Wed, 28 Jul 2010 19:04:08 +0000 (19:04 +0000)]
2010-07-28  Daniel Jacobowitz  <dan@codesourcery.com>

gdb/
* dwarf2read.c (read_subroutine_type): Improve THIS detection,
handling DW_AT_object_pointer, and workaround GCC PR 43053.

gdb/testsuite/
* gdb.cp/member-ptr.exp, gdb.cp/printmethod.exp,
gdb.dwarf2/member-ptr-forwardref.exp: Adjust.

14 years ago * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
Tom Tromey [Wed, 28 Jul 2010 18:32:33 +0000 (18:32 +0000)]
* Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.

14 years agoAdd missing gettext markup.
Joel Brobecker [Wed, 28 Jul 2010 18:04:19 +0000 (18:04 +0000)]
Add missing gettext markup.

gdb/ChangeLog:

        * remote.c (remote_download_tracepoint): Add missing gettext markup.
        * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.

14 years ago[PATCH] breakpoint_re_set fails while connecting to gdbserver.
Joel Brobecker [Wed, 28 Jul 2010 17:57:54 +0000 (17:57 +0000)]
[PATCH] breakpoint_re_set fails while connecting to gdbserver.

This is a problem that I noticed on GNU/Linux, when using both GDB
and GDBserver to debug an Ada program.  To reproduce, use any Ada
program, built with debug info ("gnatmake -g ...").

Then start the program with gdbserver:

        % gdbserver :4444 simple_main

And then insert a breakpoint using the name of an Ada function,
followed by connecting to the target server:

        (gdb) b simple.test_simple
        Breakpoint 1 at 0x401f28: file simple.adb, line 16.
        (gdb) tar rem :4444
        Remote debugging using :4444
        Reading symbols from /lib64/ld-linux-x86-64.so.2...
        Reading symbols from /usr/lib/debug/lib/ld-2.11.1.so...done.
        done.
        Loaded symbols for /lib64/ld-linux-x86-64.so.2
!! ->   Error in re-setting breakpoint 1: Can't find member of namespace, class,
!! ->    struct, or union named "simple.test_simple"
!! ->   Hint: try 'simple.test_simple<TAB> or 'simple.test_simple<ESC-?>
!! ->   (Note leading single quote.)
        0x00007f4db3cf2af0 in _start () from /lib64/ld-linux-x86-64.so.2
        Created trace state variable $trace_timestamp for target's variable 1.

The problem is related to the fact that GDB found debug symbols for
ld.so in /usr/lib/debug.  For debugger configured with a prefix that
is different from /usr, one way to force the problem to reproduce is
to use:

        (gdb) set debug-file-directory /usr/lib/debug

(assuming that debug info has been installed at that location).

The problem is that the wrong language is used to parse the breakpoint
location because it gets changed from under us as a side effect of
some of the code that we do in prepration for re-parsing.  In particular,
breakpoint_re_set_one reads:

      set_language (b->language);
      input_radix = b->input_radix;
      s = b->addr_string;

      save_current_space_and_thread ();
      switch_to_program_space_and_thread (b->pspace);

      marker_spec = b->type == bp_static_tracepoint && is_marker_spec (s);
      [if (marker_spec) decode_tracepoint_spec (...) else decode_line_1]

What happens in our case is that debugging information gets found
for ld.so.  As a result, the current_frame language is C whereas it
would have been unknown if we did not have debugging info. And
save_current_space_and_thread() implicitly causes the current frame
to be selected, which changes the language automatically if the new
language is not uknown and the the language mode is auto.

The fix, until all parsing routines (including decode_line_1) get upgraded
to take a language, is to select the breakpoint language as late as possible.
In this case, we don't need to do that until we actually try to parse
the breakpoint addr_string.

gdb/ChangeLog:

        * breakpoint.c (breakpoint_re_set_one): Move call to set_language
        down, just before the block that parse the breakpoint addr_string.

14 years agogdb
Tom Tromey [Wed, 28 Jul 2010 16:23:59 +0000 (16:23 +0000)]
gdb
PR c++/9946:
* symfile.c (reread_symbols): Clear template_symbols.
* symtab.h (struct symbol) <is_cplus_template_function>: New
field.
(SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
(struct template_symbol): New.
* symtab.c (lookup_symbol_aux_local): Use
cp_lookup_symbol_imports_or_template.
* objfiles.h (struct objfile) <template_symbols>: New field.
* objfiles.c (relocate_one_symbol): New function.
(objfile_relocate1): Use it.  Relocate isolated symbols.
* gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
template_arguments>: New fields.
(TYPE_N_TEMPLATE_ARGUMENTS): New macro.
(TYPE_TEMPLATE_ARGUMENTS): Likewise.
(TYPE_TEMPLATE_ARGUMENT): Likewise.
(lookup_typename): Update.
* gdbtypes.c (lookup_typename): Constify "block" argument.
* dwarf2read.c: Include vec.h.
(symbolp): New typedef.
(read_func_scope): Read template arguments.  Allocate a
template_symbol when needed.
(read_structure_type): Read template arguments.
(new_symbol_full): New function, from new_symbol.  Handle
DW_TAG_template_type_param and DW_TAG_template_value_param.
(new_symbol): Rewrite as wrapper.
* cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
* cp-namespace.c: Include language.h.
(search_symbol_list): New function.
(cp_lookup_symbol_imports_or_template): Likewise.
gdb/testsuite
PR c++/9946:
* gdb.cp/temargs.exp: New file.
* gdb.cp/temargs.cc: New file.

14 years agoCorrect date.
H.J. Lu [Wed, 28 Jul 2010 16:17:06 +0000 (16:17 +0000)]
Correct date.

14 years agoXfail dw2-compress-2 and x86-64-dw2-compress-2.
H.J. Lu [Wed, 28 Jul 2010 15:59:05 +0000 (15:59 +0000)]
Xfail dw2-compress-2 and x86-64-dw2-compress-2.

2010-07-27  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Xfail dw2-compress-2 and
x86-64-dw2-compress-2.

14 years ago2010-07-28 Balazs Kezes <rlblaster@gmail.com>
Pedro Alves [Wed, 28 Jul 2010 12:08:19 +0000 (12:08 +0000)]
2010-07-28  Balazs Kezes  <rlblaster@gmail.com>

* tui/tui-win.c (make_visible_with_new_height): Resize and move
the command window to the new size and position.

14 years agotabs vs spaces
Pedro Alves [Wed, 28 Jul 2010 12:02:36 +0000 (12:02 +0000)]
tabs vs spaces

14 years ago * tui/tui-win.c (tui_resize_all): Update the locator's origin's
Pedro Alves [Wed, 28 Jul 2010 12:01:22 +0000 (12:01 +0000)]
    * tui/tui-win.c (tui_resize_all): Update the locator's origin's
coordinates.

14 years ago2010-07-28 Balazs Kezes <rlblaster@gmail.com>
Pedro Alves [Wed, 28 Jul 2010 11:56:30 +0000 (11:56 +0000)]
2010-07-28  Balazs Kezes  <rlblaster@gmail.com>

        * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
after a detecting a resize.
        * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
call.

14 years ago * configure.ac: Check for resize_term.
Pedro Alves [Wed, 28 Jul 2010 11:48:23 +0000 (11:48 +0000)]
* configure.ac: Check for resize_term.
* configure, config.in: Regenerate.

14 years ago PR gas/11841
Alan Modra [Wed, 28 Jul 2010 09:36:22 +0000 (09:36 +0000)]
PR gas/11841
* symbols.c (symbol_clone): Correct typo in previous patch.

14 years ago PR gas/11841
Alan Modra [Wed, 28 Jul 2010 08:43:46 +0000 (08:43 +0000)]
PR gas/11841
* symbols.c (symbol_clone): Clear BSF_SECTION_SYM flag.

14 years ago * ldexp.c (exp_print_tree): Print function-like binary nodes as
Alan Modra [Wed, 28 Jul 2010 06:43:32 +0000 (06:43 +0000)]
* ldexp.c (exp_print_tree): Print function-like binary nodes as
functions rather than in-fix operators.  Use fputs and fputc
where appropriate.

14 years ago * config/tc-ppc.c (md_assemble): Don't attempt to print NUL in
Alan Modra [Wed, 28 Jul 2010 05:21:38 +0000 (05:21 +0000)]
* config/tc-ppc.c (md_assemble): Don't attempt to print NUL in
syntax error message.

14 years agomisordered names in Write After Approval list
Joel Brobecker [Wed, 28 Jul 2010 04:09:04 +0000 (04:09 +0000)]
misordered names in Write After Approval list

This patch moves a couple of write-after-approval names up to keep
the list in alphabetical order.

2010-07-27  Joel Brobecker  <brobecker@adacore.com>

* MAINTAINERS (Write After Approval): Reorder a couple of entries.

14 years agoMinor (space) reformatting.
Joel Brobecker [Wed, 28 Jul 2010 04:04:17 +0000 (04:04 +0000)]
Minor (space) reformatting.