OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
12 years ago * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
uweigand [Wed, 7 Dec 2011 20:53:06 +0000 (20:53 +0000)]
* arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
* arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
(arm_deal_with_atomic_sequence_raw): Likewise.
(arm_deal_with_atomic_sequence): Likewise.
(arm_software_single_step): Call it.
* arm-linux-tdep.c (arm_linux_software_single_step): Likewise.

12 years ago2011-12-07 Sameera Deshpande <sameera.deshpande@arm.com>
mgretton [Wed, 7 Dec 2011 16:58:33 +0000 (16:58 +0000)]
2011-12-07  Sameera Deshpande  <sameera.deshpande@arm.com>

* gas/config/tc-arm.c (do_t_ldstd): Warn for unpredictable cases.
* gas/testsuite/gas/arm/thumb2_ldstd_unpredictable.d: New testcase.
* gas/testsuite/gas/arm/thumb2_ldstd_unpredictable.l: Likewise.
* gas/testsuite/gas/arm/thumb2_ldstd_unpredictable.s: Likewise.
* gas/testsuite/gas/testsuite/gas/arm/sp-pc-validations-bad-t.l: Update
testcase.
* gas/testsuite/gas/testsuite/gas/arm/sp-pc-validations-bad-t.s: Likewise.

12 years ago * gas/config/tc-arm.c (ARM_IT_MAX_OPERANDS): New define.
mgretton [Wed, 7 Dec 2011 16:46:34 +0000 (16:46 +0000)]
* gas/config/tc-arm.c (ARM_IT_MAX_OPERANDS): New define.
(arm_it): Use ARM_IT_MAX_OPERANDS.
(neon_select_shape): Ensure we have matched all operands.
* gas/testsuite/gas/arm/neon-suffix-bad.l: Add testcase.
* gas/testsuite/gas/arm/neon-suffix-bad.s: Likewise.

12 years ago * gas/config/tc-arm.c (parse_neon_mov): Update which_operand
mgretton [Wed, 7 Dec 2011 16:44:54 +0000 (16:44 +0000)]
* gas/config/tc-arm.c (parse_neon_mov): Update which_operand
correctly.

12 years ago2011-12-07 Pedro Alves <pedro@codesourcery.com>
palves [Wed, 7 Dec 2011 15:00:33 +0000 (15:00 +0000)]
2011-12-07  Pedro Alves  <pedro@codesourcery.com>

* gdb.ada/catch_ex.exp: Skip as unsupported if "catch exception"
throws "Cannot insert catchpoints in this configuration".
* gdb.ada/mi_catch_ex.exp: Likewise.

12 years ago* exceptions.cc (ctrl_c_handler): Remove _my_tls.remove since it can cause
cgf [Wed, 7 Dec 2011 13:54:52 +0000 (13:54 +0000)]
* exceptions.cc (ctrl_c_handler): Remove _my_tls.remove since it can cause
deadlocks during exec and will eventually be handled anyway.

12 years ago * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
uweigand [Wed, 7 Dec 2011 13:31:02 +0000 (13:31 +0000)]
* s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
where appropriate.
* s390-tdep.h: Likewise.

12 years ago PR ld/12772
amodra [Wed, 7 Dec 2011 12:15:49 +0000 (12:15 +0000)]
PR ld/12772
* elflink.c (elf_gc_sweep_symbol): Discard unmarked symbols
defined in shared libraries.

12 years ago * spawn.cc (child_info_spawn::worker): Add CREATE_BREAKAWAY_FROM_JOB
corinna [Wed, 7 Dec 2011 10:48:17 +0000 (10:48 +0000)]
* spawn.cc (child_info_spawn::worker): Add CREATE_BREAKAWAY_FROM_JOB
to all spawned processes.  Explain why.

12 years ago2011-12-07 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 7 Dec 2011 10:09:21 +0000 (10:09 +0000)]
2011-12-07  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_canonicalize_symtab): Fix indentation.
Adjust the condition.
(bfd_mach_o_read_symtab_symbol): Now returns a bfd_boolean.
Adjust return statements.
(bfd_mach_o_read_symtab_strtab): Likewise.
(bfd_mach_o_read_symtab_symbols): Likewise.
(bfd_mach_o_scan_start_address): Likewise.  Make it static.
(bfd_mach_o_scan): Likewise.
(bfd_mach_o_read_dysymtab_symbol): Remove unused function.
(bfd_mach_o_header_p): Adjust call.
(bfd_mach_o_cpu_name): Make it const.
(bfd_mach_o_filetype_name): Likewise.
(bfd_mach_o_header_flags_name): Likewise.
(bfd_mach_o_section_type_name): Likewise.
(bfd_mach_o_section_attribute_name): Likewise.
(bfd_mach_o_load_command_name): Likewise.
(bfd_mach_o_get_section_type_from_name): Add a const qualifier
after above change.
(bfd_mach_o_get_section_attribute_from_name): Likewise.
* mach-o.h (bfd_mach_o_read_dysymtab_symbol)
(bfd_mach_o_scan_start_address, bfd_mach_o_scan): Remove.

12 years ago2011-12-07 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 7 Dec 2011 09:11:24 +0000 (09:11 +0000)]
2011-12-07  Tristan Gingold  <gingold@adacore.com>

* machoread.c (macho_symtab_read): Do not consider N_OPT as
a debugging stab.  Improve complaint message.

12 years ago2011-12-06 David Daney <david.daney@cavium.com>
daney [Wed, 7 Dec 2011 03:50:10 +0000 (03:50 +0000)]
2011-12-06 David Daney <david.daney@cavium.com>

* readelf.c (dynamic_section_mips_val): Factor out trailing '\n'
from printed strings and move it to the end of the function.
Use BFD_VMA_FMT for printf format specifier for dynamic tag value.
Use print_vma() to print dynamic tag values.

12 years ago* fhandler_fifo.cc (fhandler_fifo::wait): Fix stupid typo and actually wait for
cgf [Wed, 7 Dec 2011 03:07:24 +0000 (03:07 +0000)]
* fhandler_fifo.cc (fhandler_fifo::wait): Fix stupid typo and actually wait for
the handle.

12 years ago * mips-tdep.c (mips32_scan_prologue): Only update the immediate
macro [Wed, 7 Dec 2011 00:17:22 +0000 (00:17 +0000)]
* mips-tdep.c (mips32_scan_prologue): Only update the immediate
load adjustment if still within the prologue.

