aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-09-16Only run pr12975/pr13177 for *-*-linux* and *-*-gnu* targets.H.J. Lu4-2/+12
2011-09-16 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/pr12975.d: Only run for *-*-linux* and *-*-gnu* targets. * ld-elf/pr13177.d: Likewise. * ld-elf/pr13177.s: Avoid relocations in text sections.
2011-09-162011-09-16 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-52/+44
* fork-child.c (fork_inferior): Update comment. Use alloca instead of xmalloc for argv. Move len and shell_command declarations in the block where they are used. Only call execvp. Factorize failure code.
2011-09-16gdb/Jan Kratochvil3-17/+28
Code cleanup. * parse.c (write_exp_elt): Change argument to pass a pointer of union `exp_element' instead of an element of the same and make the function static. (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block) (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst) (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern): Change argument of `write_exp_elt' function call. Remove extra spaces from comments. * parser-defs.h (write_exp_elt): Remove prototype.
2011-09-162011-09-16 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+6
* gdb.texinfo (Tracepoint Restrictions): Change *$esp@300 to *(unsigned char *)$esp@300.
2011-09-16gdb/testsuite/Jan Kratochvil2-3/+8
* gdb.python/py-evthreads.exp (Run to breakpoint 1) (reached breakpoint 2, reached breakpoint 3): Update expected output.
2011-09-16Remove the group section if all members are removed.H.J. Lu6-2/+56
binutils/ 2011-09-15 H.J. Lu <hongjiu.lu@intel.com> PR binutils/13180 * objcopy.c (is_strip_section_1): New. (is_strip_section): Use it. Remove the group section if all members are removed. binutils/testsuite/ 2011-09-15 H.J. Lu <hongjiu.lu@intel.com> PR binutils/13180 * binutils-all/group-6.d: New. * binutils-all/group-6.s: Likewise. * binutils-all/objcopy.exp: Run group-6 for ELF targrts.
2011-09-16Also hide symbols without PLT nor GOT references.H.J. Lu5-5/+42
bfd/ 2011-09-15 H.J. Lu <hongjiu.lu@intel.com> PR ld/13177 * elflink.c (elf_gc_sweep_symbol): Also hide symbols without PLT nor GOT references. ld/testsuite/ 2011-09-15 H.J. Lu <hongjiu.lu@intel.com> PR ld/13177 * ld-elf/pr13177.d: New. * ld-elf/pr13177.s: Likewise.
2011-09-16Check if a symbol is hidden by linker script.H.J. Lu18-53/+148
bfd/ 2011-09-15 H.J. Lu <hongjiu.lu@intel.com> PR ld/12975 * bfd-in.h (bfd_elf_size_dynamic_sections): Remove pointer to struct bfd_elf_version_tree. * elflink.c (elf_info_failed): Remove verdefs. (_bfd_elf_export_symbol): Updated. _bfd_elf_link_assign_sym_version): Likewise. (bfd_elf_size_dynamic_sections): Remove pointer to struct bfd_elf_version_tree. Updated. (bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is hidden by linker script. * linker.c (bfd_hide_sym_by_version): New. * bfd-in2.h: Regenerated. include/ 2011-09-15 H.J. Lu <hongjiu.lu@intel.com> PR ld/12975 * bfdlink.h (bfd_link_info): Add version_info. ld/ 2011-09-15 H.J. Lu <hongjiu.lu@intel.com> PR ld/12975 * ldlang.c (lang_elf_version_info): Removed. (lang_register_vers_node): Replace lang_elf_version_info with link_info.version_info. (lang_add_vers_depend): Likewise. * pe-dll.c (process_def_file_and_drectve): Likewise. * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise. * ldlang.h (lang_elf_version_info): Removed. * plugin.c (is_visible_from_outside): Check if symbol is hidden by version script. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Remove lang_elf_version_info. ld/testsuite/ 2011-09-15 H.J. Lu <hongjiu.lu@intel.com> PR ld/12975 * ld-elf/pr12975.d: New. * ld-elf/pr12975.s: Likewise. * ld-elf/pr12975.t: Likewise.
2011-09-16*** empty log message ***gdbadmin1-1/+1
2011-09-16daily updateAlan Modra1-1/+1
2011-09-15 * server.h (struct emit_ops): Add compare-goto fields.Stan Shebs4-6/+484
* tracepoint.c (gdb_agent_op_sizes): New table. (emit_eq_goto): New function. (emit_ne_goto): New function. (emit_lt_goto): New function. (emit_le_goto): New function. (emit_gt_goto): New function. (emit_ge_goto): New function. (is_goto_target): New function. (compile_bytecodes): Recognize special cases of compare-goto combinations and call specialized emitters for them. * linux-x86-low.c (amd64_emit_eq_goto): New function. (amd64_emit_ne_goto): New function. (amd64_emit_lt_goto): New function. (amd64_emit_le_goto): New function. (amd64_emit_gt_goto): New function. (amd64_emit_ge_goto): New function. (amd64_emit_ops): Add the new functions. (i386_emit_eq_goto): New function. (i386_emit_ne_goto): New function. (i386_emit_lt_goto): New function. (i386_emit_le_goto): New function. (i386_emit_gt_goto): New function. (i386_emit_ge_goto): New function. (i386_emit_ops): Add the new functions.
2011-09-15* python/py-cmd.c (gdbpy_string_to_argv): Decrement referencePaul Koning3-4/+9
count of item appended to list. * python/py-type.c (typy_fields): Likewise.
2011-09-15Fix ChangeLog typoPaul Koning1-1/+1
2011-09-15* gdb.texinfo: Make style of Python functions and methods matchPaul Koning2-373/+381
the syntax of Python. Also put class and module names explicitly on function, member, and variable names, matching Python documentation conventions.
2011-09-15Support thin archive member for LTO.H.J. Lu2-5/+11
2011-09-15 Dmitry Gorbachev <d.g.gorbachev@gmail.com> PR ld/13183 * ldmain.c (add_archive_element): Support thin archive member for LTO.
2011-09-15Add period at end of sentence in top entry.Joel Brobecker1-1/+1
2011-09-15MAINTAINERS (Right After Approval): Add myself to the listPaul Koning2-0/+5
2011-09-152011-09-15 Kevin Pouget <kevin.pouget@st.com>Kevin Pouget2-0/+43
PR threads/12628 * linux-fork.c (checkpoint_command): Disallow checkpointing of processes with multiple threads. (inf_has_multiple_thread_cb): New function. (inf_has_multiple_threads): New function.
2011-09-152011-09-15 Kevin Pouget <kevin.pouget@st.com>Kevin Pouget8-1/+49
PR Python/12692 Add gdb.selected_inferior() to Python interface. * python/py-inferior.c (GdbMethods): New Python method definition. doc: PR Python/12692 Add gdb.selected_inferior() to Python interface. * gdb.texinfo (Inferiors In Python): Describe new gdb.selected_inferior() function. testsuite: PR Python/12692 Add gdb.selected_inferior() to Python interface. * gdb.python/py-inferior.exp: Add testcase for gdb.selected_inferior().
2011-09-152011-09-15 Kevin Pouget <kevin.pouget@st.com>Kevin Pouget10-17/+85
Handle multiple breakpoint hits in Python interface: * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python variable to breakpoints. * python/py-stopevent.c (emit_stop_event): Return a Python tuple of bps instead of single breakpoint. Fix some space typos. * python/py-stopevent.c (create_breakpoint_event_object): Rename variable to breakpoints. testsuite: * gdb.python/py-events.exp: Set a duplicate breakpoint and check its presence. * gdb.python/py-events.py (breakpoint_stop_handler): Browse all the breakpoint hits. doc: * gdb.texinfo (Events In Python): New function documentation: gdb.BreakpointEvent.breakpoints. Indicate that gdb.BreakpointEvent.breakpoint is now deprecated.
2011-09-152011-09-15 Kevin Pouget <kevin.pouget@st.com>Kevin Pouget2-3/+9
* breakpoint.c (describe_other_breakpoints): Do not write 'duplicate' note if the breakpoint is internal.
2011-09-152011-09-15 Kevin Pouget <kevin.pouget@st.com>Kevin Pouget2-0/+5
* MAINTAINERS (Right After Approval): Add myself to the list
2011-09-15daily updateAlan Modra1-1/+1
2011-09-15*** empty log message ***gdbadmin1-1/+1
2011-09-142011-09-14 Pedro Alves <pedro@codesourcery.com>Pedro Alves3-33/+10
* infrun.c (prepare_for_detach, wait_for_inferior) (fetch_inferior_event): Don't flush the register cache. * remote.c (struct stop_reply) <regcache>: Add comment.
2011-09-14 * configure.ac: Check for glibc support for gnu_indirect_functionCary Coutant6-73/+262
support with static linking, setting automake conditional IFUNC_STATIC. * Makefile.in: Regenerate. * configure: Regenerate. * testsuite/Makefile.am (ifuncmain1static, ifuncmain2static) (ifuncmain4static, ifuncmain5static, ifuncmain7static): Add check for IFUNC_STATIC. * testsuite/Makefile.in: Regenerate.
2011-09-14 * incremental.cc (Sized_relobj_incr::do_layout): CallCary Coutant8-14/+268
report_comdat_group for kept comdat sections. * testsuite/Makefile.am (incremental_comdat_test_1): New test. * testsuite/Makefile.in: Regenerate. * testsuite/incr_comdat_test_1.cc: New source file. * testsuite/incr_comdat_test_2_v1.cc: New source file. * testsuite/incr_comdat_test_2_v2.cc: New source file. * testsuite/incr_comdat_test_2_v3.cc: New source file.
2011-09-14*** empty log message ***gdbadmin1-1/+1
2011-09-14daily updateAlan Modra1-1/+1
2011-09-13gdb/Jan Kratochvil3-26/+18
Remove excessive DWARF expressions memory duplication. * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use for block.data. (indirect_pieced_value): Remove variable result. Remove variable back_to and its use for baton.data. (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for block.data. * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup. Update the function comment.
2011-09-13gdb/testsuite/Jan Kratochvil5-88/+117
* gdb.python/py-events.exp: Remove pretty printing comment. * gdb.python/py-evsignal.exp: New file. * gdb.python/py-evthreads.c: Include signal.h. (thread3): Remove variable count3. Remove variable bad and use raise instead. (thread2): Remove variable count2. Move thread3 pthread_create here, merge pthread_join to a single line. (main): Remove variable count1. Merge pthread_join with pthread_create to a single line. * gdb.python/py-evthreads.exp: Remove pretty printing comment. New KFAIL python/12966 for gdbserver. Test return value of gdb_compile_pthreads. Use gdb_run_cmd. Replace send_gdb and gdb_expect by gdb_test and gdb_test_multiple. (thread 2, thread 3): New tests.
2011-09-132011-09-13 Pedro Alves <pedro@codesourcery.com>Pedro Alves3-18/+28
* inferior.h (ALL_INFERIORS): New. * linux-thread-db.c (thread_db_find_new_threads_2): Remove check for a stopped thread. (thread_db_find_new_threads): Look for threads in all inferiors.
2011-09-132011-09-13 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-24/+86
* breakpoint.c (update_watchpoint): Handle the case of the watchpoint to update not being in the breakpoint list yet. (hw_watchpoint_use_count): New, factored out from hw_watchpoint_used_count. (hw_watchpoint_used_count): Rename to ... (hw_watchpoint_used_count_others): ... this. Add `except' parameter. Don't count resources of `except'. Use hw_watchpoint_use_count.
2011-09-13 * object.cc (Sized_relobj_file::do_layout): Remove unused localIan Lance Taylor2-3/+5
variable external_symbols_offset.
2011-09-132011-09-13 Pedro Alves <pedro@codesourcery.com>Pedro Alves3-49/+57
* gdbthread.h (enum thread_state): Moved here. (struct thread_info): Rename `executing_' field to `executing' and `state_' to `state'. * thread.c (enum thread_state): Moved to gdbthread.h. (new_thread, add_thread_silent, delete_thread_1) (any_live_thread_of_process, thread_alive, set_running) (set_running, is_thread_state, any_running, is_executing) (set_executing, finish_thread_state, print_thread_info) (do_captured_thread_select): Adjust.
2011-09-13gdb/Jan Kratochvil2-4/+11
Fix compatibility with gcc < 4.3 and non-gcc compilers. * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2011-09-13daily updateAlan Modra1-1/+1
2011-09-13*** empty log message ***gdbadmin1-1/+1
2011-09-12gdb/Pedro Alves11-35/+212
2011-09-12 Pedro Alves <pedro@codesourcery.com> Matt Rice <ratmice@gmail.com> PR gdb/13175 * interps.c (struct interp) <interpreter_out>: Delete field. (interp_new): Remove the data and uiout parameters and adjust. (interp_set): Only set the current_uiout from the interpreter's uiout after initializing the interpreter. Adjust call to init_proc. (interp_ui_out): Adjust to call procs->ui_out_proc. (interp_data, interp_name): New. * interps.h (interp_init_ftype): Add `self' parameter. (interp_ui_out_ftype): New typedef. (struct interp_procs) <ui_out_proc>: New method pointer. (interp_new): Remove the data and uiout parameters. (interp_data, interp_name): Declare. * tui/tui-interp.c (tui_init): Adjust prototype. (tui_ui_out): New. (_initialize_tui_interp): Install tui_ui_out. Don't instanciate tui_out here. Adjust call to interp_new. * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here. * cli/cli-interp.c (cli_interpreter_init): Adjust prototype. (cli_ui_out): New. (_initialize_cli_interp): Install it. Adjust call to interp_new. * mi/mi-common.h (struct mi_interp) <uiout>: New field. * mi/mi-interp.c (mi_interpreter_init): Adjust prototype. Initialize mi->uiout depending on the mi_version as extracted from the interpreter's name. (mi_ui_out): New. (_initialize_mi_interp): Install mi_ui_out. Adjust calls to interp_new. Don't allocate the ui_out's of the interpreters here. gdb/testsuite/ 2011-09-12 Matt Rice <ratmice@gmail.com> Pedro Alves <pedro@codesourcery.com> PR gdb/13175 * gdb.base/interp.exp: New tests. * gdb.base/interp.c: New file.
2011-09-12* ChangeLog: Fix comment and date.Aleksandar Ristovski1-2/+2
2011-09-12 * solib.c (solib_used): New function.Aleksandar Ristovski2-2/+24
(update_solib_list, reload_shared_libraries_1): Check if objfile is used by another so_list object before freeing it.
2011-09-12Use .got.plt for IFUNC symbols if there are no GOT relocations.H.J. Lu11-20/+80
bfd/ 2011-09-12 H.J. Lu <hongjiu.lu@intel.com> PR ld/13178 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Use .got.plt if there are no GOT relocations. ld/testsuite/ 2011-09-12 H.J. Lu <hongjiu.lu@intel.com> PR ld/13178 * ld-ifunc/ifunc-13-i386.d: Updated. * ld-ifunc/ifunc-13-x86-64.d: Likewise. * ld-ifunc/ifunc-3a-x86.d: Likewise. * ld-x86-64/pr13082-5a.d: Likewise. * ld-ifunc/ifunc-15-i386.d: New. * ld-ifunc/ifunc-15-i386.s: Likewise. * ld-ifunc/ifunc-15-x86-64.d: Likewise. * ld-ifunc/ifunc-15-x86-64.s: Likewise.
2011-09-12 * gdb.dwarf2/clztest.exp: Fix initialization of tests array.Doug Evans3-6/+11
* gdb.dwarf2/typeddwarf.exp: Ditto.
2011-09-12 * object.cc (Sized_relobj_file::do_layout): Remove assertion whichIan Lance Taylor2-2/+5
triggered if object has no symbols.
2011-09-12*** empty log message ***gdbadmin1-1/+1
2011-09-12daily updateAlan Modra1-1/+1
2011-09-11gdb/Jan Kratochvil2-2/+10
Code cleanup. * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter values.
2011-09-11daily updateAlan Modra1-1/+1
2011-09-11*** empty log message ***gdbadmin1-1/+1
2011-09-10Add PR markersAndreas Schwab2-0/+2