aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-06-07gdb/Jan Kratochvil10-22/+315
Fix PR 10640. * dwarf2-frame.c (no_dwarf_call): New function. (execute_stack_op): Set CTX->DWARF_CALL. * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New. * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New. (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field. * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions. (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL. (needs_frame_dwarf_call): New function. (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL. * dwarf2read.c (follow_die_offset): Based on former follow_die_ref. Update the comment. Move variables die, offset and error call to ... (follow_die_ref): ... a new function. (dwarf2_fetch_die_location_block): New function. * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype. gdb/testsuite/ Test PR 10640. * gdb.dwarf2/dw2-op-call.exp, gdb.dwarf2/dw2-op-call.S: New.
2010-06-07gdb/Jan Kratochvil3-5/+20
* dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu. (dwarf_expr_tls_address): Use per_cu instead of objfile. (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE. Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for this change. (struct needs_frame_baton): New field per_cu. (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU. * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
2010-06-07Fix operator doubly nested namespace search.Sami Wagiaalla2-28/+60
2010-06-07 Sami Wagiaalla <swagiaal@redhat.com> * cp-support.c (make_symbol_overload_list_namespace): Only search static and global blocks. (make_symbol_overload_list_block): New function. (make_symbol_overload_list): Separate namespace search from block search. (make_symbol_overload_list_qualified): Use make_symbol_overload_list_block.
2010-06-07Test and support all cpp operator types.Sami Wagiaalla11-69/+554
2010-06-07 Sami Wagiaalla <swagiaal@redhat.com> * value.h: Created oload_search_type enum. (find_overload_match): Use oload_search_type enum. * valops.c (find_overload_match): Support combined member and non-member search. * eval.c (evaluate_subexp_standard): Calls to find_overload_match now use oload_search_type enum. (oload_method_static): Verify index is a proper value. * valarith.c (value_user_defined_cpp_op): Search for and handle both member and non-member operators. (value_user_defined_cpp_op): New function. (value_user_defined_op): New function. (value_x_unop): Use value_user_defined_op. (value_x_binop): Ditto. * cp-support.c (make_symbol_overload_list_using): Added block iteration. Add check for namespace aliases and imported declarations. 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/koenig.exp: Test for ADL operators. * gdb.cp/koenig.cc: Added ADL operators. * gdb.cp/operator.exp: New test. * gdb.cp/operator.cc: New test.
2010-06-07 * gold-threads.cc (Lock_impl_threads::Lock_impl_threads): CorrectIan Lance Taylor2-1/+6
#ifdef typo.
2010-06-07gdb/Jan Kratochvil2-1/+6
* breakpoint.h (owner): Extend the comment.
2010-06-07gdb/Jan Kratochvil2-18/+36
Clear stale specific bp_location from former whole breakpoint. * breakpoint.c (delete_breakpoint): Move the stale referencing clear code ... (free_bp_location): ... here. Rename there the called function to bpstat_remove_bp_location_callback. (bpstat_remove_breakpoint_callback): Rename to ... (bpstat_remove_bp_location_callback): ... here, change DATA resolution to struct bp_location. Change the called function to bpstat_remove_bp_location. Create new declaration for the function. (bpstat_remove_breakpoint): Rename to ... (bpstat_remove_bp_location): ..., change the parameter to loc, adjust code for the new parameter type.
2010-06-07 * gas/testsuite/gas/arm/thumb-eabi.d: Add case for divided syntax encoding ↵Matthew Gretton-Dann22-25/+54
of movs. * gas/testsuite/gas/arm/thumb.d: Likewise. * gas/testsuite/gas/arm/thumb.s: Likewise. * gas/testsuite/gas/arm/thumb2_it.d: Update for change in lsls/movs disassembly. * gas/testsuite/gas/arm/thumb2_it_auto.d: Liekwise. * gas/testsuite/gas/arm/thumb32.d: Likewise. * ld/testsuite/ld-arm/arm-call.d: Handle change in lsls/movs disassembly. * ld/testsuite/ld-arm/farcall-thumb-arm-short.d: Likewise. * ld/testsuite/ld-arm/farcall-thumb-thumb-blx-pic-veneer.d: Likewise. * ld/testsuite/ld-arm/farcall-thumb-thumb-blx.d: Likewise. * ld/testsuite/ld-arm/farcall-thumb-thumb-m-pic-veneer.d: Likewise. * ld/testsuite/ld-arm/farcall-thumb-thumb-m.d: Likewise. * ld/testsuite/ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise. * ld/testsuite/ld-arm/farcall-thumb-thumb.d: Likewise. * ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad-noeabi.d: Likewise. * ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad.d: Likewise. * ld/testsuite/ld-arm/thumb2-bl-bad-noeabi.d: Likewise. * ld/testsuite/ld-arm/thumb2-bl-bad.d: Likewise. * opcodes/arm-dis.c (thumb-opcodes): Add disassembly for movs.
2010-06-07 * README: Make version-agnostic.Nathan Sidwell2-77/+57
2010-06-07daily updateAlan Modra1-1/+1
2010-06-07*** empty log message ***gdbadmin1-1/+1
2010-06-06daily updateAlan Modra1-1/+1
2010-06-06*** empty log message ***gdbadmin1-1/+1
2010-06-05gdb/Jan Kratochvil2-12/+117
Fix duplicate types for single DIE. * dwarf2read.c (read_structure_type): Move set_descriptive_type after set_die_type. (read_array_type): Remove type initialization. Recheck get_die_type after initial die_type. Move set_die_type before set_descriptive_type. (read_set_type): New variable domain_type. Recheck get_die_type after initial die_type. Move attr initialization later. (read_tag_pointer_type, read_tag_reference_type): New variable target_type. Recheck get_die_type after initial die_type. (read_tag_ptr_to_member_type): Recheck get_die_type after initial die_type and die_containing_type. (read_tag_const_type, read_tag_volatile_type, read_subroutine_type): Recheck get_die_type after initial die_type. (read_subrange_type): Recheck get_die_type after initial die_type. Move set_die_type before set_descriptive_type. (set_die_type): Extend the function comment. Call complaint if DIE has some type already set.
2010-06-05 * mi/mi-main.c (mi_cmd_list_thread_groups): AdjustVladimir Prus2-6/+18
for current naming of thread groups (iN, not N).
2010-06-05*** empty log message ***gdbadmin1-1/+1
2010-06-05daily updateAlan Modra1-1/+1
2010-06-042010-06-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-6/+7
* gdb.base/attach.exp: Replace gdb_test_multiple with gdb_test.
2010-06-042010-06-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-5/+7
* gdb.base/pending.exp: Replace gdb_test_multiple with gdb_test.
2010-06-042010-06-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-2/+6
* gdb.cp/pr-1210.exp: Add message string to gdb_test_multiple.
2010-06-042010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior4-6/+18
* ada-lang.c (ada_operator_length): Constify `struct expression'. * parse.c (operator_length): Likewise. (operator_length_standard): Likewise. * parser-defs.h (operator_length): Likewise. (operator_length_standard): Likewise. (struct exp_descriptor <operator_length>): Likewise.
2010-06-04remove trailing whitespace in previous checkinDoug Evans1-1/+1
2010-06-04 Add support for enabling/disabling individual pretty-printers.Doug Evans10-5/+102
* python/py-prettyprint.c (search_pp_list): Skip disabled printers. * python/python-internal.h (gdbpy_enabled_cst): Declare. * python/python.c (gdbpy_enabled_cst): Define. (_initialize_python): Initialize gdbpy_enabled_cst. * NEWS: Add entry. doc/ * gdb.texinfo (Python API): New node `Disabling Pretty-Printers'. testsuite/ * gdb.python/py-prettyprint.exp: Add new test for enabled and disabled printers. * gdb.python/py-prettyprint.py (disable_lookup_function): New function. (enable_lookup_function): New function.
2010-06-04gdb/Jan Kratochvil2-1/+5
* breakpoint.c (update_global_location_list): Fix comment typo.
2010-06-04 * gdb.python/py-value.exp (test_value_hash): Don't test equalityTom Tromey2-1/+5
of hash and id.
2010-06-04gdb/testsuite/Jan Kratochvil3-5/+13
* gdb.base/commands.exp (add printf tbreak command): Remove trailing newline. * gdb.gdb/complaints.exp (empty non-verbose non-noisy clear) (empty verbose non-noisy clear, empty verbose noisy clear) (empty non-verbose noisy clear): Likewise.
2010-06-042010-06-04 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+5
* dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
2010-06-04daily updateAlan Modra1-1/+1
2010-06-04*** empty log message ***gdbadmin1-1/+1
2010-06-032010-06-03 Michael Snyder <msnyder@vmware.com>Michael Snyder25-46/+80
* gdb.base/commands.exp: Replace gdb_test with gdb_test_no_output. * gdb.base/display.exp: Ditto. * gdb.base/find.exp: Ditto. * gdb.base/ifelse.exp: Ditto. * gdb.base/multi-forks.exp: Ditto. * gdb.base/recurse.exp: Ditto. * gdb.base/setshow.exp: Ditto. * gdb.base/value-double-free.exp: Ditto. * gdb.base/watch-vfork.exp: Ditto. * gdb.base/watch_thread_num.exp: Ditto. * gdb.base/watchpoint-solib.exp: Ditto. * gdb.base/watchpoint.exp: Ditto. * gdb.base/watchpoints.exp: Ditto. * gdb.cp/classes.exp: Replace gdb_test with gdb_test_no_output. * gdb.cp/overload.exp: Ditto. * gdb.cp/virtfunc.exp: Ditto. * gdb.python/py-value.exp: Replace gdb_test with gdb_test_no_output. * gdb.reverse/watch-precsave.exp: Replace gdb_test with gdb_test_no_output. * gdb.threads/attach-into-signal.exp: Replace gdb_test with gdb_test_no_output. * gdb.threads/local-watch-wrong-thread.exp: Ditto. * gdb.threads/watchthreads.exp: Ditto. * gdb.threads/watchthreads2.exp: Ditto. * gdb.trace/deltrace.exp: Replace gdb_test with gdb_test_no_output. * gdb.trace/tfind.exp: Ditto.
2010-06-03do not emit PASS for gdb_test_no_output test if message is empty string.Joel Brobecker2-2/+10
This patch makes gdb_test_no_output not emit a PASS for a sucessful test when the message is the empty string. As requested, this makes it consistent with what gdb_test does. 2010-06-03 Joel Brobecker <brobecker@adacore.com> * lib/gdb.exp (gdb_test_no_output): Do not emit pass for successful test if message is the empty string.
2010-06-03 * gdbint.texinfo (Coding): Add subsection on command names.Doug Evans2-0/+8
2010-06-03 * configure.ac: Don't fail if python is unusable whenDoug Evans3-18/+52
configured with --with-python=auto. * configure: Regenerate.
2010-06-03 PR gold/11658Sriraman Tallam2-19/+32
* output.cc (Output_section::Input_section_sort_entry::compare_section_ordering): Change to return non-zero correctly. (Output_section::Input_section_sort_section_order_index_compare ::operator()): Change to fix ambiguity in comparisons.
2010-06-032010-06-02 Quentin Neill <quentin.neill@amd.com>Sebastian Pop2-1/+5
* config/tc-i386.c (OPTION_MAVXSCALAR): Fix define.
2010-06-03merge from gccDJ Delorie3-11/+24
2010-06-03Remove redundant naming of symbol from new_symbol.Sami Wagiaalla2-26/+4
2010-06-03 Sami Wagiaalla <swagiaal@redhat.com> * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
2010-06-032010-06-02 Tristan Gingold <gingold@adacore.com>Tristan Gingold6-158/+15
* as.h: Remove conditionnal definition of HAVE_STDARG_H, USE_STDARG, va_alist, va_dcl, va_list, va_start, va_end. Remove conditionnal inclusion of stdarg.h and varargs.h. Assume ISO C. * config.in: Regenerate. * configure: Regenerate. * configure.in: Remove stdarg.h and varargs.h from AC_CHECK_HEADERS list. * messages.c (as_tsktsk): Remove non ISO C version. (as_warn, as_warn_where, as_bad, as_bad_where, as_fatal): Ditto.
2010-06-03 * valprint.h (get_array_bounds): Change low and high parameter typesPierre Muller5-39/+32
to LONGEST *. * valprint.c (get_array_bounds): Use get_discrete_bounds call to compute bounds. (val_print_array_elements): Adapt to change above. * ada-valprint.c (print_optional_low_bound): Adapt to change above. * p-valprint.c (pascal_val_print): Likewise.
2010-06-03Import AC_CHECK_DECL for C++ fixes from git Autoconf.Ralf Wildenhues2-0/+49
config/: Sync from GCC: PR bootstrap/42798 * override.m4 (_AC_CHECK_DECL_BODY, _AC_CHECK_DECLS): Import definitions from git Autoconf.
2010-06-03daily updateAlan Modra1-1/+1
2010-06-03*** empty log message ***gdbadmin1-1/+1
2010-06-02gdb/Jan Kratochvil4-0/+30
* symfile.c (init_filename_language_table): New extensions .for, .FOR, .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and .F08. gdb/testsuite/ * gdb.fortran/module.exp (stopped language detection): New test.
2010-06-02gdb/Jan Kratochvil14-64/+426
Support DW_TAG_module as separate namespaces. * dwarf2read.c (typename_concat): New parameter physname. (read_module_type): New function and declaration. (scan_partial_symbols): Scan also DW_TAG_module children. (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass to typename_concat backward compatible physname value 0. (partial_die_full_name, read_namespace_type): Pass to typename_concat backward compatible physname value 0. (add_partial_module, read_module): Remove FIXME comment. (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO. (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for DIEs under DW_TAG_module. (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and DW_AT_MIPS_linkage_name first, extend it for language_fortran && physname and return there instead of just setting NAME. Extend the main block for language_fortran. Pass physname parameter to the typename_concat call. (read_import_statement, read_func_scope, get_scope_pc_bounds) (load_partial_dies, determine_prefix): Support also DW_TAG_module. (new_symbol): Fill in cplus_specific.demangled_name if it is still missing from SYMBOL_SET_NAMES in the language_fortran case. (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module variables. (read_type_die) <DW_TAG_module>: New. (MAX_SEP_LEN): Increase to 7. (typename_concat): New parameter physname. New variable lead. Support also language_fortran. * f-exp.y (yylex): Consider : also as a symbol name character class. * f-lang.c: Include cp-support.h. (f_word_break_characters, f_make_symbol_completion_list): New functions. (f_language_defn): Use cp_lookup_symbol_nonlocal, f_word_break_characters and f_make_symbol_completion_list. * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New. * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New. * symtab.c (symbol_init_language_specific): Support language_fortran. (symbol_find_demangled_name): New comment on language_fortran. (symbol_natural_name, symbol_demangled_name): Use demangled_name even for language_fortran. (lookup_symbol_aux_local): Check imports also for language_fortran. (default_make_symbol_completion_list): Rename to ... (default_make_symbol_completion_list_break_on): ... this name. New parameter break_on, use it. (default_make_symbol_completion_list): New stub. * symtab.h (default_make_symbol_completion_list_break_on): New prototype. gdb/testsuite/ Support DW_TAG_module as separate namespaces. * gdb.fortran/library-module.exp, gdb.fortran/library-module-main.f90, gdb.fortran/library-module-lib.f90: New. * gdb.fortran/module.exp: Replace startup by a prepare_for_testing call. (print i): Remove. (continue to breakpoint: i-is-1, print var_i value 1) (continue to breakpoint: i-is-2, print var_i value 2) (continue to breakpoint: a-b-c-d, print var_a, print var_b, print var_c) (print var_d, print var_i value 14, ptype modmany, complete `modm) (complete `modmany, complete `modmany`, complete `modmany`var) (show language, setting breakpoint at module): New tests. * gdb.fortran/module.f90 (module mod): Remove. (module mod1, module mod2, module modmany, subroutine sub1) (subroutine sub2, program module): New.
2010-06-02gdb/testsuite/Jan Kratochvil2-1/+3
* gdb.cp/anon-union.exp (pass): Rename to ... (print z 2): ... here.
2010-06-02Fix ARI warning in remote.c (no trailing \n in call to error)Joel Brobecker2-1/+6
* remote.c (remote_get_noisy_reply): Remove trailing "\n" in call to error.
2010-06-02gdb/testsuite/Jan Kratochvil2-3/+8
* gdb.cp/ref-types.exp (pass, pass, pass): Rename to ... (print value of rUC, print value of rI, print value of UI): ... here.
2010-06-022010-06-02 Michael Snyder <msnyder@vmware.com>Michael Snyder7-17/+21
* gdb.trace/actions.exp: Use gdb_test_no_output. * gdb.trace/circ.exp: Ditto. * gdb.trace/packetlen.exp: Ditto. * gdb.trace/save-trace.exp: Ditto. * gdb.trace/tracecmd.exp: Ditto. * gdb.trace/tsv.exp: Ditto.
2010-06-022010-06-02 Michael Snyder <msnyder@vmware.com>Michael Snyder14-39/+52
* gdb.threads/fork-thread-pending.exp: Use gdb_test_no_output. * gdb.threads/hand-call-in-thraeds.exp: Ditto. * gdb.threads/local-watch-wrong-thread.exp: Ditto. * gdb.threads/manythreads.exp: Ditto. * gdb.threads/print-threads.exp: Ditto. * gdb.threads/pthreads.exp: Ditto. * gdb.threads/schedlock.exp: Ditto. * gdb.threads/staticthreads.exp: Ditto. * gdb.threads/thread-specific.exp: Ditto. * gdb.threads/thread-unwindonsignal.exp: Ditto. * gdb.threads/threadapply.exp: Ditto. * gdb.threads/watchthreads.exp: Ditto. * gdb.threads/watchthreads2.exp: Ditto.
2010-06-022010-06-02 Michael Snyder <msnyder@vmware.com>Michael Snyder9-11/+22
* gdb.python/py-block.exp: Use gdb_test_no_output. * gdb.python/py-prettyprint.exp: Ditto. * gdb.python/py-template.exp: Ditto. * gdb.python/py-value.exp: Ditto. * gdb.reverse/watch-precsave.exp: Use gdb_test_no_output. * gdb.reverse/watch-reverse.exp: Ditto. * gdb.server/ext-attach.exp: Use gdb_test_no_output. * gdb.server/ext-run.exp: Ditto.