aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-07-21 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-4/+13
* NEWS: Document Python prompt substitution hook.
2011-07-21PR macros/12999matt rice10-29/+439
* macrotab.h (macro_callback_fn): Add new arguments to callback. * macrotab.c (foreach_macro): Ditto. (foreach_macro_in_scope): Ditto. * macrocmd.c (print_macro_callback): New function. (info_macro_command): Move some code to print_macro_definition. (print_macro_definition): New function. (print_one_macro): Add new arguments to callback. testsuite/ * gdb.base/info-macros.c: New test sources. * gdb.base/info-macros.exp: New tests. docs/ * gdb.texinfo (Macros): Add info definitions and info macros commands. Update text and cindex entries for info macro command.
2011-07-212011-07-21 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon10-25/+258
Tom Tromey <tromey@redhat.com> * top.c (set_prompt): Rewrite to free previous prompt, free asynch_new_prompt and set both on new prompts. * event-top.c (display_gdb_prompt): Add prompt substitution logic. * python/python.c (before_prompt_hook): New function. 2011-07-21 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/python.exp: Add prompt substitution tests. 2011-07-21 Phil Muldoon <pmuldoon@redhat.com> * observer.texi (GDB Observers): Add before_prompt observer. * gdb.texinfo (Basic Python): Add documentation for prompt substitution.
2011-07-21*** empty log message ***gdbadmin1-1/+1
2011-07-20* bfin-tdep.c (bfin_extract_return_value): Fix swappedmatt rice2-1/+6
arguments to store_unsigned_integer.
2011-07-20 * dwarf2read.c (process_enumeration_scope): Do not call new_symbolTom Tromey2-0/+31
in some declaration-only cases.
2011-07-20 PR symtab/12984:Tom Tromey2-118/+201
* dwarf2read.c (dwarf2_section_info_def): New typedef. (struct dwarf2_per_objfile) <types>: Change to a VEC. (struct dwarf2_per_cu_data) <from_debug_types>: Remove. <debug_type_section>: New field. (dwarf2_locate_sections): Push .debug_types sections onto VEC. (load_cu): Use appropriate section. (create_signatured_type_table_from_index): Add 'section' argument. (dwarf2_read_index): Only allow a single .debug_types section. (dw2_get_file_names): Use appropriate section. (read_type_comp_unit_head): Add 'section' argument. (create_debug_types_hash_table): Loop over all .debug_types sections. (init_cu_die_reader): Use appropriate section. (process_psymtab_comp_unit, load_partial_comp_unit) (load_full_comp_unit, read_die_and_children, find_partial_die) (lookup_die_type, determine_prefix, follow_die_offset): Update. (lookup_signatured_type_at_offset): Add 'section' argument. (read_signatured_type_at_offset): Add 'sect' argument. (read_signatured_type): Use appropriate section. (set_die_type, get_die_type_at_offset): Update. (dwarf2_per_objfile_free): Free all .debug_types sections, and VEC. (write_psymtabs_to_index): Don't allow index with more than one .debug_types section.
2011-07-202011-07-20 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-4/+7
* tracepoint.c (tracepoint_look_up_symbols): Return upon the first symbol error.
2011-07-20*** empty log message ***gdbadmin1-1/+1
2011-07-19gdb/Jan Kratochvil6-8/+77
Fix crash if referenced CU is aged out. * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for xfree of block.data. (indirect_pieced_value): New variable back_to, use to for xfree of baton.data. (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of block.data. * dwarf2read.c (dwarf2_find_base_address): New prototype. (load_cu): New function from ... (dw2_do_instantiate_symtab): ... the code here ... (process_full_comp_unit): ... and here. (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on retval.data. gdb/testsuite/ Fix crash if referenced CU is aged out. * gdb.dwarf2/dw2-op-call.exp (maintenance set dwarf2 max-cache-age 0): New. * gdb.dwarf2/implptr.exp: Likewise.
2011-07-19gdb/Jan Kratochvil6-225/+290
* dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's type. gdb/testsuite/ * gdb.dwarf2/implptr.S: Rebuilt. * gdb.dwarf2/implptr.c (intp, intpp, intppp): New typedefs. (bar): Use them for j, k, l. * gdb.dwarf2/implptr.exp: New variable opts. Support runtest parameter COMPILE. (print j in implptr:bar): Update for the intp typedef. (print p[0].x in implptr:foo): Use more exact regex.
2011-07-19gdb/Gary Benson2-9/+48
* infrun.c (struct execution_control_state): New member stop_func_filled_in. (clear_stop_func, fill_in_stop_func): New functions. (handle_inferior_event): Call clear_stop_func rather than manipulating the execution control state directly. Call fill_in_stop_func lazily as required rather than directly calling find_pc_partial_function in all cases.
2011-07-19*** empty log message ***gdbadmin1-1/+1
2011-07-18 * dwarf2read.c (read_subrange_type): Use attr_form_is_block whenTom Tromey2-2/+7
checking for variable-sized array.
2011-07-18 * gdb.cp/static-method.exp: Add missing single quote.Tom Tromey2-1/+5
2011-07-18gdb/Jean-Charles Delay1-0/+1
* MAINTAINERS (Write After Approval): Add myself to the list.
2011-07-18gdb/Jean-Charles Delay3-2/+96
* varobj.h (varobj_languages): Add vlang_ada definition to the list of supported languages. * varobj.c: Add top definitions and basic implementation of the following callbacks: ada_number_of_children, ada_name_of_variable, ada_name_of_child, ada_path_expr_of_child, ada_value_of_root, ada_value_of_child, ada_type_of_child, ada_value_of_variable. (languages): Register Ada-specific callbacks. (variable_language): Add the Ada case in the language setter switch.
2011-07-18 gdb/testsuite/Yao Qi9-0/+54
* gdb.base/async-shell.exp: Skip test if displaced stepping is not supported. * gdb.mi/mi-nonstop-exit.exp: Likewise. * gdb.mi/mi-nonstop.exp: Likewise. * gdb.mi/mi-ns-stale-regcache.exp: Likewise. * gdb.mi/mi-nsintrall.exp: Likewise. * gdb.mi/mi-nsmoribund.exp: Likewise. * gdb.mi/mi-nsthrexec.exp: Likewise. * gdb.python/py-evthreads.exp: Likewise.
2011-07-18*** empty log message ***gdbadmin1-1/+1
2011-07-17gdb/Jan Kratochvil2-1/+11
* remote-mips.c (pmon_download): Fix ignored return value GCC warning.
2011-07-17*** empty log message ***gdbadmin1-1/+1
2011-07-16*** empty log message ***gdbadmin1-1/+1
2011-07-15gdb/Jan Kratochvil5-78/+127
Code cleanup. * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New. (execute_stack_op): Use dwarf2_frame_ctx_funcs * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs. (execute_stack_op): Access read_reg, get_frame_base, read_mem, get_frame_cfa, get_tls_address and dwarf_call via funcs. * dwarf2expr.h (struct dwarf_expr_context): New forward declaration. (struct dwarf_expr_context_funcs): New, move here methods from ... (struct dwarf_expr_context): ... here. New fields funcs. * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs. (dwarf_expr_ctx_funcs): New. (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs. (needs_frame_dwarf_call): Access get_frame_pc via funcs. (needs_frame_ctx_funcs): New. (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
2011-07-15gdb/testsuite/Jan Kratochvil2-22/+18
Code cleanup. * gdb.cp/namespace.exp (xfail_class_types): New variable. Initialize it. Substitute it instead of test_compiler_info everywhere.
2011-07-152011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>Fawzi Mohamed2-0/+5
* MAINTAINERS (Write After Approval): Add myself to the list.
2011-07-152011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>Fawzi Mohamed2-16/+94
* dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure that CIE pointer of an FDE really points to a CIE .
2011-07-15 * gdb.base/type-opaque.exp: Use gdb_load_shlibs. Run test onUlrich Weigand2-6/+6
remote targets as well.
2011-07-15 * lib/gdb.exp (gdb_compile_shlib_pthreads): New helper.Ulrich Weigand3-41/+45
* gdb.threads/tls-shared.exp: Use it. Call gdb_load_shlibs.
2011-07-15 * lib/gdb.exp (gdb_compile): Specify rpath if the *target* isUlrich Weigand2-2/+18
a remote machine, not the host. (gdb_compile_shlib): Set soname if target is remote.
2011-07-152011-07-15 Hui Zhu <teawater@gmail.com>Hui Zhu2-0/+5
* remote.c (remote_get_trace_status): Add comments.
2011-07-15*** empty log message ***gdbadmin1-1/+1
2011-07-14Cleanup: kill trailing whitespacePaul Pluzhnikov1-3/+3
2011-07-142011-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-1/+5
* gdb.cp/minsym-fallback.exp: Link in C++ mode.
2011-07-14gdb/Jan Kratochvil8-16/+37
Code cleanup - constify struct lval_funcs. * dwarf2loc.c (pieced_value_funcs): Make it const. * infrun.c (siginfo_value_funcs): Likewise. * opencl-lang.c (opencl_value_funcs): Likewise. * valops.c (value_assign, value_ind): Make the funcs variable const. * value.c (struct value): Make location.computed.funcs target const. Rearrange the comments. (allocate_computed_value): Make the funcs parameter target const. (value_computed_funcs): Return the funcs target const. (value_free, value_copy, set_value_component_location): Make the funcs variable const. * value.h (allocate_computed_value): Make the funcs parameter target const. (value_computed_funcs): Return the funcs target const. * windows-tdep.c (tlb_value_funcs): Make it const.
2011-07-142011-07-14 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+5
* remote.c (remote_get_trace_status): Initialize p.
2011-07-14*** empty log message ***gdbadmin1-1/+1
2011-07-13gdb/Jan Kratochvil2-1/+17
Work around kgdb. * remote.c (remote_get_trace_status): New variable ex. Put remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
2011-07-13* gdb.python/py-objfile-script-gdb.py: Renamed tomatt rice3-1/+10
py-objfile-script-gdb.py.in. * gdb.python/py-objfile-script-gdb.py.in: Renamed from py-objfile-script-gdb.py. * gdb.python/py-objfile-script.exp: Update reference to py-objfile-script-gdb.py.
2011-07-13 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: UseTom Tromey2-1/+8
value_from_contents for final conversion.
2011-07-13gdb/testsuite/Jan Kratochvil2-1/+6
* gdb.dwarf2/dw2-op-call.S (array1): Use the real label; do not reference undefined label.
2011-07-13gdb/Jan Kratochvil2-9/+15
Code cleanup. * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full): Indent prototypes so they do not get into tags.
2011-07-13*** empty log message ***gdbadmin1-1/+1
2011-07-12gdb/Jan Kratochvil5-18/+28
Code cleanup making also optimized out values lazy. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_optimized_out_value. Twice. (loclist_read_variable) Use allocate_optimized_out_value. Once. * findvar.c (read_var_value): Likewise. * value.c (allocate_optimized_out_value): New function. * value.h (allocate_optimized_out_value): New declaration.
2011-07-12gdb/Jan Kratochvil2-0/+12
Fix occasional crash of CTRL-C during DWARF read in. * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
2011-07-12*** empty log message ***gdbadmin1-1/+1
2011-07-11 * regcache.c (struct regcache_descr): Fix typo.Tom Tromey3-2/+7
* i387-tdep.c (i387_supply_xsave): Fix typo.
2011-07-11 * dwarf2read.c (handle_DW_AT_stmt_list): New function.Tom Tromey2-18/+39
(read_file_scope, read_type_unit_scope): Use it.
2011-07-11gdb/Jan Kratochvil5-14/+54
* dwarf2expr.c (read_sleb128): Fix signed extension overflowing host `int'. gdb/testsuite/ * gdb.dwarf2/dw2-const.S (Pointer size): Change from 4 to 8. (DW_AT_high_pc, DW_AT_low_pc): Remove them. (val8, .Ltype_const8, .Ltype_int8, DW_TAG_variable): New. * gdb.dwarf2/dw2-const.exp (print/x val8): New test.
2011-07-112011-07-11 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon9-17/+122
PR python/12438 * python/python.c: Set gdbpy_should_print_stack default to off. (set_python): Deprecate maint set python print-stack to class_deprecate. (_initialize_python): Deprecate maint set/show python print-stack. Add new prefix command, python. Add new setting, print-backtrace. * NEWS: Document set python print-stack. Document default change. 2011-07-11 Phil Muldoon <pmuldoon@redhat.com> PR python/12438 * gdb.texinfo (Python Commands): Add deprecate note to maint set/show python print-stack. Document set/show python print-backtrace. 2011-07-11 Phil Muldoon <pmuldoon@redhat.com> PR python/12438 * gdb.python/python.exp: Add maint set/show python print-stack deprecated tests. Add set/show python print-backtrace tests.
2011-07-112011-07-11 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon3-13/+57
* python/py-inferior.c (infpy_dealloc): New function. (inferior_to_inferior_object): Return a new object, or a new reference to the existing object. (find_thread_object): Cleanup references to inferior. (delete_thread_object): Ditto. * python/py-infthread.c (create_thread_object): Do not increment inferior reference count.