12 years ago*** empty log message ***
gdbadmin [Wed, 7 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * mips-tdep.c (mips32_next_pc): Fix floating point condition
macro [Tue, 6 Dec 2011 23:49:55 +0000 (23:49 +0000)]
* mips-tdep.c (mips32_next_pc): Fix floating point condition
code mask.

12 years ago * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
macro [Tue, 6 Dec 2011 23:36:57 +0000 (23:36 +0000)]
* mips-tdep.c (deal_with_atomic_sequence): Fix the handling
of BLTZ* and BGEZ* instructions.

12 years agogdb/gdbserver/
jkratoch [Tue, 6 Dec 2011 23:29:47 +0000 (23:29 +0000)]
gdb/gdbserver/
Fix overlapping memcpy.
* mem-break.c (set_raw_breakpoint_at): New variable buf.  Use it for
the read_inferior_memory transfer.
(delete_fast_tracepoint_jump): New variable buf.  Use it for the
write_inferior_memory transfer.
(set_fast_tracepoint_jump): New variable buf.  Use it for the
read_inferior_memory and write_inferior_memory transfers.
(uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
(delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
Use it for the write_inferior_memory transfer.
(check_mem_read, check_mem_write): New gdb_asserts for overlapping
buffers.

12 years ago * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
macro [Tue, 6 Dec 2011 23:19:39 +0000 (23:19 +0000)]
* mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
performed to determine whether an address refers to standard
MIPS or MIPS16 code.
(mips16_next_pc): Use mips_pc_is_mips16 instead of
is_mips16_addr.

12 years ago * linux-low.c (fetch_register, store_register): Make code
macro [Tue, 6 Dec 2011 23:09:07 +0000 (23:09 +0000)]
* linux-low.c (fetch_register, store_register): Make code
consistent, fix formatting.

12 years ago * linux-low.c (usr_store_inferior_registers): Factor out code
macro [Tue, 6 Dec 2011 23:00:15 +0000 (23:00 +0000)]
* linux-low.c (usr_store_inferior_registers): Factor out code
to handle individual registers into...
(store_register): ... this new function.

12 years agodaily update
amodra [Tue, 6 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago2011-12-06 Pedro Alves <pedro@codesourcery.com>
palves [Tue, 6 Dec 2011 20:03:11 +0000 (20:03 +0000)]
2011-12-06  Pedro Alves  <pedro@codesourcery.com>

gdb/
* breakpoint.c (breakpoint_restore_shadows): Rename to ...
(breakpoint_xfer_memory): ... this.  Change prototype.  Handle
memory writes too.
* breakpoint.h (breakpoint_restore_shadows): Delete.
(breakpoint_xfer_memory): Declare.
* mem-break.c (default_memory_insert_breakpoint)
(default_memory_remove_breakpoint): Use target_write_raw_memory.
(memory_xfer_partial): Rename to ...
(memory_xfer_partial_1): ... this.  Don't mask out breakpoints
here.
(memory_xfer_partial): New.
(target_write_raw_memory): New.
* target.h (target_write_raw_memory): New.

gdb/testsuite/
* gdb.base/break-always.exp: Test changing memory at addresses
with breakpoints inserted.

12 years ago * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
devans [Tue, 6 Dec 2011 19:57:46 +0000 (19:57 +0000)]
* linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.

12 years agothe "ambiguous linespec" series
tromey [Tue, 6 Dec 2011 18:54:35 +0000 (18:54 +0000)]
the "ambiguous linespec" series
gdb
2011-12-06  Joel Brobecker  <brobecker@acacore.com>

        * language.h (struct language_defn): Add new component
        la_symbol_name_compare.
        * symfile.h (struct quick_symbol_functions): Update the profile
        of parameter "name_matcher" for the expand_symtabs_matching
        method.  Update the documentation accordingly.
        * ada-lang.h (ada_name_for_lookup): Add declaration.
        * ada-lang.c (ada_name_for_lookup): New function, extracted out
        from ada_iterate_over_symbols.
        (ada_iterate_over_symbols): Do not encode symbol name anymore.
        (ada_expand_partial_symbol_name): Adjust profile.
        (ada_language_defn): Add value for la_symbol_name_compare field.
        * linespec.c: #include "ada-lang.h".
        (iterate_name_matcher): Add language parameter. Replace call
        to strcmp_iw by call to language->la_symbol_name_compare.
        (decode_variable): Encode COPY if current language is Ada.
        * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
        of name_matcher parameter.  Adjust call to name_matcher.
        * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
        (expand_partial_symbol_names): Update profile of parameter "fun".
        * psymtab.h (expand_partial_symbol_names): Update profile of
        parameter "fun".
        * symtab.c (demangle_for_lookup): Update function documentation.
        (search_symbols_name_matches): Add language parameter.
        (expand_partial_symbol_name): Likewise.
        * c-lang.c (c_language_defn, cplus_language_defn)
        (asm_language_defn, minimal_language_defn): Add value for
        la_symbol_name_compare field.
        * d-lang.c (d_language_defn): Likewise.
        * f-lang.c (f_language_defn): Ditto.
        * jv-lang.c (java_language_defn): Ditto.
        * m2-lang.c (m2_language_defn): Ditto.
        * objc-lang.c (objc_language_defn): Ditto.
        * opencl-lang.c (opencl_language_defn): Ditto.
        * p-lang.c (pascal_language_defn): Ditto.
        * language.c (unknown_language_defn, auto_language_defn)
        (local_language_defn): Ditto.

2011-12-06  Tom Tromey  <tromey@redhat.com>

* linespec.c (iterate_over_all_matching_symtabs): Use
LA_ITERATE_OVER_SYMBOLS.
(lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
(find_function_symbols, decode_variable): Remove Ada special
case.
* language.h (struct language_defn) <la_iterate_over_symbols>: New
field.
(LA_ITERATE_OVER_SYMBOLS): New macro.
* language.c (unknown_language_defn, auto_language_defn)
(local_language_defn): Update.
* c-lang.c (c_language_defn, cplus_language_defn)
(asm_language_defn, minimal_language_defn): Update.
* d-lang.c (d_language_defn): Update.
* f-lang.c (f_language_defn): Update.
* jv-lang.c (java_language_defn): Update.
* m2-lang.c (m2_language_defn): Update.
* objc-lang.c (objc_language_defn): Update.
* opencl-lang.c (opencl_language_defn): Update.
* p-lang.c (pascal_language_defn): Update.
* ada-lang.c (ada_iterate_over_symbols): New function.
(ada_language_defn): Update.

2011-12-06  Tom Tromey  <tromey@redhat.com>
    Joel Brobecker  <brobecker@acacore.com>

PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
PR shlibs/8929, PR shlibs/7393:
* python/py-type.c (compare_maybe_null_strings): Rename from
compare_strings.
(check_types_equal): Update.
* utils.c (compare_strings): New function.
* tui/tui-winsource.c (tui_update_breakpoint_info): Update for
location changes.
* tracepoint.c (scope_info): Update.
(trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
* symtab.h (iterate_over_minimal_symbols)
(iterate_over_some_symtabs, iterate_over_symtabs)
(find_pcs_for_symtab_line, iterate_over_symbols)
(demangle_for_lookup): Declare.
(expand_line_sal): Remove.
* symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
(lookup_symtab_callback): New functions.
(lookup_symtab): Rewrite.
(demangle_for_lookup): New function, extract from
lookup_symbol_in_language.
(lookup_symbol_in_language): Use it.
(iterate_over_symbols): New function.
(find_line_symtab): Update.
(find_pcs_for_symtab_line): New functions.
(find_line_common): Add 'start' argument.
(decode_line_spec): Update.  Change argument to 'flags', change
interpretation.
(append_expanded_sal): Remove.
(append_exact_match_to_sals): Remove.
(expand_line_sal): Remove.
* symfile.h (struct quick_symbol_functions) <lookup_symtab>:
Remove.
<map_symtabs_matching_filename>: New field.
* stack.c (func_command): Only look in the current program space.
Use DECODE_LINE_FUNFIRSTLINE.
* source.c (line_info): Set pspace on sal.  Check program space in
the loop.  Use DECODE_LINE_LIST_MODE.
(select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
* solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
* python/python.c (gdbpy_decode_line): Update.
* psymtab.c (partial_map_expand_apply): New function.
(partial_map_symtabs_matching_filename): Rename from
lookup_partial_symbol.  Update arguments.
(lookup_symtab_via_partial_symtab): Remove.
(psym_functions): Update.
* objc-lang.h (parse_selector, parse_method): Don't declare.
(find_imps): Update.
* objc-lang.c (parse_selector, parse_method): Now static.
(find_methods): Change arguments.  Fill in a vector of symbol
names.
(uniquify_strings): New function.
(find_imps): Change arguments.
* minsyms.c (iterate_over_minimal_symbols): New function.
* linespec.h (enum decode_line_flags): New.
(struct linespec_sals): New.
(struct linespec_result) <canonical>: Remove.
<pre_expanded, addr_string, sals>: New fields.
(destroy_linespec_result, make_cleanup_destroy_linespec_result)
(decode_line_full): Declare.
(decode_line_1): Update.
* linespec.c (struct address_entry, struct linespec_state, struct
collect_info): New types.
(add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
(eq_address_entry, maybe_add_address): New functions.
(total_number_of_methods): Remove.
(iterate_name_matcher, iterate_over_all_matching_symtabs): New
functions.
(find_methods): Change arguments.  Don't canonicalize input.
Simplify logic.
(add_matching_methods, add_constructors)
(build_canonical_line_spec): Remove.
(filter_results, convert_results_to_lsals): New functions.
(decode_line_2): Change arguments.  Rewrite for new data
structures.
(decode_line_internal): Rename from decode_line_1.  Change
arguments.  Add cleanups.  Update for new data structures.
(linespec_state_constructor, linespec_state_destructor)
(decode_line_full, decode_line_1): New functions.
(decode_indirect): Change arguments.  Update.
(locate_first_half): Use skip_spaces.
(decode_objc): Change arguments.  Update for new data structures.
Simplify logic.
(decode_compound): Change arguments.  Add cleanups.  Remove
fallback code, replace with error.
(struct decode_compound_collector): New type.
(collect_one_symbol): New function.
(lookup_prefix_sym): Change arguments.  Update.
(compare_symbol_name, add_all_symbol_names_from_pspace)
(find_superclass_methods ): New functions.
(find_method): Rewrite.
(struct symtab_collector): New type.
(add_symtabs_to_list, collect_symtabs_from_filename): New
functions.
(symtabs_from_filename): Change API.  Rename from
symtab_from_filename.
(collect_function_symbols): New function.
(find_function_symbols): Change API.  Rename from
find_function_symbol.  Rewrite.
(decode_all_digits): Change arguments.  Rewrite.
(decode_dollar): Change arguments.  Use decode_variable.
(decode_label): Change arguments.  Rewrite.
(collect_symbols): New function.
(minsym_found): Change arguments.  Rewrite.
(check_minsym, search_minsyms_for_name)
(add_matching_symbols_to_info): New function.
(decode_variable): Change arguments.  Iterate over all symbols.
(symbol_found): Remove.
(symbol_to_sal): New function.
(init_linespec_result, destroy_linespec_result)
(cleanup_linespec_result, make_cleanup_destroy_linespec_result):
New functions.
(decode_digits_list_mode, decode_digits_ordinary): New functions.
* dwarf2read.c (dw2_map_expand_apply): New function.
(dw2_map_symtabs_matching_filename): Rename from
dw2_lookup_symtab.  Change arguments.
(dwarf2_gdb_index_functions): Update.
* dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
* defs.h (compare_strings): Declare.
* cli/cli-cmds.c (compare_strings): Move to utils.c.
(edit_command, list_command): Use DECODE_LINE_LIST_MODE.  Call
filter_sals.
(compare_symtabs, filter_sals): New functions.
* breakpoint.h (struct bp_location) <line_number, source_file>:
New fields.
(struct breakpoint) <line_number, source_file>: Remove.
<filter>: New field.
* breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
(momentary_breakpoint_from_master, add_location_to_breakpoint):
Update for changes to locations.
(init_breakpoint_sal): Add 'filter' argument.  Set 'filter' on
breakpoint.
(create_breakpoint_sal): Add 'filter' argument.
(remove_sal, expand_line_sal_maybe): Remove.
(create_breakpoints_sal): Remove 'sals' argument.  Handle
pre-expanded sals and the filter.
(parse_breakpoint_sals): Use decode_line_full.
(check_fast_tracepoint_sals): Use get_sal_arch.
(create_breakpoint): Create a linespec_sals.  Update.
(break_range_command): Use decode_line_full.  Update.
(until_break_command): Update.
(clear_command): Update match conditions for linespec.c changes.
Use DECODE_LINE_LIST_MODE.
(say_where): Update for changes to locations.
(bp_location_dtor): Free 'source_file'.
(base_breakpoint_dtor): Free 'filter'.  Don't free 'source_file'.
(update_static_tracepoint): Update for changes to locations.
(update_breakpoint_locations): Disable ranged breakpoint if too
many locations match.  Update.
(addr_string_to_sals): Use decode_line_full.  Resolve all sal
PCs.
(breakpoint_re_set_default): Don't call expand_line_sal_maybe.
(decode_line_spec_1): Update.  Change argument name to 'flags',
change interpretation.
* block.h (block_containing_function): Declare.
* block.c (block_containing_function): New function.
* skip.c (skip_function_command): Update.
(skip_re_set): Update.
* infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
* mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
* NEWS: Add entry.

2011-12-06  Tom Tromey  <tromey@redhat.com>

* elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
breakpoint's pspace to be NULL.
* breakpoint.h (struct breakpoint) <pspace>: Update comment.
* breakpoint.c (init_raw_breakpoint): Conditionally set
breakpoint's pspace.
(init_breakpoint_sal): Don't set breakpoint's pspace.
(prepare_re_set_context): Conditionally switch program space.
(addr_string_to_sals): Check executing_startup on location's
program space.

2011-12-06  Tom Tromey  <tromey@redhat.com>

* breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
* breakpoint.c (should_be_inserted): Explicitly check if program
space is executing startup.
(describe_other_breakpoints): Update.
(disable_breakpoints_before_startup): Change executing_startup
earlier.  Remove loop.
(enable_breakpoints_after_startup): Likewise.
(init_breakpoint_sal): Don't use bp_startup_disabled.
(create_breakpoint): Don't use bp_startup_disabled.
(update_global_location_list): Use should_be_inserted.
(bkpt_re_set): Update.
gdb/testsuite
2011-12-06  Joel Brobecker  <brobecker@acacore.com>

        * gdb.ada/fullname_bp.exp: Add tests for other valid linespecs
        involving a fully qualified function name.

2011-12-06  Tom Tromey  <tromey@redhat.com>

* gdb.ada/homonym.exp: Add three breakpoint tests.

2011-12-06  Tom Tromey  <tromey@redhat.com>

* gdb.base/solib-weak.exp (do_test): Remove kfail.
* gdb.trace/tracecmd.exp: Disable pending breakpoints earlier.
* gdb.objc/objcdecode.exp: Update for output changes.
* gdb.linespec/linespec.exp: New file.
* gdb.linespec/lspec.cc: New file.
* gdb.linespec/lspec.h: New file.
* gdb.linespec/body.h: New file.
* gdb.linespec/base/two/thefile.cc: New file.
* gdb.linespec/base/one/thefile.cc: New file.
* gdb.linespec/Makefile.in: New file.
* gdb.cp/templates.exp (test_template_breakpoints): Update for
output changes.
* gdb.cp/re-set-overloaded.exp: Remove kfail.
* gdb.cp/ovldbreak.exp: Update for output changes.  "all" test now
makes one breakpoint.
* gdb.cp/method2.exp (test_break): Update for output changes.
* gdb.cp/mb-templates.exp: Update for output changes.
* gdb.cp/mb-inline.exp: Update for output changes.
* gdb.cp/mb-ctor.exp: Update for output changes.
* gdb.cp/ovsrch.exp: Use fully-qualified names.
* gdb.base/solib-symbol.exp: Run to main later.  Breakpoint now
has multiple matches.
* gdb.base/sepdebug.exp: Disable pending breakpoints.  Update for
error message change.
* gdb.base/list.exp (test_list_filename_and_number): Update for
error message change.
* gdb.base/break.exp: Disable pending breakpoints.  Update for
output changes.
* configure.ac: Add gdb.linespec.
* configure: Rebuild.
* Makefile.in (ALL_SUBDIRS): Add gdb.linespec.
gdb/doc
2011-12-06  Tom Tromey  <tromey@redhat.com>

* gdb.texinfo (Set Breaks): Update for new behavior.

12 years ago * python/lib/gdb/command/pretty_printers.py
tromey [Tue, 6 Dec 2011 17:38:50 +0000 (17:38 +0000)]
* python/lib/gdb/command/pretty_printers.py
(InfoPrettyPrinter.invoke1): Remove extra double quote.

12 years ago * NEWS: Add MI news.
tromey [Tue, 6 Dec 2011 14:27:38 +0000 (14:27 +0000)]
* NEWS: Add MI news.

12 years agoChangeLog:
uweigand [Tue, 6 Dec 2011 14:14:44 +0000 (14:14 +0000)]
ChangeLog:

* s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
(S390_LAST_BREAK_REGNUM): Likewise.
(S390_SYSTEM_CALL_REGNUM): Likewise.
(S390_NUM_REGS): Update.

(s390_regmap_last_break): Add declaration.
(s390x_regmap_last_break): Likewise.
(s390_regmap_system_call): Likewise.

(tdesc_s390_linux32v1): Add declaration.
(tdesc_s390_linux32v2): Likewise.
(tdesc_s390_linux64v1): Likewise.
(tdesc_s390_linux64v2): Likewise.
(tdesc_s390x_linux64v1): Likewise.
(tdesc_s390x_linux64v2): Likewise.

* s390-tdep.c: Include new target description files
"features/s390-linux32v1.c", "features/s390-linux32v2.c",
"features/s390-linux64v1.c", "features/s390-linux64v2.c",
"features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
(s390_cannot_store_register): New function.
(s390_write_pc): Likewise.
(s390_dwarf_regmap): Add fields for new registers.
(s390_regmap_gregset): Likewise.
(s390x_regmap_gregset): Likewise.
(s390_regmap_fpregset): Likewise.
(s390_regmap_upper): Likewise.
(s390_regmap_last_break): New variable.
(s390x_regmap_last_break): Likewise.
(s390_regmap_system_call): Likewise.
(s390_last_break_regset): Likewise.
(s390x_last_break_regset): Likewise.
(s390_system_call_regset): Likewise.
(s390_upper_regset_sections): Rename to ...
(s390_linux64_regset_sections): ... this.
(s390_linux32_regset_sections): New variable.
(s390x_linux64_regset_sections): Likewise.
(s390_linux32v1_regset_sections): Likewise.
(s390_linux32v2_regset_sections): Likewise.
(s390_linux64v1_regset_sections): Likewise.
(s390_linux64v2_regset_sections): Likewise.
(s390x_linux64v1_regset_sections): Likewise.
(s390x_linux64v2_regset_sections): Likewise.
(s390_regset_from_core_section): Handle .reg-s390-last-break and
.reg-s390-system-call core file sections.
(s390_core_read_description): Check for presence of
.reg-s390-last-break and .reg-s390-system-call core file
sections and return appropriate target description.
(s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
"last_break" and "system_call" in target description.  Install
appropriate gdbarch_core_regset_sections array.
Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
(_initialize_s390_tdep): Initialize additional target descriptions.

* s390-nat.c: Include "elf/common.h".
(PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
(have_regset_last_break): New static variable.
(have_regset_system_call): Likewise.
(s390_native_supply): Handle S390_ORIG_R2_REGNUM.
(s390_native_collect): Likewise.
(fetch_regset, store_regset, check_regset): New functions.
(s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
and S390_SYSTEM_CALL_REGNUM.
(s390_linux_store_inferior_registers): Likewise.
(s390_read_description): Check for presence of NT_S390_LAST_BREAK
and NT_S390_SYSTEM_CALL regsets and use appropriate description.

* features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
(s390-linux32v1-expedite): Define.
(s390-linux32v2-expedite): Likewise.
(s390-linux64v1-expedite): Likewise.
(s390-linux64v2-expedite): Likewise.
(s390x-linux64v1-expedite): Likewise.
(s390x-linux64v2-expedite): Likewise.

* features/s390-linux32.xml: Add orig_r2 register.
* features/s390-linux64.xml: Likewise.
* features/s390x-linux64.xml: Likewise.
* features/s390-linux32v1.xml: New file.
* features/s390-linux32v2.xml: Likewise.
* features/s390-linux64v1.xml: Likewise.
* features/s390-linux64v2.xml: Likewise.
* features/s390x-linux64v1.xml: Likewise.
* features/s390x-linux64v2.xml: Likewise.

* features/s390-linux32.c: Regenerate.
* features/s390-linux64.c: Likewise.
* features/s390x-linux64.c: Likewise.
* features/s390-linux32v1.c: New generated file.
* features/s390-linux32v2.c: Likewise.
* features/s390-linux64v1.c: Likewise.
* features/s390-linux64v2.c: Likewise.
* features/s390x-linux64v1.c: Likewise.
* features/s390x-linux64v2.c: Likewise.

* regformats/s390-linux32.dat: Regenerate.
* regformats/s390-linux64.dat: Regenerate.
* regformats/s390x-linux64.dat: Regenerate.
* regformats/s390-linux32v1.dat: New generated file.
* regformats/s390-linux32v2.dat: Likewise.
* regformats/s390-linux64v1.dat: Likewise.
* regformats/s390-linux64v2.dat: Likewise.
* regformats/s390x-linux64v1.dat: Likewise.
* regformats/s390x-linux64v2.dat: Likewise.

gdbserver/ChangeLog:

* Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
(s390-linux32v2.o, s390-linux32v2.c): Likewise.
(s390-linux64v1.o, s390-linux64v1.c): Likewise.
(s390-linux64v2.o, s390-linux64v2.c): Likewise.
(s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
(s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
* configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
(srv_xmlfiles): Add new XML files.

* linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
and <sys/uio.h>.
(PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
(init_registers_s390_linux32v1): Add prototype.
(init_registers_s390_linux32v2): Likewise.
(init_registers_s390_linux64v1): Likewise.
(init_registers_s390_linux64v2): Likewise.
(init_registers_s390x_linux64v1): Likewise.
(init_registers_s390x_linux64v2): Likewise.
(s390_num_regs): Increment to 52.
(s390_regmap): Add orig_r2 register.
(s390_num_regs_3264): Increment to 68.
(s390_regmap_3264): Add orig_r2 register.
(s390_collect_ptrace_register): Handle orig_r2 register.
(s390_supply_ptrace_register): Likewise.
(s390_fill_last_break): New function.
(s390_store_last_break): Likewise.
(s390_fill_system_call): New function.
(s390_store_system_call): Likewise.
(target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
register sets.
(s390_check_regset): New function.
(s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
NT_S390_SYSTEM_CALL regsets and use appropriate description.
Update target_regsets for available register sets.

testsuite/ChangeLog:

* gdb.base/callfuncs.exp (fetch_all_registers): Filter out read-only
last_break register on s390*-*-* targets.

12 years agoinclude/elf/ChangeLog:
uweigand [Tue, 6 Dec 2011 14:09:05 +0000 (14:09 +0000)]
include/elf/ChangeLog:

* common.h (NT_S390_LAST_BREAK): Define.
(NT_S390_SYSTEM_CALL): Likewise.

bfd/ChangeLog:

* elf-bfd.h (elfcore_write_s390_last_break): Add prototype.
(elfcore_write_s390_system_call): Likewise.
* elf.c (elfcore_write_s390_last_break): New function.
(elfcore_write_s390_system_call): Likewise.
(elfcore_write_register_note): Call them.
(elfcore_grok_s390_last_break): New function.
(elfcore_grok_s390_system_call): Likewise.
(elfcore_grok_note): Call them.

12 years agofix incorrect assumption in gdb.ada/watch_arg
brobecke [Tue, 6 Dec 2011 14:00:36 +0000 (14:00 +0000)]
fix incorrect assumption in gdb.ada/watch_arg

The testcase is assuming that the parameter being watched isn't being
modified. But the way the test program is written, this is not true
at all.  So this changes fixes the code to still reference the variable,
but in a way that does not modify its value.

gdb/testsuite:

        * gdb.ada/watch_arg/pck.ads, gdb.ada/watch_arg/pck.adb: New files.
        * gdb.ada/watch_arg/watch.adb: Adjust code to avoid modification
        of parameter X in procedure Foo.

12 years ago * libc/iconv/Makefile.am (stmp-def): Use $(MAKE) rather than make.
corinna [Tue, 6 Dec 2011 10:45:04 +0000 (10:45 +0000)]
* libc/iconv/Makefile.am (stmp-def): Use $(MAKE) rather than make.
* libc/iconv/Makefile.in: Regenerate.

12 years ago*** empty log message ***
gdbadmin [Tue, 6 Dec 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * gdb.trace/tfind.exp: Update help string matches.
shebs [Mon, 5 Dec 2011 23:32:52 +0000 (23:32 +0000)]
* gdb.trace/tfind.exp: Update help string matches.

12 years agodaily update
amodra [Mon, 5 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago2011-12-05 Pedro Alves <pedro@codesourcery.com>
palves [Mon, 5 Dec 2011 18:49:48 +0000 (18:49 +0000)]
2011-12-05  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.c (resume_stopped_resumed_lwps): Call
registers_changed.

12 years agogdb/testsuite/
jkratoch [Mon, 5 Dec 2011 18:27:43 +0000 (18:27 +0000)]
gdb/testsuite/
* gdb.server/ext-run.exp (get process list): Accept also systemd
as PID 1.

12 years ago * ld-cris/weakref4.d: Updated pattern match for the message from
nickc [Mon, 5 Dec 2011 17:11:30 +0000 (17:11 +0000)]
* ld-cris/weakref4.d: Updated pattern match for the message from
readelf stating that there are no decoded unwind sections.
* tls-js1.d: Likewise.
* tls-local-63.d: Likewise.
* tls-local-64.d: Likewise.
* tls-und-38.d: Likewise.
* tls-und-42.d: Likewise.
* tls-und-46.d: Likewise.
* tls-und-50.d: Likewise.
* weakref3.d: Likewise.
* weakref4.d: Likewise.

12 years ago * breakpoint.c: Include record.h.
palves [Mon, 5 Dec 2011 16:57:28 +0000 (16:57 +0000)]
* breakpoint.c: Include record.h.
(breakpoints_always_inserted_mode): Return false when the record
target is in use.

12 years ago* sigproc.cc (close_my_readsig): New function.
cgf [Mon, 5 Dec 2011 15:59:06 +0000 (15:59 +0000)]
* sigproc.cc (close_my_readsig): New function.
(_cygtls::signal_exit): Close my_readsig via close_my_readsig(), avoiding
communication with the signal pipe.
(wait_sig): Close my_readsig via close_my_readsig().

12 years ago * mmap.cc (mlock): Replace LOCK_VM_IN_WSL with correct MAP_PROCESS.
corinna [Mon, 5 Dec 2011 15:46:25 +0000 (15:46 +0000)]
* mmap.cc (mlock): Replace LOCK_VM_IN_WSL with correct MAP_PROCESS.
(munlock): Ditto.
* ntdll.h: Rearrange to have all preprocessor definitions at the start
of the file.  Add comments to each definition block.
(MAP_PROCESS): Rename from LOCK_VM_IN_WSL.
(MAP_SYSTEM): Rename from LOCK_VM_IN_RAM.

12 years ago * tc-arm.c (aeabi_set_public_attributes): Correctly set
rearnsha [Mon, 5 Dec 2011 15:43:51 +0000 (15:43 +0000)]
* tc-arm.c (aeabi_set_public_attributes): Correctly set
Tag_ARM_ISA_use and Tag_Thumb_ISA_use.

* gas/arm/attr-any-armv4t.d: New test.
* gas/arm/attr-any-armv4t.s: New file.
* gas/arm/attr-any-thumbv6.d: New test.
* gas/arm/attr-any-thumbv6.s: New file.

12 years ago * gas/config/tc-arm.c (arm_cpu_option_table): Add name_len field.
mgretton [Mon, 5 Dec 2011 14:51:50 +0000 (14:51 +0000)]
* gas/config/tc-arm.c (arm_cpu_option_table): Add name_len field.
(arm_arch_option_table): Likewise.
(arm_option_extension_value_table): Likewise.
(ARM_CPU_OPT): New define.
(ARM_ARCH_OPT): Likewise.
(ARM_EXT_OPT): Likewise.
(arm_cpus): Use ARM_CPU_OPT to initialize.
(arm_archs): Use ARM_ARCH_OPT to initialize.
(arm_extensions): Use ARM_EXT_OPT to initialize.
(arm_parse_extension): Ensure option string matching matches
the whole string.
(arm_parse_cpu): Likewise.
(arm_parse_arch): Likewise.
* gas/testsuite/gas/arm/cmdline-bad-arch.d: New test case.
* gas/testsuite/gas/arm/cmdline-bad-cpu.d: Likewise.

12 years ago2011-12-05 Tristan Gingold <gingold@adacore.com>
gingold [Mon, 5 Dec 2011 14:42:30 +0000 (14:42 +0000)]
2011-12-05  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_read_symtab_symbol): Accept indirect symbols.

12 years agoNot 2012 yet...
palves [Mon, 5 Dec 2011 14:20:06 +0000 (14:20 +0000)]
Not 2012 yet...

12 years ago2012-12-05 Pedro Alves <pedro@codesourcery.com>
palves [Mon, 5 Dec 2011 14:16:50 +0000 (14:16 +0000)]
2012-12-05  Pedro Alves  <pedro@codesourcery.com>

* amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
Reinstate perror_with_name call on ptrace error.  Remove #if 0.
* i386-linux-nat.c (i386_linux_dr_get): Likewise.
* i386bsd-nat.c (i386bsd_dr_get_status): Likewise.

12 years ago2011-12-05 Tristan Gingold <gingold@adacore.com>
gingold [Mon, 5 Dec 2011 14:10:06 +0000 (14:10 +0000)]
2011-12-05  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_write_contents): Handle LC_LOAD_UPWARD_DYLIB.
(bfd_mach_o_read_dylib): Likewise.
(bfd_mach_o_read_command): Likewise.
(bfd_mach_o_bfd_print_private_bfd_data): Likewise.

12 years ago2011-12-05 Tristan Gingold <gingold@adacore.com>
gingold [Mon, 5 Dec 2011 13:48:50 +0000 (13:48 +0000)]
2011-12-05  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_read_command): Add the bfd in the error
message.
(bfd_mach_o_openr_next_archived_file): Use arch name as member name.
(bfd_mach_o_fat_extract): Ditto.

12 years ago* breakpoint.c (init_breakpoint_sal): Remove nested definitions of
ndreys [Mon, 5 Dec 2011 04:10:47 +0000 (04:10 +0000)]
* breakpoint.c (init_breakpoint_sal): Remove nested definitions of
  `i'(-Wshadow).

12 years ago* bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
ndreys [Mon, 5 Dec 2011 03:58:23 +0000 (03:58 +0000)]
* bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).

12 years ago* amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
ndreys [Mon, 5 Dec 2011 03:48:28 +0000 (03:48 +0000)]
* amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
  of `tdep'(-Wshadow).

12 years ago*** empty log message ***
gdbadmin [Mon, 5 Dec 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Sun, 4 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agocorrect name of function
cgf [Sun, 4 Dec 2011 18:40:51 +0000 (18:40 +0000)]
correct name of function

12 years ago* sigproc.cc (cygWFMO): Don't assume that cancellable event is always
cgf [Sun, 4 Dec 2011 18:32:00 +0000 (18:32 +0000)]
* sigproc.cc (cygWFMO): Don't assume that cancellable event is always
available.
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::waitforspace): Use cygWFMO
instead of WaitForMultipleObjects.
(fhandler_dev_dsp::Audio_in::waitfordata): Ditto.
* fhandler_fifo.cc (fhandler_fifo::wait): Ditto.
* fhandler_serial.cc (fhandler_serial::raw_read): Ditto.
(fhandler_serial::raw_write): Ditto.
* fhandler_tty.cc (fhandler_pty_slave::read): Ditto.
* select.cc (cygwin_select): Ditto for degenerate case.

12 years ago* sigproc.h (cygWFMO): Move inside "INSIDE_CYGWIN" #ifdef.
cgf [Sun, 4 Dec 2011 18:15:36 +0000 (18:15 +0000)]
* sigproc.h (cygWFMO): Move inside "INSIDE_CYGWIN" #ifdef.

12 years ago* exceptions.cc (exception::handle): Drop abbreviation for "exception" since I
cgf [Sun, 4 Dec 2011 17:58:23 +0000 (17:58 +0000)]
* exceptions.cc (exception::handle): Drop abbreviation for "exception" since I
never remember what it stands for.
(sig_handle_tty_stop): Remove obsolete call to sig_handle_tty_stop.
(_cygtls::call_signal_handler): Rework to grab signal information from
_main_tls if none is set for _my_tls.  Try harder to keep thread locked.
(reset_signal_arrived): Delete.
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use new cygWFMO call
to wait for an event + standard cygwin stuff.  Modify debug output to
acccomodate new function.
* fhandler_console.cc (fhandler_console::read): Replace WaitForMultipleObjects
with cygWFMO.
* fhandler_socket.cc (get_inet_addr): Add comment.
* gendef (_sigdelayed): Remove call to reset_signal_arrived.
* sigproc.cc (_cygtls::signal_exit): Don't close my_readsig here unless we're
in the signal thread.
(create_signal_arrived): Create signal_arrived as auto-reset so that only one
thread is woken when a signal arrives.
* sigproc.h (cygWFMO): New function.
(reset_signal_arrived): Delete declaration.

12 years ago*** empty log message ***
gdbadmin [Sun, 4 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago* mmap.cc (mlock): Add standard syscall return value debugging output.
cgf [Sat, 3 Dec 2011 23:55:21 +0000 (23:55 +0000)]
* mmap.cc (mlock): Add standard syscall return value debugging output.
(munlock): Ditto.
(posix_madvise): Ditto.
* signal.cc: Remove obsolete sigcatchers stuff throughout.
(sigaction_worker): Add function name parameter and use it to show standard
syscall return value debugging output.  Also add fault protection.
(sigaction): Accommodate extra argument to sigaction_worker.
(siginterrupt): Ditto.
* syscalls.cc (read): Remove obsolete sigcatchers stuff.
(readv): Ditto.

12 years agofix incorrectly named file in old ChangeLog entry
cgf [Sat, 3 Dec 2011 23:49:03 +0000 (23:49 +0000)]
fix incorrectly named file in old ChangeLog entry

12 years ago * mmap.cc (mlock): Drop requesting SE_LOCK_MEMORY_PRIVILEGE. Drop
corinna [Sat, 3 Dec 2011 23:03:13 +0000 (23:03 +0000)]
* mmap.cc (mlock): Drop requesting SE_LOCK_MEMORY_PRIVILEGE.  Drop
outdated comment.  Call NtLockVirtualMemory with LOCK_VM_IN_WSL flag.
(munlock): Drop requesting SE_LOCK_MEMORY_PRIVILEGE.  Call
NtUnlockVirtualMemory with LOCK_VM_IN_WSL flag.

12 years agodaily update
amodra [Sat, 3 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agoThroughout, remove extra space after function name from debugging output.
cgf [Sat, 3 Dec 2011 21:43:25 +0000 (21:43 +0000)]
Throughout, remove extra space after function name from debugging output.
Throughout, change syscalls to report on return values using new %R format
option.
* smallprint.cc (__small_vsprintf): Add parsing for %R to report on return
values and possible errno from syscalls.
* errno.cc (errmap): Add PRIVILEGE_NOT_HELD.
* fhandler_tty.cc (fhandler_pty_master::setup): When creating a thread use
shorter name to reduce debuggging output.
* select.cc (start_thread_pipe): Ditto.
(start_thread_serial): Ditto.
(start_thread_socket): Ditto.
(start_thread_mailslot): Ditto.
* sigproc.cc (talktome): Ditto.

12 years ago * fhandler.cc (fhandler_base::open): Fix comment a bit more.
corinna [Sat, 3 Dec 2011 20:35:35 +0000 (20:35 +0000)]
* fhandler.cc (fhandler_base::open): Fix comment a bit more.

12 years agogdb/testsuite/
jkratoch [Sat, 3 Dec 2011 20:20:28 +0000 (20:20 +0000)]
gdb/testsuite/
* gdb.base/break-entry.exp: Move the target use_gdb_stub test before
starting GDB.
* gdb.base/default.exp: Replace target use_gdb_stub checks by global
$use_gdb_stub.
* gdb.base/display.exp: Likewise.
* gdb.base/ending-run.exp: Likewise.
* gdb.base/list.exp (test_listsize): Likewise.
* gdb.base/setshow.exp: Likewise.
* gdb.base/valgrind-db-attach.exp: Set global use_gdb_stub to 1.
* lib/gdb.exp (gdb_run_cmd, gdb_start_cmd): Replace target use_gdb_stub
check by global $use_gdb_stub.
(gdb_test_multiple): Forbid run, start or attach for !$use_gdb_stub.
(default_gdb_start): Set global use_gdb_stub from target use_gdb_stub.
(default_gdb_init): Unset global $use_gdb_stub.
(gdb_continue_to_end, rerun_to_main): Replace target use_gdb_stub check
by global $use_gdb_stub.
* lib/gdbserver-support.exp: Extend comments for set_board_info
gdb_protocol and gdb,socketport.
(gdbserver_start_extended): Set global gdbserver_protocol and
gdbserver_gdbport.  Clear global use_gdb_stub.
* lib/mi-support.exp (default_mi_gdb_start): Set global use_gdb_stub
from target use_gdb_stub.
(mi_run_cmd): Replace target use_gdb_stub check by global $use_gdb_stub.

12 years agosim: bfin: lookup target strings when tracing system calls
vapier [Sat, 3 Dec 2011 19:05:15 +0000 (19:05 +0000)]
sim: bfin: lookup target strings when tracing system calls

Parsing target addresses is hard if not generally useless, so use the new
cb_get_string function to lookup the associated strings as well.  Now the
trace output is quickly useful instead of just marginally so.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agosim: export cb_get_string for people to use
vapier [Sat, 3 Dec 2011 18:39:43 +0000 (18:39 +0000)]
sim: export cb_get_string for people to use

The common sim code provides a useful "get_string" function which reads
a C string out of the target's memory space.  So rename and export it
for other people to use.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agogdb/
jkratoch [Sat, 3 Dec 2011 18:32:28 +0000 (18:32 +0000)]
gdb/
Fix compilation --without-expat.
* solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
from ...
[HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.

12 years agosim: generate build dependencies on the fly
vapier [Sat, 3 Dec 2011 18:23:43 +0000 (18:23 +0000)]
sim: generate build dependencies on the fly

Lift the code that GDB is using to generate dependencies on the fly and
port it over to the sim.  Now people shouldn't have to manually maintain
these in their Makefile's.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago * lib/gdb.exp (gdb_run_cmd, gdb_start_cmd, run_to_main): Add comments.
devans [Sat, 3 Dec 2011 18:01:49 +0000 (18:01 +0000)]
* lib/gdb.exp (gdb_run_cmd, gdb_start_cmd, run_to_main): Add comments.
(gdb_step_for_stub): Add comments.

12 years ago2011-12-03 David Daney <david.daney@cavium.com>
daney [Sat, 3 Dec 2011 17:13:01 +0000 (17:13 +0000)]
2011-12-03 David Daney <david.daney@cavium.com>

* ld-bootstrap/bootstrap.exp: Use consistent flags for final link
in ia64 and mips cases.

12 years ago * fhandler.cc (fhandler_base::open): Fix typos in comment.
corinna [Sat, 3 Dec 2011 14:21:29 +0000 (14:21 +0000)]
* fhandler.cc (fhandler_base::open): Fix typos in comment.

12 years agogas/testsuite/
rsandifo [Sat, 3 Dec 2011 10:29:53 +0000 (10:29 +0000)]
gas/testsuite/
* gas/mips/mips.exp (run_dump_test_arch): Add an opts parameter.
(run_dump_test_arches): Allow additional options to be passed.
(run_list_test_arch): Add opts to the name.
(run_list_test_arches): Allow the options to be elided.
(mips4-fp, mips5-fp): Run twice, one with -32 and once with -mabi=o64.
(mips64r2-ill, octeon-ill): Remove empty options string.

12 years ago PR ld/13468
amodra [Sat, 3 Dec 2011 10:29:01 +0000 (10:29 +0000)]
PR ld/13468
* elflink.c (bfd_elf_final_link): Don't segfault when checking
for DT_TEXTREL and .dynamic does not exist.

12 years ago PR ld/13470
amodra [Sat, 3 Dec 2011 00:55:48 +0000 (00:55 +0000)]
PR ld/13470
* elf32-ppc.c (ppc_elf_copy_indirect_symbol): Revert substantive
change in 2011-07-01 commit.  Comment.
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.

12 years ago*** empty log message ***
gdbadmin [Sat, 3 Dec 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * lib/gdb.exp (gdb_expect): Pass all the exception conditions up
macro [Fri, 2 Dec 2011 23:58:00 +0000 (23:58 +0000)]
* lib/gdb.exp (gdb_expect): Pass all the exception conditions up
to the caller.
(gdb_test_multiple): Likewise.

12 years agodaily update
amodra [Fri, 2 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agogdb/testsuite/
jkratoch [Fri, 2 Dec 2011 22:35:17 +0000 (22:35 +0000)]
gdb/testsuite/
Fix gdb.mi/mi-solib.exp without system debug info installed.
* lib/mi-support.exp (mi_expect_stop): Accept FILE also for `from'
expect attribute, return 0 for it.  Update comments.

12 years agogdb/
jkratoch [Fri, 2 Dec 2011 22:26:50 +0000 (22:26 +0000)]
gdb/
* Makefile.in (XMLFILES): Add library-list-svr4.dtd.
* features/library-list-svr4.dtd: New file.
* remote.c (PACKET_qXfer_libraries_svr4): New.
(remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
(remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
* solib-svr4.c (struct svr4_library_list): New.
[HAVE_LIBEXPAT]: Include xml-support.h.
[HAVE_LIBEXPAT] (svr4_library_list_start_library)
[HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
[HAVE_LIBEXPAT] (svr4_library_list_children)
[HAVE_LIBEXPAT] (svr4_library_list_attributes)
[HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
[HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
[!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
(svr4_read_so_list): Extend the corruption message by addresses.
(svr4_current_sos): New variable library_list, call
svr4_current_sos_via_xfer_libraries.
* target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.

gdb/gdbserver/
* linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
(read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
New.
(struct linux_target_ops): Install linux_qxfer_libraries_svr4.
* linux-low.h (struct process_info_private): New member r_debug.
* server.c (handle_qxfer_libraries): Call
the_target->qxfer_libraries_svr4.
(handle_qxfer_libraries_svr4): New function.
(qxfer_packets): New entry "libraries-svr4".
(handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
* target.h (struct target_ops): New member qxfer_libraries_svr4.
* remote.c (remote_xfer_partial): Call add_packet_config_cmd for
PACKET_qXfer_libraries_svr4.

gdb/doc/
* gdb.texinfo (Requirements, Remote Protocol): Reference also `Library
List Format for SVR4 Targets'.
(General Query Packets): New item qXfer:libraries-svr4:read.
(Library List Format for SVR4 Targets): New node.

gdb/testsuite/
* gdb.base/solib-corrupted.exp: Suppress test on is_remote target.
(corrupted list): Adjust the expectation.

12 years ago * readelf.c (ia64_process_unwind): Turn into a void funtion.
nickc [Fri, 2 Dec 2011 17:04:32 +0000 (17:04 +0000)]
* readelf.c (ia64_process_unwind): Turn into a void funtion.
(hppa_process_unwind): Likewise.
(arm_process_unwind): Likewise.
(process_unwind): Likewise.
(arm_get_section_word): Rename to get_unwind_section_word.
Add sym_name parameter to return the offset into the string table
of the symbol associated with the reloc applied to the word.
(decode_tic6x_unwind_regmask): Add NULL argument to invocation of
get_unwind_section_word.
(dump_arm_unwind): Likewise.
(decode_arm_unwind_bytecode): Prepend a comma when *not* the first
register in a list.
(decode_arm_unwind): If the returned function address is 0 and a
valid symname offset is provided use that to compute the name
associated with the entry.
Add extra checks of the compact model index entry.

12 years agogdb/
jkratoch [Fri, 2 Dec 2011 17:01:17 +0000 (17:01 +0000)]
gdb/
PR threads/13448
* dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
For DW_OP_GNU_push_tls_address increment the value, new comment for it.

gdb/testsuite/
PR threads/13448
* gdb.dwarf2/dw2-var-zero-addr.S: New file.
* gdb.dwarf2/dw2-var-zero-addr.exp: New file.
* gdb.threads/tls-var-main.c: New file.
* gdb.threads/tls-var.c: New file.
* gdb.threads/tls-var.exp: New file.

12 years ago * Makefile.in (cygpath.exe): Add -luserenv to ALL_LDFLAGS.
corinna [Fri, 2 Dec 2011 16:15:25 +0000 (16:15 +0000)]
* Makefile.in (cygpath.exe): Add -luserenv to ALL_LDFLAGS.
* cygpath.cc: Throughout, use cygwin_conv_path WIN_W rather than WIN_A
conversion.
(get_long_path_name_w32impl): Remove.
(get_long_name): Drop pre-Windows 2000 accommodations.  Just call
GetLongPathNameW here directly.
(get_special_folder): Convert first parameter to WCHAR buffer pointer.
Drop conversion of result from WCHAR * to char *.
(do_sysfolders): Accommodate change to get_special_folder and only
convert result to char * last.  Drop pre-Windows 2000 accommodations
and just call GetProfilesDirectoryW directly.  Replace call to
GetWindowsDirectoryW with call to GetSystemWindowsDirectoryW.
Just call GetShortPathNameW directly.
(do_pathconv): Simplify buffer handling.

12 years ago * path.cc (conv_path_list): Take cygwin_conv_path_t as third parameter.
corinna [Fri, 2 Dec 2011 16:06:08 +0000 (16:06 +0000)]
* path.cc (conv_path_list): Take cygwin_conv_path_t as third parameter.
Allow all types of CCP conversions.  Accommodate throughout.
(cygwin_conv_path): Use current ANSI or OEM codepage for WIN_A
conversions, depending on current file API codepage setting.
(cygwin_conv_path_list): Allow all CCP conversion types.
* include/sys/cygwin.h (CCP_CONVTYPE_MASK): Add to cygwin_conv_path_t
enum for convenience.

12 years agogdb/testsuite/
jkratoch [Fri, 2 Dec 2011 12:43:29 +0000 (12:43 +0000)]
gdb/testsuite/
PR testsuite/12649
* gdb.trace/collection.exp (gdb_collect_return_test): Import gdb_prompt.
Protect gdb_test_multiple by final $gdb_prompt match.
* gdb.trace/tspeed.exp (gdb_fast_trace_speed_test): Likewise.
* gdb.trace/tstatus.exp (run_trace_experiment): Likewise.
(test_tracepoints): Likewise.

12 years agogdb/
jkratoch [Fri, 2 Dec 2011 01:28:54 +0000 (01:28 +0000)]
gdb/
PR breakpoints/13346
* dwarf2read.c (process_psymtab_comp_unit): Set
PSYMTABS_ADDRMAP_SUPPORTED.
* psympriv.h (struct partial_symtab): Comment textlow and texthigh
validity.  New field psymtabs_addrmap_supported.
* psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
psymtabs_addrmap_supported.
(find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
!PSYMTABS_ADDRMAP_SUPPORTED.
(dump_psymtab, maintenance_info_psymtabs): Print also
psymtabs_addrmap_supported.

gdb/testsuite/
PR breakpoints/13346
* gdb.dwarf2/dw2-objfile-overlap-inner.S: New file.
* gdb.dwarf2/dw2-objfile-overlap-outer.S: New file.
* gdb.dwarf2/dw2-objfile-overlap.exp: New file.

12 years ago * python/py-type.c (type_object_methods): Fix "array" doc string.
devans [Fri, 2 Dec 2011 00:27:48 +0000 (00:27 +0000)]
* python/py-type.c (type_object_methods): Fix "array" doc string.

12 years ago*** empty log message ***
gdbadmin [Fri, 2 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoMake sure all types in gdb.ada/homonym testcase are used...
brobecke [Thu, 1 Dec 2011 23:16:44 +0000 (23:16 +0000)]
Make sure all types in gdb.ada/homonym testcase are used...

Otherwise, the compiler does not generate any debug info for them.
This fixes 3 FAILs:

    FAIL: gdb.ada/homonym.exp: ptype local_type_subtype at BREAK_1
    FAIL: gdb.ada/homonym.exp: ptype int_type at BREAK_1
    FAIL: gdb.ada/homonym.exp: ptype local_type_subtype at BREAK_2

gdb/testsuite/ChangeLog:

        * gdb.ada/homonym/pck.ads, gdb.ada/homonym/pck.adb: New files.
        * gdb.ada/homonym/homonym.adb: For use of all types defined
        locally inside both Get_Value subprograms.

12 years agodaily update
amodra [Thu, 1 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agogdb/testsuite/
jkratoch [Thu, 1 Dec 2011 22:06:45 +0000 (22:06 +0000)]
gdb/testsuite/
Fix racy FAILs.
* gdb.base/foll-exec.exp (zap_session): Use gdb_test_no_output instead
of send_gdb.

12 years ago * gdb.texinfo (Writing a Pretty-Printer): Use append method, not
tromey [Thu, 1 Dec 2011 20:27:27 +0000 (20:27 +0000)]
* gdb.texinfo (Writing a Pretty-Printer): Use append method, not
add.

12 years ago * elf32-m68k.c (elf_m68k_check_relocs) <R_68K_8, R68K_16, R_68K_32>: For
nickc [Thu, 1 Dec 2011 15:50:56 +0000 (15:50 +0000)]
* elf32-m68k.c (elf_m68k_check_relocs) <R_68K_8, R68K_16, R_68K_32>: For
non-SEC_ALLOC sections break before GOT and PLT accounting.

12 years ago * mkgroup.c: Drop support for NT4 domains.
corinna [Thu, 1 Dec 2011 13:06:13 +0000 (13:06 +0000)]
* mkgroup.c: Drop support for NT4 domains.
* mkpasswd.c: Ditto.
(psx_dir): Remove.
(current_user): Drop support for -m option.  Use $HOME as is since it's
a POSIX path anyway.
(enum_users): Drop support for -m option.
(usage): Mention -m option as ignored.
(main): Drop support for -m option.  Mark ignored options as deprecated.
* utils.sgml (mkpasswd): Remove description of -m option.

12 years ago * emultempl/spuelf.em (spu_elf_relink): Use pex_one in place
nickc [Thu, 1 Dec 2011 11:38:32 +0000 (11:38 +0000)]
* emultempl/spuelf.em (spu_elf_relink): Use pex_one in place
of execvp.

12 years agohttp://sourceware.org/ml/gdb-patches/2011-11/msg00778.html
aburgess [Thu, 1 Dec 2011 10:37:06 +0000 (10:37 +0000)]
sourceware.org/ml/gdb-patches/2011-11/msg00778.html

* source.c (print_source_lines_base): Fix missing braces on else clause
leading to additional output.

12 years ago * elf32-cris.c (cris_elf_check_relocs) <plt accounting for
hp [Thu, 1 Dec 2011 02:51:11 +0000 (02:51 +0000)]
* elf32-cris.c (cris_elf_check_relocs) <plt accounting for
R_CRIS_8, R_CRIS_16, and R_CRIS_32>: Move early break for
non-SEC_ALLOC sections before GOT and PLT accounting.

12 years ago2011-11-30 Ozkan Sezer <sezero@users.sourceforge.net>
ironhead [Thu, 1 Dec 2011 00:24:35 +0000 (00:24 +0000)]
2011-11-30  Ozkan Sezer  <sezero@users.sourceforge.net>

        * include/io.h (_wfindfirst, _wfindnext, _wfindfirst32, _wfindnext32,
        _wfindfirsti64, _wfindnexti64, _wfindfirst32i64, _wfindfirst64i32,
        _wfindnext32i64, _wfindnext64i32, _wfindnext64): Update to use intptr_t.

12 years ago2011-11-30 Earnie Boyd <earnie@users.sourceforge.net>
ironhead [Thu, 1 Dec 2011 00:13:52 +0000 (00:13 +0000)]
2011-11-30  Earnie Boyd  <earnie@users.sourceforge.net>

        * include/stdio.h (getc, putc, getchar, putchar, fopen64, ftello64): Add
        function definitions to fix warnings when building GCC.

12 years ago*** empty log message ***
gdbadmin [Thu, 1 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago2011-11-30 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
ironhead [Wed, 30 Nov 2011 23:49:46 +0000 (23:49 +0000)]
2011-11-30  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>

        * tlssup.c (__dyn_tls_init): Reapply patch from 3105314.

        Thank you to Earnie for creating the patch file.