aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-01-01 * gdb.arch/gdb1291.s, gdb.arch/gdb1431.s: Update year in copyrightJoel Brobecker3-2/+7
notice.
2010-01-01gdb/testsuite/Jan Kratochvil2-1/+6
* lib/mi-support.exp (mi_expect_stop <stopped at wrong place>): Insert missing $after_stopped and comma (,) expectation.
2010-01-01Update copyright years in all relevant texinfo documents.Joel Brobecker7-8/+18
* agentexpr.texi: Add 2010 to the list of copyright years. * annotate.texinfo: Likewise. * gdb.texinfo: Likewise. * gdbint.texinfo: Likewise. * observer.texi: Likewise. * stabs.texinfo: Likewise.
2010-01-01Update copyright year in most headers.Joel Brobecker1813-1890/+2063
Automatic update by copyright.sh.
2010-01-01Fix build failure in inf-ptrace.c.Joel Brobecker3-7/+7
* inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
2010-01-01 * server.c (gdbserver_version): Update copyright year to 2010.Joel Brobecker3-2/+7
* gdbreplay.c (gdbreplay_version): Likewise.
2010-01-01 * top.c (print_gdb_version): Update copyright year.Joel Brobecker2-1/+5
2010-01-01ChangeLog rotation for 2010.Joel Brobecker3-13572/+13582
2010-01-01Fix break *FUN'address thread NUM.Joel Brobecker2-1/+8
* ada-lex.l (task): Expand rule to also match the thread keyword.
2010-01-01Fix break *FUN'address task NUM.Joel Brobecker3-0/+15
* ada-lex.l (task): New rule. * ada-lang.c (valid_task_id): Make sure the Ada task list has been built before using it.
2010-01-01*** empty log message ***gdbadmin1-1/+1
2009-12-31daily updateAlan Modra1-1/+1
2009-12-31 Add new tracepoint action teval.Stan Shebs7-0/+136
* tracepoint.c (teval_pseudocommand): New function. (validate_actionline): Add teval action case. (encode_actions): Ditto. (_initialize_tracepoint): Define teval pseudocommand. * NEWS: Mention teval. * gdb.texinfo (Tracepoint Actions): Describe teval. * gdb.trace/actions.exp: Test teval action.
2009-12-31 * tracepoint.c (trace_find_command): Error out if trace running.Stan Shebs2-0/+27
(trace_find_pc_command): Ditto. (trace_find_tracepoint_command): Ditto. (trace_find_line_command): Ditto. (trace_find_range_command): Ditto. (trace_find_outside_command): Ditto.
2009-12-31 * objcopy.c (add_redefine_syms_file): Avoid symbol bufferNick Clifton2-3/+9
overrun.
2009-12-31 * dwarf2.c (struct line_sequence): New struct.Nick Clifton2-38/+185
(struct line_info_table): Add num_sequences, remove last_line, add sequences. (add_line_info): Add new sequences as necessary. (compare_sequences): New function. (sort_line_sequences): New function. (decode_line_info): Initialize new fields in line table. Call sort_line_sequences. (lookup_address_in_line_info_table): Binary search for proper sequence.
2009-12-31Fix a typo.Joel Brobecker1-1/+1
2009-12-31Internal error while loading core on alpha-tru64.Joel Brobecker2-3/+12
* corelow.c (core_open): Delete unused local variables. Use inferior_appeared instead of add_inferior_silent.
2009-12-31 PR 10980Ian Lance Taylor2-2/+8
* options.h (class General_options): Permit two dashes with --retain-symbols-file.
2009-12-31 PR 10979Ian Lance Taylor2-0/+11
* layout.cc (Layout::relaxation_loop_body): If -Ttext was used, don't put the file header and segment headers in the text segment.
2009-12-31 PR 10979Ian Lance Taylor7-7/+146
* common.cc (Sort_commons::operator()): Stabilize sort when both entries are NULL. (Symbol_table::do_allocate_commons_list): When allocating common symbols, skip a symbol which is no longer common. * symtab.h (Symbol::is_common): Test whether the symbol comes from an object before checking its type. * testsuite/common_test_2.c: New file. * testsuite/common_test_3.c: New file. * testsuite/Makefile.am (check_PROGRAMS): Add common_test_2. (common_test_2_SOURCES, common_test_2_DEPENDENCIES): Define. (common_test_2_LDFLAGS, common_test_2_LDADD): Define. (common_test_2_pic.o, common_test_2.so): New targets. (common_test_3_pic.o, common_test_3.so): New targets. * testsuite/Makefile.in: Rebuild.
2009-12-31 PR 10979Ian Lance Taylor4-0/+31
* script.cc (read_input_script): If we see a new SECTIONS clause, and we have added an input section, give an error. * layout.h (class Layout): Add have_added_input_section function. Add have_added_input_section_ field. * layout.cc (Layout::Layout): Initialize have_added_input_section_. (Layout::layout): Set have_added_input_section_. (Layout::layout_eh_frame): Likewise.
2009-12-31 PR 10931Ian Lance Taylor4-26/+104
* options.h (class General_options): Add --sort-common option. * symtab.h (class Symbol_table): Define Sort_commons_order enum. * common.cc (Sort_common): Add sort_order parameter to constructor. Add sort_order_ field. (Sort_commons::operator): Check sort_order_. (Symbol_table::allocate_commons): Determine the sort order. (Symbol_table::do_allocate_commons): Add sort_order parameter. Change all callers. (Symbol_table::do_allocate_commons_list): Likewise.
2009-12-31 PR 10916Ian Lance Taylor3-1/+18
* symtab.cc (Symbol_table::add_from_relobj): When not exporting symbols from this object, don't change the visibility of an undefined symbol. * testsuite/exclude_libs_test_1.c (lib1_ref): New function.
2009-12-31*** empty log message ***gdbadmin1-1/+1
2009-12-30daily updateAlan Modra1-1/+1
2009-12-30 PR 10861Ian Lance Taylor9-138/+351
* script.h (class Version_script_info): Define Language enum. Update declarations. Define Glob, Exact, and Lookup types. Add new fields globals_, locals_, and is_finalized_. * script.cc: Various formatting fixes. (class Parser_closure): Change language_stack_ from a vector of std::string to one of Version_script_info::Language. Adjust all uses accordingly. (class Lazy_demangler): Remove. (struct Version_expression): Change language from std::string to Version_script_info::Language. (Version_script_info::Version_script_info): New function. (Version_script_info::~Version_script_info): Don't call clear. (Version_script_info::finalize): New function. (Version_script_info::build_lookup_tables): New function. (Version_script_info::build_expression_list_lookup): New function. (Version_script_info::get_symbol_version_helper): Rewrite to use lookup tables. (Version_script_info::print_expression_list): Adjust to use Version_script_info::Language. (script_push_lex_into_version_mode): Check that the version script has not been finalized. (version_script_push_lang): Change language string to Version_script_info::Language. * options.cc (Command_line::version_script): New function. * options.h (class General_options): Add finalize_dynamic_list function. Change version_script from declaration to definition. * testsuite/ver_test_4.script: Remove duplicate def of t2_2. * testsuite/version_script.map: Remove duplicate def of foo. * testsuite/Makefile.am (ver_matching_def.so): Depend upon version_script.map. * testsuite/Makefile.in: Rebuild.
2009-12-30 * tracepoint.c (trace_status_command): Add some status output.Stan Shebs2-0/+16
2009-12-30 PR 10843Ian Lance Taylor2-2/+13
* target-reloc.h (relocate_for_relocatable): When copying a reloc, if the input symbol index is 0, make the output symbol index 0.
2009-12-30 PR 10670Ian Lance Taylor3-9/+27
* options.h (class General_options): Add -x/--discard-all. * object.cc (Sized_relobj::do_count_local_symbols): Handle --discard-all. If the local symbol needs a dynamic entry, check that before handling --discard-locals.
2009-12-3020090-12-30 Jan Kratochvil <jan.kratochvil@redhat.com>Thiago Jung Bauermann2-0/+13
Thiago Jung Bauermann <bauerman@br.ibm.com> * breakpoint.c (update_watchpoint): Change b->type to bp_watchpoint before calling hw_watchpoint_used_count.
2009-12-30 PR 10450Ian Lance Taylor2-2/+15
* output.cc (Output_segment::Output_segment): If PT_TLS, set the flags to PF_R. (Output_segment::add_output_section): Don't change the flags if the type is PT_TLS.
2009-12-30 * breakpoint.c (watchpoint_check): Expand the function description.Joel Brobecker2-1/+8
2009-12-30gdb/Thiago Jung Bauermann7-3/+52
* valarith.c (value_equal_contents): New function. * value.h (value_equal_contents): Declare. * breakpoint.c (watchpoint_check): Use value_equal_contents instead of value_equal. gdb/testsuite/ * gdb.base/watchpoint.exp (test_watchpoint_in_big_blob): New function. (top level): Call test_watchpoint_in_big_blob. * gdb.base/watchpoint.c (buf): Change size to value too big for hardware watchpoints. (func3): Write to buf.
2009-12-30 Add default-collect variable.Stan Shebs7-5/+94
* tracepoint.c (default_collect): New global. (encode_actions): Use it. (download_tracepoint): Test it, for otherwise action-less tracepoints. (_initialize_tracepoint): Add set/show. * NEWS: Mention default-collect. * gdb.texinfo (Tracepoint Actions): Describe default-collect. * gdb.trace/actions.exp: Test default-collect.
2009-12-30 PR 10450Ian Lance Taylor2-3/+11
* dynobj.cc (Dynobj::create_gnu_hash_table): Add symbols to the GNU hash table if they need a dynamic value. Otherwise, don't add them if they are defined in a dynamic object or are forced local.
2009-12-30 PR 10450Ian Lance Taylor2-1/+10
* layout.cc (Layout::create_dynamic_symtab): Only set entsize of .gnu.hash table for a 32-bit target.
2009-12-30 PR 10450Ian Lance Taylor2-1/+8
* symtab.h (Symbol::needs_dynsym_entry): A symbol in both a regular and a dynamic object only needs a dynamic symbol table entry if it is externally visible.
2009-12-30 PR 10450Ian Lance Taylor3-20/+56
* i386.cc (class Target_i386): Initialize global_offset_table_ in constructor. Add global_offset_table_ field. (Target_i386::got_section): Set global_offset_table_. (Target_i386::do_finalize_sections): Set global_offset_table_ size. * x86_64.cc (class Target_x86_64): Initialize global_offset_table_ in constructor. Add global_offset_table_ field. (Target_x86_64::got_section): Set global_offset_table_. (Target_x86_64::do_finalize_sections): Set global_offset_table_ size.
2009-12-30 * layout.cc (Layout::Layout): Initialize increase_relro_.Ian Lance Taylor13-159/+336
(Layout::get_output_section): Add is_relro, 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. (Layout::set_segment_offsets): Clear increase_relro when using a linker script. * layout.h (class Layout): Add increase_relro method. Add increase_relro_ field. Update declarations. * output.cc (Output_section::Output_section): Initialize is_last_relro_ and is_first_non_relro_. (Output_segment::add_output_section): Group relro sections is do_sort is true. Handle is_last_relro and is_first_non_relro. (Output_segment::maximum_alignment): Remove relro handling. (Output_segment::set_section_addresses): Add increase_relro parameter. Change all callers. Add initial alignment to align relro sections on separate page. Remove old relro handling. (Output_segment::set_section_list_addresses): Remove in_relro parameter. Change all callers. (Output_segment::set_offset): Add increase parameter. Change all callers. Remove old relro handling. * output.h (class Output_section): Add new methods: is_last_relro, set_is_last_relro, is_first_non_relro, set_is_first_non_relro. Add is_last_relro_ and is_first_non_relro_ fields. * i386.cc (Target_i386::got_section): Don't call set_is_relro. Create separate .got.plt section. Call increase_relro. * x86_64.cc (Target_x86_64::got_section): Likewise. * testsuite/relro_script_test.t: Add .got.plt.
2009-12-30 PR 10450Ian Lance Taylor3-4/+42
* layout.cc (Layout::Layout): Initialize dynamic_symbol_ field. (Layout::create_initial_dynamic_sections): Set dynamic_symbol_. (Layout::finalize): Call set_dynamic_symbol_size. (Layout::set_dynamic_symbol_size): New function. * layout.h (class Layout): Add dynamic_symbol_ field. Declare set_dynamic_symbol_size.
2009-12-30 PR 10450Ian Lance Taylor3-6/+45
* output.h (class Output_section): Add is_entsize_zero_ field. * output.cc (Output_section::Output_section): Initialize is_entsize_zero_. (Output_section::set_entsize): If two different entsizes are requested, force it to zero. (Output_section::add_input_section): Set flags for .debug_str before updating section flags. Set entsize. (Output_section::update_flags_for_input_section): Set SHF_MERGE and SHF_STRING if all input sections have those flags.
2009-12-30*** empty log message ***gdbadmin1-1/+1
2009-12-29 * language.c (pointer_type): Un-comment out.Stan Shebs3-13/+24
* ax-gdb.c: Include language.h, use pointer_type throughout instead of testing TYPE_CODE_PTR. (gen_fetch): Include TYPE_CODE_REF. (gen_cast): Ditto.
2009-12-292009-12-29 Rafael Espindola <espindola@google.com>Rafael Ávila de Espíndola3-2/+7
* main.cc (main): Fix the sys time reporting. * workqueue.cc (Workqueue::find_and_run_task): Fix the sys time reporting.
2009-12-29 * ax-gdb.c (gen_expr): Handle logical and, logical or, andStan Shebs2-1/+72
conditional expressions.
2009-12-29* options.cc (General_options::parse_version): Allow -v to exitSriraman Tallam2-0/+6
without an error if there is nothing to link.
2009-12-29daily updateAlan Modra1-1/+1
2009-12-29 * configure.ac: Set the MCMODEL_MEDIUM conditional to false ifIan Lance Taylor3-2/+45
using a version of gcc before 4.1. * configure: Rebuild.
2009-12-292009-12-28 Chris Demetriou <cgd@google.com>Chris Demetriou2-1/+6
* attributes.cc (Output_attributes_section_data::do_write): Use std::vector::front rather than std::vector::data.