aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2012-06-28gdb/Pedro Alves1-0/+20
2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> Pedro Alves <palves@redhat.com> * gdbthread.h (ALL_THREADS): New macro. (thread_list): Declare. * infrun.c (handle_inferior_event) <spurious signal>: Don't keep going, but instead fall through to the stepping handling. * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with the passed in signal. Adjust debug output. (resume_callback): Rename to ... (linux_nat_resume_callback): ... this. Pass the thread's last stop signal, if in "pass" state. (linux_nat_resume): Adjust to rename. (stop_wait_callback): New assertion. Don't respawn signals; instead let the LWP remain with SIGNALLED set. (linux_nat_wait_1): Remove flushing of pending SIGSTOPs. * remote.c (append_pending_thread_resumptions): New. (remote_vcont_resume): Call it. * target.h (target_resume): Extend comment. gdb/testsuite/ 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> Pedro Alves <palves@redhat.com> * gdb.threads/siginfo-threads.exp: New file. * gdb.threads/siginfo-threads.c: New file. * gdb.threads/sigstep-threads.exp: New file. * gdb.threads/sigstep-threads.c: New file.
2012-06-28 * auxv.c (fprint_target_auxv): Handle extended cache data tags.Iain Sandoe1-0/+4
2012-06-28 * dwarf2read.c (dwarf2_cu): Add ranges_base.Doug Evans1-0/+8
Delete have_addr_base, unused. All uses updated. (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base. (dwarf2_get_pc_bounds): Add ranges_base. (dwarf2_record_block_ranges): Ditto. testsuite/ * gdb.dwarf2/fission-base.c: New file. * gdb.dwarf2/fission-base.S: New file. * gdb.dwarf2/fission-base.exp: New file.
2012-06-27 PR macros/7961:Tom Tromey1-0/+23
* varobj.c (varobj_create): Update. (varobj_set_value): Update. * tracepoint.c (validate_actionline): Update. (encode_actions_1): Update. * parse.c (parse_exp_1): Add 'pc' argument. (parse_exp_in_context): Add 'pc' argument. Change how expression_context_pc is set. (parse_expression): Update. (parse_field_expression): Update. * expression.h (parse_exp_1): Update. * eval.c (parse_to_comma_and_eval): Update. * breakpoint.c (set_breakpoint_condition): Update. (update_watchpoint): Update. (init_breakpoint_sal): Update (find_condition_and_thread): Update. (watch_command_1): Update. (update_breakpoint_locations): Update. * ada-lang.c (ada_read_renaming_var_value): Update. (create_excep_cond_exprs): Update. testsuite * gdb.base/macscp1.c (macscp_expr): Add breakpoint comment. * gdb.base/macscp.exp (maybe_kfail): Add test for macro scope.
2012-06-27 * dwarf2read.c (per_cu_header_read_in): Simplify, and handleDoug Evans1-0/+5
type units.
2012-06-27 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessaryDoug Evans1-0/+9
prototype. (error_check_comp_unit_head): New arg abbrev_section. All callers updated. (read_and_check_comp_unit_head): Ditto. (read_and_check_type_unit_head): Ditto.
2012-06-272012-06-26 Siva Chandra Reddy <sivachandra@google.com>Siva Chandra Reddy1-0/+9
New attribute 'last' for gdb.Symtab_and_line. * NEWS (Python Scripting): Add entry about the new attribute. * python/py-symtab.c (salpy_get_last): New function which implements the get method for the 'last' attribute of gdb.Symtab_and_line. (sal_object_getset): Add entry for the 'last' attribute. doc/ * gdb.texinfo (Symbol Tables In Python): Add description about the new 'last' attribute of gdb.Symtab_and line. testsuite/ * gdb.python/py-symtab.exp: Add tests to test the new attribute 'last' of gdb.Symtab_and_line. * gdb.python/py-symbol.c: Move break point comment to enable testing of gdb.Symtab_and_line.last.
2012-06-26 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.Doug Evans1-0/+6
(dwo_sections): Add macinfo, macro. (dwarf2_locate_dwo_sections): Watch for macro sections. (dwarf_decode_macros): Remove args lh, abfd, section, section_name. All callers updated. Handle DWO files.
2012-06-26 * NEWS: Mention new options "set debug dwarf2-read" andDoug Evans1-0/+15
"set debug symtab-create". * dwarf2read.c (dwarf2_read_debug): New static global. (dwarf2_build_psymtabs_hard): Add debugging printfs. (process_queue): Ditto. (process_full_comp_unit): Ditto. (_initialize_dwarf2_read): Add new option "set debug dwarf2-read". * elfread.c (elf_symfile_read): Add debugging printf. * minsyms.c (install_minimal_symbols): Ditto. * psymtab.c (allocate_psymtab): Ditto. * symfile.c (allocate_symtab): Ditto. * symtab.c (symtab_create_debug): New global. (_initialize_symtab): Add new option "set debug symtab-create". * symtab.h (symtab_create_debug): Declare. doc/ * gdb.texinfo (Debugging Output): Document debug options dwarf2-read and symtab-create.
2012-06-26 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.Doug Evans1-0/+5
(lookup_dwo_type_unit): Ditto.
2012-06-26Use PTRACE_PEEKUSER to get fs_base/gs_baseH.J. Lu1-0/+13
* amd64-linux-nat.c: Include <sys/user.h>. (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined. * configure.ac: Check if the fs_base and gs_base members of `struct user_regs_struct' exist. * config.in: Regenerated. * configure: Likewise.
2012-06-25PR14291: KeyboardInterrupt not caught for Python outputMichael Eager1-0/+5
2012-06-252012-06-25 Greta Yorsh <greta.yorsh@arm.com>Matthew Gretton-Dann1-0/+5
* gdb/arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single register as a stack alignment in ARM mode.
2012-06-24gdb/Jan Kratochvil1-0/+12
Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e. * gnulib/config.in: Regenerate. * gnulib/configure: Likewise. * gnulib/import/m4/extensions.m4: Update it. * gnulib/import/m4/gnulib-common.m4: Likewise. * gnulib/import/m4/memmem.m4: Likewise. * gnulib/import/m4/mmap-anon.m4: Likewise. * gnulib/import/m4/multiarch.m4: Likewise. * gnulib/import/stdint.in.h: Likewise.
2012-06-24gdb:Yao Qi1-0/+10
* corefile.c (write_memory_with_notification): New. * gdbcore.h: Declare write_memory_with_notification. * ada-lang.c (ada_value_assign): Replace 'write_memory' and 'observer_notify_memory_changed' with 'write_memory_with_notification'. * valops.c (value_assign): Likewise. * python/py-inferior.c (infpy_write_memory): Call 'write_memory_with_notification'.
2012-06-24gdb/Jan Kratochvil1-0/+4
* cc-with-index.sh: Use also -ex "set auto-load no".
2012-06-23 PR 14125Doug Evans1-0/+19
* NEWS: Document additions to .gdb_index. * dwarf2read.c: #include "gdb/gdb-index.h". (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro. (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro. (DW2_GDB_INDEX_CU_SET_VALUE): New macro. (dwarf2_read_index): Recognize version 7. (dw2_do_expand_symtabs_matching): New args want_specific_block, block_kind, domain): All callers updated. (dw2_find_symbol_file): Handle new index CU values. (dw2_expand_symtabs_matching): Match symbol kind if requested. (add_index_entry): New args is_static, kind. All callers updated. (offset_type_compare, uniquify_cu_indices): New functions (symbol_kind): New function. (write_psymtabs_to_index): Remove duplicate CU values. (write_psymtabs_to_index): Write .gdb_index version 7. doc/ * gdb.texinfo (Index Section Format): Document version 7 format. include/gdb/ * gdb-index.h: New file.
2012-06-22Add -Wdeclaration-after-statement to list of compiler warningsJoel Brobecker1-0/+5
gdb/ChangeLog: * configure.ac (build_warnings): Add -Wdeclaration-after-statement. * configure: Regenerate.
2012-06-20 * python/py-inferior.c: Update comments of infpy_read_memoryYao Qi1-0/+5
and infpy_write_memory. gdb/doc: * gdb.texinfo (Inferiors In Python): Replace "gdb.read_memory" and "gdb.write_memory" with "Inferior.read_memory" and "Inferior.write_memory".
2012-06-19 PR exp/9514:Tom Tromey1-0/+17
* parser-defs.h (insert_type, insert_type_address_space): Declare. (push_type_address_space): Remove. * parse.c (insert_into_type_stack): New function. (insert_type): Likewise. (insert_type_address_space): Rename from push_type_address_space. Insert tp_space_identifier. * c-exp.y (ptr_operator): New production. (abs_decl): Use ptr_operator. (space_identifier): Call insert_type_address_space. (ptype): Don't use const_or_volatile_or_space_identifier. (const_or_volatile_noopt): Call insert_type. (conversion_type_id, conversion_declarator): New productions. (operator): Use conversion_type_id. testsuite * gdb.base/whatis.exp: Add tests.
2012-06-19 * symtab.h (minimal_symbol): New member created_by_gdb.Doug Evans1-0/+7
* elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym created by gdb. * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function. (search_symbols): Call it instead of lookup_symbol. Skip symbols created by gdb. Only scan minsyms if nfiles == 0. testsuite: * gdb.base/info-fun.exp: New file. * gdb.base/info-fun.c: New file. * gdb.base/info-fun-solib.c: New file.
2012-06-19 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.Doug Evans1-0/+10
Adjust address for DW_OP_GNU_addr_index. * dwarf2expr.h (dwarf_expr_context): Update comment. * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu, all callers updated. Handle TLS vars described with DW_OP_GNU_const_index. (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index and DW_OP_GNU_const_index. * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
2012-06-18 * block.c (find_block_in_blockvector): Make explicit the fact that weDoug Evans1-0/+5
ignore GLOBAL_BLOCK.
2012-06-18 * c-exp.y (operator): Remove trailing space after "delete" andTom Tromey1-0/+5
"delete[]".
2012-06-18gdb/Jan Kratochvil1-0/+14
Switch i386 and derived targets to ON_STACK. * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove. (amd64_dicos_init_abi): Remove its installment. * dicos-tdep.c (dicos_init_abi): Remove the set_gdbarch_call_dummy_location call. Update the comment here. * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove. (i386_dicos_init_abi): Remove its installment. * i386-tdep.c (i386_push_dummy_code): New function. (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install i386_push_dummy_code.
2012-06-18gdb/Jan Kratochvil1-0/+31
Remove stale dummy frames. * breakpoint.c: Include dummy-frame.h. (longjmp_breakpoint_ops): New variable. (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also bp_longjmp_call_dummy. (bpstat_what, bptype_string, print_one_breakpoint_location) (init_bp_location): Support bp_longjmp_call_dummy. (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why. (set_longjmp_breakpoint_for_call_dummy) (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New functions. (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops. * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete FIXME comment and extend the other comment for bp_call_dummy. (set_longjmp_breakpoint_for_call_dummy) (check_longjmp_breakpoint_for_call_dummy): New declarations. * dummy-frame.c: Include gdbthread.h. (pop_dummy_frame_bpt): New function. (pop_dummy_frame): Call pop_dummy_frame_bpt. (dummy_frame_discard): New function. (cleanup_dummy_frames): Update the comment about longjmps. * dummy-frame.h (dummy_frame_discard): New declaration. * gdbthread.h (struct thread_info): Extend initiating_frame comment. * infcall.c (call_function_by_hand): New variable longjmp_b. Call set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT. * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and keep_going if IS_LONGJMP and there is no other reason to stop. gdb/testsuite/ Remove stale dummy frames. * gdb.base/call-signal-resume.exp (maintenance print dummy-frames) (maintenance info breakpoints): New tests. * gdb.base/stale-infcall.c: New file. * gdb.base/stale-infcall.exp: New file.
2012-06-182012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>Tom Tromey1-0/+5
* remote-sim.c (sim_command_completer): Initialize variable 'result'.
2012-06-17gdb/Jan Kratochvil1-0/+12
* dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref. * dwarf2loc.c (call_site_parameter_matches): Support CALL_SITE_PARAMETER_PARAM_OFFSET. (needs_dwarf_reg_entry_value): Push stub value. * dwarf2read.c (read_call_site_scope): New variable origin. Support CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin. * gdbtypes.h (enum call_site_parameter_kind): New item CALL_SITE_PARAMETER_PARAM_OFFSET. (struct call_site.parameter.u): New field param_offset. gdb/testsuite/ * gdb.arch/amd64-entry-value-param.S: New file. * gdb.arch/amd64-entry-value-param.c: New file. * gdb.arch/amd64-entry-value-param.exp: New file.
2012-06-17gdb/Jan Kratochvil1-0/+28
Code cleanup: Generalize call_site.parameter key. * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove variable dwarf_reg. New variable kind_u. Update parameters to push_dwarf_reg_entry_value. (ctx_no_push_dwarf_reg_entry_value): Update parameters. * dwarf2expr.h (enum call_site_parameter_kind) (union call_site_parameter_u): Forward declarations. (struct dwarf_expr_context_funcs): Update parameters and their description for push_dwarf_reg_entry_value. (ctx_no_push_dwarf_reg_entry_value): Update parameters. * dwarf2loc.c (call_site_parameter_matches): New function. (dwarf_expr_reg_to_entry_parameter): Update parameters and their description. Use call_site_parameter_matches. (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry): Update parameters and their description. (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset. New variable kind_u. Adjust the caller for updated parameters. (needs_dwarf_reg_entry_value): Update parameters. * dwarf2read.c (read_call_site_scope): New variable loc. Use it instead of attr. Update for the changed fields of struct call_site_parameter. * gdbtypes.h: Include dwarf2expr.h. (enum call_site_parameter_kind): New. (struct call_site.parameter): New field kind. Wrap dwarf_reg and fb_offset into new union u.
2012-06-16Add and use amd64_x32_analyze_stack_alignH.J. Lu1-0/+6
* amd64-tdep.c (amd64_x32_analyze_stack_align): New function. (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align for x32.
2012-06-16Support x32 siginfoH.J. Lu1-0/+9
* amd64-linux-nat.c (compat_x32_clock_t): New. (compat_x32_siginfo_t): Likewise. (compat_x32_siginfo_from_siginfo): Likewise. (siginfo_from_compat_x32_siginfo): Likewise. (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo and siginfo_from_compat_x32_siginfo for x32.
2012-06-162012-06-15 Hui Zhu <hui_zhu@mentor.com>Hui Zhu1-0/+4
* tracepoint.c (tfile_xfer_partial): Add a lseek.
2012-06-16Check bits_per_word instead of gdbarch_ptr_bitH.J. Lu1-0/+12
* amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word instead of gdbarch_ptr_bit. * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise. (amd64_supply_native_gregset): Likewise. (amd64_collect_native_gregset): Likewise. * amd64-tdep.c (amd64_supply_fxsave): Likewise. (amd64_supply_xsave): Likewise. (amd64_collect_fxsave): Likewise. (amd64_collect_xsave): Likewise.
2012-06-16Check DS segment register for x32 processH.J. Lu1-0/+6
* amd64-linux-nat.c (AMD64_LINUX_X32_DS): New. (amd64_linux_read_description): Check DS segment register for x32 process.
2012-06-15 * dwarf2read.c (dw2_find_symbol_file): Unconditionally useTom Tromey1-0/+5
init_cutu_and_read_dies. testsuite * gdb.cp/namespace.exp: Add "show lang" test.
2012-06-15 * MAINTAINERS (Write After Approval): Add myself to the list.Iain Sandoe1-0/+4
2012-06-15 * valops.c (value_find_oload_method_list): Now static.Tom Tromey1-0/+5
* value.h (value_find_oload_method_list): Don't declare.
2012-06-15 * valops.c (find_overload_match): Use value_ind.Tom Tromey1-0/+4
2012-06-15 * infrun.c (handle_inferior_event): Correct indentation.Maciej W. Rozycki1-0/+4
2012-06-14 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.Doug Evans1-0/+10
(DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL. All uses updated. (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers updated. Handle DEBUG_LOC_START_LENGTH. (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH. (loclist_describe_location): Ditto.
2012-06-14 PR backtrace/13866Maciej W. Rozycki1-0/+6
* infrun.c (handle_inferior_event): Re-fetch frame and gdbarch after hiding inline functions.
2012-06-14Fix copy/paste error in _initialize_inf_ttrace's advance declaration.Joel Brobecker1-0/+5
gdb/ChangeLog: * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into _initialize_inf_ttrace.
2012-06-14Rename ia64-hpux-nat.c:_initialize_hppa_hpux_nat...Joel Brobecker1-0/+5
... into _initialize_ia64_hpux_nat. Looks like a harmless but unfortunate copy/paste error. gdb/ChangeLog: * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames _initialize_hppa_hpux_nat.
2012-06-14Fix invalid profile for command-completer in remote-sim.cJoel Brobecker1-0/+5
The profile of command completers has been change to returna VEC of char_ptr. Most completers were updated, except the one in remote-sim.c. Unfortunately, to make things a little more difficult, the meat of the completer is actually implemented in the sim, were VECs are not available. This patch thus translates the returned array into a VEC, and then returns that VEC. gdb/ChangeLog: * remote-sim.c (sim_command_completer): Change type of return value to "VEC (char_ptr) *". Adjust implementation accordingly.
2012-06-13 PR tdep/14222Mark Kettenis1-0/+7
* i386-tdep.c (i386_push_dummy_call): Unconditionally align the stack on a 16-byte boundary.
2012-06-132012-06-13 Kaushik Srenevasan <kaushik@twitter.com>Tom Tromey1-0/+5
* jit.c (finalize_symtab): Set function's return type to 'void' by default.
2012-06-13 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.Mark Kettenis1-0/+8
Move bits common to both the classic LP64 and the new x32 ILP32 ABI here. (amd64_linux_init_abi): Call amd64_linux_init_abi_common. (amd64_x32_linux_init_abi): New function. (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32 subtype.
2012-06-13 H.J. Lu <hongjiu.lu@intel.com>Mark Kettenis1-0/+10
* i386-tdep.h (i386_pseudo_register_name): New prototype. * i386-tdep.c (i386_pseudo_register_name): Make public. * amd64-tdep.h (amd64_x32_init_abi): New prototype. * amd64-tdep.c (amd64_dword_names): Add "eip". (amd64_x32_pseudo_register_type): New function (amd64_x32_init_abi): New function.
2012-06-13gdb/Jan Kratochvil1-0/+10
PR build/14003 * inferior.h (struct inferior_suspend_state): Comment out. (struct inferior): Comment out the field suspend. * infrun.c (struct infcall_suspend_state): Comment out the field inferior_suspend. (save_infcall_suspend_state, restore_infcall_suspend_state): Comment out its assignment.
2012-06-13gdb/Jan Kratochvil1-0/+12
PR c++/14177 - Fix parsing TYPENAME:: in parentheses. * c-exp.y (classify_inner_name): Remove caller assumptions in the function comment. Return ERROR for unresolved cases. Implement returning proper NAME. (yylex): Accept also NAME from classify_inner_name. * cp-namespace.c (cp_lookup_nested_type): Rename to ... (cp_lookup_nested_symbol): ... here. Return any found symbol, not just LOC_TYPEDEF type. * cp-support.h (cp_lookup_nested_type): Update its declaration. gdb/testsuite/ PR c++/14177 - Fix parsing TYPENAME:: in parentheses. * gdb.cp/cpexprs.cc (class CV, CV::i, ATTRIBUTE_USED, CV_f): New. (test_function): Call CV_f. * gdb.cp/cpexprs.exp (p 'CV::m(int)', p CV::m(int)) (p 'CV::m(int) const', p CV::m(int) const, p 'CV::m(int) volatile') (p CV::m(int) volatile, p 'CV::m(int) const volatile') (p CV::m(int) const volatile, p CV_f(int), p CV_f(CV::t)) (p CV_f(CV::i)): New tests.