aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2010-06-14 * gdb.mi/mi-nonstop.exp: Do not call perror if non-stop mode isUlrich Weigand7-7/+10
not supported on the target. * gdb.mi/mi-nonstop-exit.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.
2010-06-122010-06-11 Stan Shebs <stan@codesourcery.com>Stan Shebs2-1/+106
Add per-operation permission flags. * target.h (struct target_ops): New method to_set_permissions. (target_set_permissions): New macro. (target_insert_breakpoint): Change macro to function. (target_remove_breakpoint): Ditto. (target_stop): Ditto. (may_write_registers): Declare. (may_write_memory): Declare. (may_insert_breakpoints): Declare. (may_insert_tracepoints): Declare. (may_insert_fast_tracepoints): Declare. (may_stop): Declare. * target.c (may_write_registers, may_write_registers_1): New globals. (may_write_memory, may_write_memory_1): New globals. (may_insert_breakpoints, may_insert_breakpoints_1): New globals. (may_insert_tracepoints, may_insert_tracepoints_1): New globals. (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New globals. (may_stop, may_stop_1): New global. (target_xfer_partial): Test for write permission. (target_store_registers): Ditto. (target_insert_breakpoint): New function. (target_remove_breakpoint): New function. (target_stop): New function. (_initialize_targets): Add new set/show variables. (set_write_memory_permission): New function. (update_target_permissions): New function. (set_target_permissions): New function. (update_current_target): Default to_set_permissions. (_initialize_targets): Use new globals and setter function. * tracepoint.c (start_tracing): Test for permission. * inferior.h (update_observer_mode): Declare. * infrun.c (non_stop_1): Define earlier. (observer_mode, observer_mode_1): New globals. (set_observer_mode, show_observer_mode): New functions. (update_observer_mode): New function. (_initialize_infrun): Define "set observer" command. * remote.c (PACKET_QAllow): New optional packet. (remote_protocol_features): Add QAllow. (remote_set_permissions): New function. (remote_start_remote): Call it. (init_remote_ops): Add it to target vector. (_initialize_remote): Add config command for QAllow. * gdb.texinfo (Observer Mode): New section. (General Query Packets): Document QAllow. * gdb.base/permissions.exp: New file.
2010-06-11 * gdb.base/valgrind-db-attach.exp: Fail gracefully if valgrindUlrich Weigand2-0/+9
does not support ELF executable class.
2010-06-11 * gdb.trace/packetlen.exp: Respect gdb_target_supports_trace.Ulrich Weigand2-0/+12
2010-06-11gdb/testsuite/Jan Kratochvil2-0/+12
* lib/gdb.exp (gdb_run_cmd): Return on $gdb_prompt. (runto): Catch "The target does not support running in non-stop mode.".
2010-06-112010-06-11 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+6
* gdb.base/setshow.exp (set language asm): Don't use gdb_test_no_output, fails on some targets.
2010-06-11 * gdb.cp/cpexprs.exp: Skip test on spu*-*-*.Ulrich Weigand3-0/+15
* gdb.cp/pr9167.exp: Likewise.
2010-06-11 * gdb.python/py-breakpoint.exp: Handle software watchpoints as well.Ulrich Weigand2-1/+5
2010-06-11 * gdb.base/solib-corrupted.exp: Respect skip_shlib_tests.Ulrich Weigand2-0/+8
2010-06-11 * gdb.base/charset.c (main): Make sure malloc gets linked in.Ulrich Weigand2-0/+9
2010-06-11gdbTom Tromey2-3/+7
PR gdb/9977, PR exp/11636: * value.h (value_offset): Update. (struct lval_funcs) <check_validity>: New field. <copy_closure>: Make argument const. (value_computed_closure): Update. (value_contents_for_printing): Declare. (value_bits_valid): Likewise. (val_print): Likewise. (set_value_component_location): Update. (value_entirely_optimized_out): Declare. * value.c (value_offset): Argument now const. (require_not_optimized_out): New function. (value_contents_for_printing): New function. (value_contents_all): Call require_not_optimized_out. (value_contents): Likewise. (value_bits_valid): New function. (value_computed_closure): Argument now const. (set_value_component_location): Make 'whole' argument const. (value_entirely_optimized_out): New function. (value_bitsize): Argument now 'const'. (value_bitpos): Likewise. (value_type): Likewise. * valprint.h (val_print_array_elements): Update. * valprint.c (val_print): Add 'val' argument. Use valprint_check_validity. (valprint_check_validity): New function. (value_check_printable): Use value_entirely_optimized_out. (common_val_print): Update. (value_print): Likewise. (val_print_array_elements): Add 'val' argument. * valops.c (value_fetch_lazy): Use value_contents_for_printing, value_bits_valid. Reinit frame cache for lval_computed. * sh64-tdep.c (sh64_do_register): Update. * scm-valprint.c (scm_val_print): Add 'val' argument. * scm-lang.h (scm_val_print): Update. * python/python.h (apply_val_pretty_printer): Update. * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val' argument. Call set_value_component_location. * printcmd.c (print_scalar_formatted): Update. * p-valprint.c (pascal_val_print): Add 'val' argument. (pascal_object_print_value_fields): Likewise. (pascal_object_print_value): Likewise. (pascal_object_print_static_field): Update. * p-lang.h (pascal_val_print): Update. (pascal_object_print_value_fields): Update. * mt-tdep.c (mt_registers_info): Update. * mi/mi-main.c (get_register): Update. (mi_cmd_data_evaluate_expression): Use common_val_print. * m2-valprint.c (m2_print_array_contents): Add 'val' argument. (m2_print_unbounded_array): Likewise. (m2_val_print): Likewise. * m2-lang.h (m2_val_print): Update. * language.h (struct language_defn) <la_val_print>: Add 'val' argument. (LA_VAL_PRINT): Likewise. * language.c (unk_lang_val_print): Add 'val' argument. * jv-valprint.c (java_print_value_fields): Add 'val' argument. (java_val_print): Likewise. * jv-lang.h (java_val_print): Add 'val' argument. * infcmd.c (default_print_registers_info): Update. * f-valprint.c (f77_print_array_1): Add 'val' argument. (f77_print_array): Likewise. (f_val_print): Likewise. * f-lang.h (f_val_print): Add 'val' argument. * dwarf2loc.c (read_pieced_value): Use value_bitsize and value_bitpos. <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call set_value_optimized_out. (write_pieced_value): Use value_bitsize and value_bitpos. <default>: Don't exit loop. (check_pieced_value_validity): New function. (pieced_value_funcs): Reference check_pieced_value_validity, check_pieced_value_invalid. (copy_pieced_value_closure): Update. (check_pieced_value_bits): New function. (check_pieced_value_invalid): New function. * d-valprint.c (dynamic_array_type): Add 'val' argument. (d_val_print): Likewise. * d-lang.h (d_val_print): Update. * cp-valprint.c (cp_print_value_fields): Add 'val' argument. (cp_print_value_fields_rtti): Likewise. (cp_print_value): Likewise. (cp_print_static_field): Update. * c-valprint.c (c_val_print): Add 'val' argument. (c_value_print): Update. * c-lang.h (c_val_print): Update. (cp_print_value_fields): Likewise. (cp_print_value_fields_rtti): Likewise. * ada-valprint.c (struct ada_val_print_args): Remove. (val_print_packed_array_elements): Add 'val' argument. (ada_val_print): Likewise. Rewrite. (ada_val_print_stub): Remove. (ada_val_print_array): Add 'val' argument. (ada_val_print_1): Likewise. (print_variant_part): Likewise. (ada_value_print): Update. (print_record): Add 'val' argument. (print_field_values): Likewise. * ada-lang.h (ada_val_print): Update. gdb/testsuite PR gdb/9977, PR exp/11636:: * gdb.dwarf2/pieces.exp (pieces_test_f3): Remove kfail. (pieces_test_f6): Update expected output.
2010-06-11gdb/Jan Kratochvil2-0/+32
* breakpoint.c (breakpoint_restore_shadows): New OWNER comment. (should_be_inserted): Return zero also on NULL OWNER. (breakpoint_program_space_exit): New OWNER comment. (insert_breakpoint_locations): Extend comment for OWNER. (remove_breakpoint_1, remove_breakpoint): Assert on OWNER. (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match): New OWNER comment. (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER. (watchpoint_check): New assert on BREAKPOINT_AT and OWNER. (bpstat_check_location): New assert on OWNER. (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL and B initializations to the code block. New assert on them. (print_one_breakpoint_location): New OWNER comment. (watchpoint_locations_match): Assert on OWNER. (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2 initializations to the code block. New assert on OWNER. (set_breakpoint_location_function): New assert on OWNER. (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib) (bp_location_compare, update_global_location_list) (update_global_location_list): New OWNER comment. gdb/testsuite/ * gdb.base/moribund-step.exp: New.
2010-06-102010-06-08 Michael Snyder <msnyder@vmware.com>Michael Snyder49-110/+168
* gdb.ada/assign_1.exp: Use ".*" instead of "" as wildcard regexp. * gdb.ada/boolean_expr.exp: * gdb.ada/frame_args.exp: Ditto. * gdb.ada/lang_switch.exp: Ditto. * gdb.ada/ptype_arith_binop.exp: Ditto. * gdb.ada/ref_param.exp: Ditto. * gdb.ada/type_coercion.exp:Ditto. * gdb.asm/asm-source.exp: Ditto. * gdb.base/attach.exp: Ditto. * gdb.base/bitfields2.exp: Ditto. * gdb.base/call-signal-resume.exp: Ditto. * gdb.base/callfuncs.exp: Ditto. * gdb.base/commands.exp: Ditto. * gdb.base/dbx.exp: Ditto. * gdb.base/default.exp: Ditto. * gdb.base/dump.exp: Ditto. * gdb.base/exprs.exp: Ditto. * gdb.base/freebpcmd.exp: Ditto. * gdb.base/interrupt.exp: Ditto. * gdb.base/list.exp: Ditto. * gdb.base/long_long.exp: Ditto. * gdb.base/maint.exp: Ditto. * gdb.base/ptype.exp: Ditto. * gdb.base/return.exp: Ditto. * gdb.base/setshow.exp: Ditto. * gdb.base/sigbpt.exp: Ditto. * gdb.base/sigrepeat.exp: Ditto. * gdb.cp/classes.exp: Ditto. * gdb.dwarf2/dw2-restore.exp: Ditto. * gdb.gdb/selftest.exp: Ditto. * gdb.multi/base.exp: Ditto. * gdb.multi/bkpt-multi-exec.exp: Ditto. * gdb.python/py-block.exp: Ditto. * gdb.python/py-prettyprint.exp: Ditto. * gdb.python/py-template.exp: Ditto. * gdb.server/ext-attach.exp: Ditto. * gdb.server/ext-run.exp: Ditto. * gdb.server/server-mon.exp: Ditto. * gdb.threads/fork-thread-pending.exp: Ditto. * gdb.threads/hand-call-in-threads.exp: Ditto. * gdb.threads/interrupted-hand-call.exp: Ditto. * gdb.threads/linux-dp.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/thread-unwindonsignal.exp: Ditto. * gdb.threads/threadapply.exp: Ditto.
2010-06-082010-06-08 Michael Snyder <msnyder@vmware.com>Michael Snyder30-111/+148
* gdb.ada/exec_changed.exp: Use ".*" instead of "" as wildcard regexp. * gdb.base/async.exp: Use ".*" instead of "" as wildcard regexp. * gdb.base/call-ar-st.exp: Ditto. * gdb.base/checkpoint.exp: Ditto. * gdb.base/default.exp: Ditto. * gdb.base/dump.exp: Ditto. * gdb.base/ending-run.exp: Ditto. * gdb.base/fileio.exp: Ditto. * gdb.base/miscexprs.exp: Ditto. * gdb.base/pointers.exp: Ditto. * gdb.base/readline.exp: Ditto. * gdb.base/reread.exp: Ditto. * gdb.base/restore.exp: Ditto. * gdb.base/shlib-call.exp: Ditto. * gdb.base/valgrind-db-attach.exp: Ditto. * gdb.base/volatile.exp: Ditto. * gdb.base/watchpoints.exp: Ditto. * gdb.cp/classes.exp: Use ".*" instead of "" as wildcard regexp. * gdb.python/py-frame.exp: Use ".*" instead of "" as wildcard regexp. * gdb.python/py-value.exp: Ditto. * gdb.trace/backtrace.exp: Use ".*" instead of "" as wildcard regexp. * gdb.trace/circ.exp: Ditto. * gdb.trace/collection.exp: Ditto. * gdb.trace/packetlen.exp: Ditto. * gdb.trace/passc-dyn.exp: Ditto. * gdb.trace/report.exp: Ditto. * gdb.trace/tfile.exp: Ditto. * gdb.trace/tfind.exp: Ditto. * gdb.trace/while-dyn.exp: Ditto.
2010-06-08gdb/Jan Kratochvil2-0/+7
* configure.ac <"${have_libpython}" != no>: New workaround of python#4434. * configure: Regenerate. gdb/testsuite/ * gdb.python/python.exp (pythonX.Y/lib-dynload/*.so): New.
2010-06-07gdb/Jan Kratochvil3-0/+165
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-07Test and support all cpp operator types.Sami Wagiaalla5-15/+335
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-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-04 Add support for enabling/disabling individual pretty-printers.Doug Evans3-1/+53
* 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-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-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-02gdb/Jan Kratochvil2-0/+10
* 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 Kratochvil6-14/+203
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-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.
2010-06-022010-06-02 Michael Snyder <msnyder@vmware.com>Michael Snyder11-25/+41
* gdb.dwarf2/dw2-basic.exp: Use gdb_test_no_output. * gdb.dwarf2/dw2-compressed.exp: Ditto. * gdb.dwarf2/dw2-intercu.exp: Ditto. * gdb.dwarf2/dw2-intermix.exp: Ditto. * gdb.dwarf2/dw2-producer.exp: Ditto. * gdb.dwarf2/mac-fileno.exp: Ditto. * gdb.gdb/observer.exp: Use gdb_test_no_output. * gdb.gdb/selftest.exp: Ditto. * gdb.multi/base.exp: Use gdb_test_no_output. * gdb.opt/inline-cmds.exp: Use gdb_test_no_output.
2010-06-02gdb/testsuite/Jan Kratochvil2-1/+5
* gdb.cp/ref-types.exp (print value of UI): Remove excessive newline.
2010-06-022010-06-02 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder14-27/+41
* gdb.cp/class2.exp: Use gdb_test_no_output. * gdb.cp/classes.exp: Ditto. * gdb.cp/extern-c.exp: Ditto. * gdb.cp/inherit.exp: Ditto. * gdb.cp/maint.exp: Ditto. * gdb.cp/mb-inline.exp: Ditto. * gdb.cp/mb-templates.exp: Ditto. * gdb.cp/method2.exp: Ditto. * gdb.cp/misc.exp: Ditto. * gdb.cp/ovldbreak.exp: Ditto. * gdb.cp/punctuator.exp: Ditto. * gdb.cp/templates.exp: Ditto. * gdb.cp/virtbase.exp: Ditto.
2010-06-022010-06-02 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder10-276/+184
* gdb.threads/attach-stopped.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/attachstop-mt.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/gcore-thread.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/hand-call-in-threads.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/linux-dp.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/print-threads.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/pthreads.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/schedlock.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/sigthread.exp: Replace uses of send_gdb / gdb_expect.
2010-06-022010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder10-186/+99
* gdb.trace/actions.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/backtrace.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/collection.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/deltrace.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/infotrace.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/limits.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/report.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/save-trace.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/tfind.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/tracecmd.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/tsv.exp: Replace uses of send_gdb / gdb_expect.
2010-06-02gdb/testsuite/Jan Kratochvil3-0/+91
* gdb.cp/re-set-overloaded.exp, gdb.cp/re-set-overloaded.cc: New.
2010-06-02Fix ADL anonymous name crash.Sami Wagiaalla3-0/+17
2010-06-02 Sami Wagiaalla <swagiaal@redhat.com> * cp-support.c (make_symbol_overload_list_adl_namespace): Handle anonymous type case. 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/koenig.exp: Added new test case. * gdb.cp/koenig.cc: Ditto.
2010-06-012010-06-01 Michael Snyder <msnyder@vmware.com>Michael Snyder81-438/+487
* gdb.base/arithmet.exp: Use gdb_test_no_output. * gdb.base/arrayidx.exp: Ditto. * gdb.base/attach.exp: Ditto. * gdb.base/auxv.exp: Ditto. * gdb.base/bigcre.exp: Ditto. * gdb.base/break-always.exp: Ditto. * gdb.base/break-interp.exp: Ditto. * gdb.base/break.exp: Ditto. * gdb.base/breakpoint-shadow.exp: Ditto. * gdb.base/call-ar-st.exp: Ditto. * gdb.base/call-sc.exp: Ditto. * gdb.base/call-signal-resume.exp: Ditto. * gdb.base/callfuncs.exp: Ditto. * gdb.base/catch-syscall.exp: Ditto. * gdb.base/charset.exp: Ditto. * gdb.base/code-expr.exp: Ditto. * gdb.base/commands.exp: Ditto. * gdb.base/cond-expr.exp: Ditto. * gdb.base/condbreak.exp: Ditto. * gdb.base/cursal.exp: Ditto. * gdb.base/cvexpr.exp: Ditto. * gdb.base/default.exp: Ditto. * gdb.base/del.exp: Ditto. * gdb.base/detach.exp: Ditto. * gdb.base/display.exp: Ditto. * gdb.base/ena-dis-br.exp: Ditto. * gdb.base/eval-skip.exp: Ditto. * gdb.base/foll-fork.exp: Ditto. * gdb.base/foll-vfork.exp: Ditto. * gdb.base/frame-args.exp: Ditto. * gdb.base/funcargs.exp: Ditto. * gdb.base/gcore-buffer-overflow.exp: Ditto. * gdb.base/gdbvars.exp: Ditto. * gdb.base/help.exp: Ditto. * gdb.base/ifelse.exp: Ditto. * gdb.base/included.exp: Ditto. * gdb.base/list.exp: Ditto. * gdb.base/macscp.exp: Ditto. * gdb.base/maint.exp: Ditto. * gdb.base/multi-fork.exp: Ditto. * gdb.base/overlays.exp: Ditto. * gdb.base/page.exp: Ditto. * gdb.base/pending.exp: Ditto. * gdb.base/pointers.exp: Ditto. * gdb.base/pr11022.exp: Ditto. * gdb.base/prelink.exp: Ditto. * gdb.base/printcmds.exp: Ditto. * gdb.base/psymtab.exp: Ditto. * gdb.base/randomize.exp: Ditto. * gdb.base/relational.exp: Ditto. * gdb.base/relocate.exp: Ditto. * gdb.base/remote.exp: Ditto. * gdb.base/sepdebug.exp: Ditto. * gdb.base/set-lang-auto.exp: Ditto. * gdb.base/setshow.exp: Ditto. * gdb.base/setvar.exp: Ditto. * gdb.base/signals.exp: Ditto. * gdb.base/signull.exp: Ditto. * gdb.base/sigstep.exp: Ditto. * gdb.base/sizeof.exp: Ditto. * gdb.base/solib-disc.exp: Ditto. * gdb.base/store.exp: Ditto. * gdb.base/structs.exp: Ditto. * gdb.base/structs2.exp: Ditto. * gdb.base/subst.exp: Ditto. * gdb.base/term.exp: Ditto. * gdb.base/trace-commands.exp: Ditto. * gdb.base/unwindonsignal.exp: Ditto. * gdb.base/valgrind-db-attach.exp: Ditto. * gdb.base/varargs.exp: Ditto. * gdb.base/watch-cond.exp: Ditto. * gdb.base/watch_thread_num.exp: Ditto. * gdb.base/watchpoint-cond-gone.exp: Ditto. * gdb.base/watchpoint.exp: Ditto. * gdb.base/whatis-exp.exp: Ditto.
2010-06-012010-05-25 Michael Snyder <msnyder@vmware.com>Michael Snyder16-1496/+740
* gdb.cp/annota2.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/annota3.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/anon-union.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/cplusfuncs.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/demangle.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/formatted-ref.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/local.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/method.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/misc.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/namespace.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/ovldbreak.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/pr-1023.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/ref-types.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/templates.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/userdef.exp: Replace uses of send_gdb / gdb_expect.
2010-06-01gdb/testsuite/Jan Kratochvil4-3/+11
* gdb.base/commands.exp (begin commands on watch): Remove excessive trailing newline. * gdb.mi/mi-nsintrall.exp (-gdb-show non-stop): Likewise. * gdb.java/jmisc.exp (p *args\n): Rename to ... (p *args): ... here and remove excessive trailing newline.
2010-05-31subst.exp: Empty message (3rd parameter) in call to gdb_testJoel Brobecker2-1/+5
This is something that Michael spotted and reported to me. Definitely a mistake, causing the test to report no status... gdb/testsuite: 2010-05-31 Joel Brobecker <brobecker@adacore.com> * gdb.base/subst.exp: Fix call to gdb_test with empty message. Tested on x86_64-linux. The test now reports 30 PASSes instead of 29.
2010-05-31gdb/testsuite/Jan Kratochvil2-4/+19
Accept the new Linux kernel "t (tracing stop)" string. * gdb.threads/watchthreads-reorder.c (thread1_func, thread2_func): Update comment. (state_wait) <T (tracing stop)>: New. (main): Update the state_wait expect string.
2010-05-28 * limits.c, limits.exp: Delete files.Pedro Alves5-360/+8
* Makefile.in (clean mostlyclean): Adjust. * tracecmd.exp: Adjust.
2010-05-28gdb/testsuite/Jan Kratochvil2-0/+25
* gdb.base/tui-layout.exp: New.
2010-05-282010-05-28 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder24-82/+96
* gdb.reverse/break-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/break-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/consecutive-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/consecutive-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/finish-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/finish-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/i386-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/i386-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/i386-sse-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/i387-env-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/i387-stack-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/machinestate-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/machinestate.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/sigall-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/sigall-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/solib-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/solib-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/step-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/step-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/until-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/until-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/watch-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/watch-reverse.exp: Replace uses of send_gdb / gdb_expect.
2010-05-28gdb/testsuite/Jan Kratochvil2-1/+6
* gdb.base/sepdebug.exp (info silent break bp_location1): Fix racy excessive newline.
2010-05-272010-05-27 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder19-1086/+449
* gdb.base/relational.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/relocate.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/restore.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/return.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/return2.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/sepdebug.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/setshow.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/setvar.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/shlib-call.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/shreloc.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/sigall.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/sigbpt.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/signull.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/so-impl-ld.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/varargs.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/volatile.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/watch_thread_num.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/watchpoint.exp: Replace uses of send_gdb / gdb_expect.
2010-05-272010-05-27 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder2-372/+208
* gdb.base/break.exp: Replace uses of send_gdb / gdb_expect.