aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-05-202011-05-20 Pedro Alves <pedro@codesourcery.com>Pedro Alves5-36/+73
gdb/ * infcmd.c: Include "inf-loop.h". (step_once): When stepping into an inline subroutine, pretend the target has run. If the target can async, switch the inferior event loop to INF_EXEC_COMPLETE. * inferior.h (user_visible_resume_ptid): Declare. * infrun.c (user_visible_resume_ptid): New function, factored out from `resume'. (resume): Use it. * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion that the current thread is running. Merge async and sync branches.
2011-05-202011-05-20 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-13/+15
gdb/ * infcmd.c (step_1): Simplify synchronous case.
2011-05-20 PR 12763Alan Modra4-27/+61
* ld-elf/tdata3.s: New test. * ld-elf/tbss3.s: New test. * ld-elf/binutils.exp: Consolidate tbss and tdata tests.
2011-05-20 PR 12763Alan Modra2-12/+35
* elf.c (_bfd_elf_make_section_from_shdr): Set up TLS section LMAs from PT_TLS header. (_bfd_elf_map_sections_to_segments): Don't create a final PT_LOAD segment if just for .tbss. (assign_file_positions_for_load_sections): Don't report "can't allocate in segment" errors for .tbss. (assign_file_positions_for_non_load_sections): Don't set p_filesz from SHT_NOBITS section filepos.
2011-05-202011-05-20 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-40/+72
gdb/ * tracepoint.c: Include exceptions.h. (TFILE_PID): Move higher in file. (tfile_open): Delay pushing the tfile target until we're assured the tfile header is present in the file. Wrap reading the initial newline-terminated lines in TRY_CATCH. Pop the target if the initial setup failed. Add the tfile's thread immediately aftwards, before any non-essential setup. Don't skip post_create_inferior if there are no traceframes present in the file. (tfile_close): Remove redundant check for null before xfree call. (tfile_thread_alive): New function. (init_tfile_ops): Register it as to_thread_alive callback.
2011-05-202011-05-20 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-5/+4
gdb/ * tracepoint.c (tfile_open): Delete #if 0'd code.
2011-05-20 * lib/gdb.exp (gdb_test_list_exact): Suggest use of doublePierre Muller3-4/+11
quote pattern to avoid problems with Cygwin/mingw expect versions. * gdb.base/default.exp (show convenience): Use double quote pattern for regular expressions.
2011-05-20 ld/testsuite/Bernd Schmidt15-136/+473
* ld-tic6x/pcr-reloc.d: New test. * ld-tic6x/pcr-reloc.s: New test. gas/testsuite/ * gas/tic6x/pcr-relocs.d: New test. * gas/tic6x/pcr-relocs.s: New test. * gas/tic6x/pcr-relocs-undef.d: New test. * gas/tic6x/pcr-relocs-undef.s: New test. * gas/tic6x/reloc-bad-2.s: Update for pcr_offset. * gas/tic6x/reloc-bad-2.l: Update for pcr_offset. bfd/ * elf32-tic6x.c (elf32_tic6x_howto_table): Add entries for R_C6000_PCR_H16 and R_C6000_PCR_L16. (elf32_tic6x_relocate_section): Handle them. gas/ * config/tc-tic6x.c (tic6x_operators): Add "pcr_offset". (tic6x_parse_name): Handle it. (tic6x_fix_new_exp): Handle O_pcr_offset. (tic6x_fix_adjustable): Return 0 for the new relocs. (md_apply_fix): Handle them. (tc_gen_reloc): Likewise. * config/tc-tic6x.h (tic6x_fix_info): Add a fix_subsy member.
2011-05-20gdb/Jan Kratochvil5-13/+161
Fix -readnow for -gdwarf-4 unused type units. * dwarf2read.c (struct signatured_type): Remove the field offset. (create_signatured_type_table_from_index): Remove its initialization. (create_debug_types_hash_table): Likewise. Initialize per_cu.offset instead. Add a complaint call. (process_psymtab_comp_unit): Change assignment to gdb_assert. (process_type_comp_unit, lookup_die_type, dump_die_shallow) (lookup_signatured_type_at_offset, read_signatured_type) (write_one_signatured_type): Update the field for per_cu. gdb/testsuite/ Fix -readnow for -gdwarf-4 unused type units. * gdb.dwarf2/dw4-sig-type-unused.S: New file. * gdb.dwarf2/dw4-sig-type-unused.exp: New file.
2011-05-20*** empty log message ***gdbadmin1-1/+1
2011-05-20daily updateAlan Modra1-1/+1
2011-05-19 * python/py-inferior.c (python_inferior_exit): UseTom Tromey2-2/+8
target_gdbarch. (python_on_resume): Likewise.
2011-05-192011-05-19 Matt Rice <ratmice@gmail.com>Tom Tromey2-0/+6
* breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2011-05-192011-05-19 Hui Zhu <teawater@gmail.com>Hui Zhu2-0/+10
* tracepoint.c (tfile_trace_find): Return directly when num is -1.
2011-05-19 * v850-opc.c (cmpf.[sd]): Reverse the order of the reg1 and reg2Nick Clifton2-4/+9
operands.
2011-05-192011-05-19 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+5
* xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2011-05-19*** empty log message ***gdbadmin1-1/+1
2011-05-18 * dwarf2read.c (dwarf2_add_field): Constify.Tom Tromey5-5/+13
* value.c (value_static_field): Constify. * gdbtypes.h (struct main_type) <field.field_location.physname>: Now const. * ax-gdb.c (gen_static_field): Constify
2011-05-18gdb/Jan Kratochvil5-0/+87
* linux-nat.c (kill_callback): Use SIGKILL first. gdb/testsuite/ * gdb.base/kill-after-signal.c: New file. * gdb.base/kill-after-signal.exp: New file.
2011-05-18Remove one use of sprintf in ada-lang.c (print_it_exception)Joel Brobecker2-1/+5
This is just a minor cleanup of an ARI violation. As this affects code that is normally unreachable (you'd need a runtime where the unit providing the exception hook has been compiled without debugging information), I tested this manually by commenting out the code just above, thus forcing this part of the code to be exercised. gdb/ChangeLog: * ada-lang.c (print_it_exception): Avoid use of sprintf. Tested on x86_64-linux.
2011-05-18 PR binutils/12753Nick Clifton6-1/+55
* nm.c (filter_symbols): Treat unique symbols as global symbols. * doc/binutils.texi (nm): Mention that some lowercase letters actually indicate global symbols. * lib/utils-lib.exp (run_dump_test): Allow nm as a program. * binutils-all/nm.exp: Test running "nm -g" on an object file containing a unique symbol.
2011-05-18 * value.c (value_fn_field): Constify.Tom Tromey11-29/+58
* symtab.c (gdb_mangle_name): Constify. * stabsread.c (update_method_name_from_physname): Make 'physname' argument const. * p-typeprint.c (pascal_type_print_method_args): Make arguments const. Use explicit fputc_filtered loop. (pascal_type_print_base): Constify. * p-lang.h (pascal_type_print_method_args): Update. * linespec.c (add_matching_methods): Constify. (add_constructors): Likewise. * jv-typeprint.c (java_type_print_base): Constify. * gdbtypes.h (struct cplus_struct_type) <fn_fieldlist.fn_field.physname>: Now const. * dwarf2read.c (compute_delayed_physnames): Constify. (dwarf2_add_member_fn): Likewise. * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2011-05-18 * gas/arm/req.l: Updated expected warning message.Nick Clifton2-1/+5
2011-05-182011-05-18 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-2/+17
gdb/ * infrun.c (resume): Mention which is the current thread, and its current PC in debug output. (prepare_to_proceed): Mention the thread switching in debug output.
2011-05-18 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absoluteTom Tromey2-31/+33
path check. Use xmalloc and cleanups. (try_thread_db_load_from_dir): Use xmalloc and cleanups.
2011-05-18 PR ld/12761Nick Clifton5-12/+45
* elflink.c (elf_link_add_object_symbols): Process .gnu.warning sections when building shared libraries. * lib/ld-lib.exp (run_cc_link_tests): Add an optional 8th parameter - an expected warning message from the linker. * ld-elf/shared.exp (build_tests): Expect a warning message when building the libbarw.so library. * ld-elf/shared.exp: Run library building tests even when not building a native toolchain.
2011-05-18 PR gas/12754Nick Clifton2-1/+7
* config/tc-tic30.c (ordinal_names): Allow translation of the ordinal names.
2011-05-18 PR ld/12778Nick Clifton2-2/+8
* elf32-arm.c (elf32_arm_gc_sweep_hook): Use the computed dynamic reloc pointer.
2011-05-18 * config/tc-arm.c (s_unreq): Reword warning message to make itNick Clifton5-5/+15
easier to translate. * config/tc-ia64.c (md_show_usage): Add note for translators. * configure.in (ALL_LINGUAS): Add "fi". * configure: Regenerate.
2011-05-182011-05-18 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-11/+27
* xcofflink.c (xcoff_link_add_symbols): Handle C_DWARF symbols. (xcoff_sweep): Always keep dwarf sections. (xcoff_link_input_bfd): Handle dwarf symbols and sections.
2011-05-18bfdTristan Gingold13-23/+392
2011-05-18 Tristan Gingold <gingold@adacore.com> * libxcoff.h (struct xcoff_dwsect_name): New type. (XCOFF_DWSECT_NBR_NAMES): New macro. (xcoff_dwsect_names): Declare. * coffcode.h (sec_to_styp_flags): Handle xcoff dwarf sections. (styp_to_sec_flags): Ditto. (coff_new_section_hook): Ditto. (coff_slurp_symbol_table): Handle C_DWARF and C_INFO. * coff-rs6000.c (xcoff_dwsect_name): New variable. gas 2011-05-18 Tristan Gingold <gingold@adacore.com> * config/tc-ppc.h (ppc_tc_sy): Reorder fields. Put size into an union with dw. (OBJ_COPY_SYMBOL_ATTRIBUTES): Adjust. (ppc_xcoff_end): Declare. (md_end): Define. * config/tc-ppc.c: Add includes for xcoff. (ppc_dwsect): New function. (md_pseudo_table): Add dwsect. (struct dw_subsection): New. (dw_sections): New. (ppc_change_debug_section): New function. (ppc_xcoff_end): Ditto. (ppc_function): Adjust for ppc_tc_sy. (ppc_symbol_new_hook): Ditto. (ppc_frob_symbol): Ditto. (ppc_frob_section): Do not set vma for debug sections. (ppc_fix_adjustable): Return true for debug sections. * config/obj-coff.c: Add includes for xcoff. (coff_frob_section): Handle dwarf section. gas/testsuite 2011-05-18 Tristan Gingold <gingold@adacore.com> * gas/ppc/xcoff-dwsect-1-32.d: New test. * gas/ppc/xcoff-dwsect-1-64.d: Ditto. * gas/ppc/xcoff-dwsect-1.s: New file. * gas/ppc/aix.exp (do_align_test): Add tests.
2011-05-18*** empty log message ***gdbadmin1-1/+1
2011-05-18daily updateAlan Modra1-1/+1
2011-05-17 * cp-valprint.c (cp_print_value_fields): Catch errors fromTom Tromey2-3/+18
value_static_field.
2011-05-17 * dwarf2read.c (dwarf2_get_die_type): CallTom Tromey3-15/+10
get_die_type_at_offset. * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from get_base_type function.
2011-05-17 * po/fi.po: New Finnish translation.Nick Clifton3-8065/+26633
* po/fr.po: Updated French translation.
2011-05-17 * config/tc-m32r.c (md_show_usage): Fix typos in descriptions.Nick Clifton5-10/+17
* config/tc-mt.c (md_assemble): Fix typos in warning messages. * cond.c (s_else): Fix typos in error messages. * config/tc-pj.c (md_assemble): Fix typo in error message.
2011-05-17 * strsignal.c (psignal): Change second parameter to const char *.Corinna Vinschen2-2/+7
Fix comment accordingly.
2011-05-17 PR ld/12759Nick Clifton4-20/+61
* emultempl/rxelf.em (ignore_lma): New variable. (rx_elf_create_output_section_statements): Pass the setiing of ignore_lma to bfd_elf32_rx_set_target_flags. (OPTION_IGNORE_LMA): Define. (OPTION_NO_IGNORE_LMA): Define. (PARSE_AND_LIST_LONGOPTS): Add ignore lma. (PARSE_AND_LIST_OPTIONS): Add ignore lma. (PARSE_AND_LIST_ARGS_CASES): Add ignore lma. * elf32-rx.c (ignore_lma): New variable. (bfd_elf32_rx_set_target_flags): Add ignore_lma parameter. (rx_modify_program_headers): Only copy the LMA into the VMA if ignore_lma is true.
2011-05-172011-05-17 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-8/+34
gdb/doc/ * gdb.texinfo (Remote Protocol) <Overview>: Mention vCont is required for multi-threading support. (Remote Protocol) <Packets>: Mention that 'c', 's', 'C', 'S' and Hc are deprecated for multi-threading debugging. Point readers at the vCont packet.
2011-05-17 PR ld/12760Alan Modra9-15/+70
include/ * bfdlink.h (struct bfd_link_callbacks <notice>): Add "flags" and "string" param. bfd/ * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Adjust "notice" call. * elflink.c (elf_link_add_object_symbols): Likewise. * linker.c (_bfd_generic_link_add_one_symbol): Likewise. ld/ * ldmain.c (notice): Add "flags" and "string" param. * plugin.c (plugin_notice): Likewise. Handle indirect, warning and constructor syms.
2011-05-172011-05-17 Tomas Martinec <fyzmat@gmail.com>Pedro Alves2-0/+7
gdb/ * infrun.c (handle_inferior_event) <handling deferred step>: Clear trap_expected.
2011-05-17*** empty log message ***gdbadmin1-1/+1
2011-05-17daily updateAlan Modra1-1/+1
2011-05-16 * options.h (class General_options): Make -i a synonym for -r.Ian Lance Taylor2-3/+6
2011-05-16 * testsuite/tls_test_main.cc: Use semaphores instead of mutexes.Ian Lance Taylor2-39/+41
2011-05-16sim: tests: support .S/.c filesMike Frysinger2-9/+47
Rather than requiring all sim tests to be preprocessed .s files, add support for .S and .c files so we can easily write code using a higher level language like C. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-16 * python/py-auto-load.c (source_section_scripts): Mention objfileDoug Evans2-2/+8
name in warning.
2011-05-162011-05-16 Adrian Cornish <gnu@bluedreamer.com>Tom Tromey2-1/+6
* linux-i386-ipa.c (supply_static_tracepoint_registers): Pass __FILE__ and __LINE__ to internal_error.
2011-05-162011-05-16 Pedro Alves <pedro@codesourcery.com>Pedro Alves19-47/+78
gdb/testsuite/ * gdb.ada/start.exp: Call untested with the correct test filename. * gdb.arch/i386-bp_permanent.exp: Call untested with the correct test filename. Make the test's binary unique. * gdb.arch/i386-signal.exp: Call untested with the correct test filename. * gdb.arch/i386-size-overlap.exp: Ditto. * gdb.arch/Makefile.in (EXECUTABLES): Update. * gdb.base/gcore-buffer-overflow.exp: Ditto. * gdb.cp/call-c.exp: Ditto. * gdb.mi/mi-reverse.exp: Call untested with the correct test filename. Make the test's binary unique. * gdb.mi/Makefile.in (EXECUTABLES): Update. * gdb.python/py-mi.exp: Ditto. * gdb.python/Makefile.in (EXECUTABLES): Update. * gdb.reverse/i386-precsave.exp: Ditto. * gdb.reverse/i387-env-reverse.exp: Call untested with the correct test filename. * gdb.reverse/i387-stack-reverse.exp: Ditto. * gdb.reverse/sigall-precsave.exp: Ditto. Make the test's binary unique. * gdb.reverse/sigall-reverse.exp: Call untested with the correct test filename. * gdb.reverse/Makefile.in (EXECUTABLES): Update. * gdb.trace/tfile.exp: Ditto.