aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2008-04-17 * gdb.opt/Makefile.in: Fix whitespace.Doug Evans2-12/+16
2008-04-172008-04-17 Daniel Jacobowitz <dan@codesourcery.com>Ulrich Weigand2-0/+6
* gdb.threads/linux-dp.exp: Continue after unrecognized lines.
2008-04-17 * buildsym.c (watch_main_source_file_lossage): New fn.Doug Evans4-0/+174
(end_symtab): Call it. * gdb.base/hashline1.exp: New testcase. * gdb.base/hashline2.exp: New testcase. * gdb.base/hashline2.exp: New testcase.
2008-04-17 gdb/Pedro Alves3-0/+93
* inf-loop.c (inferior_event_handler): Also run the intermediate continuations in the INF_EXEC_COMPLETE case. gdb/testsuite/ * gdb.base/step-break.exp, gdb.base/step-break.c: New files.
2008-04-15 * gdb.base/attach.exp (do_attach_tests): Matching pattern forAleksandar Ristovski23-57/+104
temporary breakpoint to match "Temporary breakpoint". * gdb.base/break.exp (delete_breakpoints): Likewise. * gdb.base/call-ar-st.exp (get_debug_format): Likewise. * gdb.base/commands.exp (temporary_breakpoint_commands): Likewise. * gdb.base/display.exp: Likewise. * gdb.base/foll-exec.exp (do_exec_tests): Likewise. * gdb.base/foll-fork.exp (catch_fork_child_follow): Likewise. * gdb.base/restore.exp (restore_tests): Likewise. * gdb.base/sepdebug.exp: Likewise. * gdb.base/watchpoint.exp: Likewise. * gdb.mi/mi-cli.exp: Added argument for new "disp" field. * gdb.mi/mi-pending.exp: Likewise. * gdb.mi/mi-simplerun.exp (test_running_the_program): Likewise. * gdb.mi/mi-until.exp (test_runnint_to_foo): Likewise. * gdb.mi/mi-var-cmd.exp: Likewise. * gdb.mi/mi-var-display.exp: Likewise. * gdb.mi/mi2-cli.exp: Likewise. * gdb.mi/mi2-simplerun.exp (test_running_the_program): Likewise. * gdb.mi/mi2-until.exp (test_running_to_foo): Likewise. * gdb.mi/mi2-var-display.exp: Likewise. * lib/gdb.exp (gdb_breakpoint): Pattern for temporary breakpoint. * lib/mi-support.exp (mi_runto_helper): Use "after_reason" argument for new "disp" field. (mi_expect_stop): Move after_reason argument to be really after reason. This is to support fix for PR2424.
2008-04-15 * gdb.dwarf2/dw2-ranges.S: New stub `.file' directive.Jan Kratochvil2-0/+7
2008-04-13 Fix @-varobjs.Vladimir Prus5-4/+99
* varobj.c (value_of_root): Update the expression for floating varobjs. * mi/mi-cmd-var.c (varobj_update_one): If type has changed, report that.
2008-04-09gdb/ChangeLogMarc Khouzam3-0/+93
2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com> * mi/mi-cmd-var.c: Include "mi-getopt.h". (mi_parse_format): New. Factored out from mi_cmd_var_set_format. (mi_cmd_var_set_format): Use new mi_parse_format. (mi_cmd_var_evaluate_expression): Support for -f option to specify format. * Makefile.in (mi-cmd-var.o): Update dependencies. * varobj.h (varobj_get_formatted_value): Declare. * varobj.c (my_value_of_variable): Added format parameter. (cplus_value_of_variable): Likewise. (java_value_of_variable): Likewise. (c_value_of_variable): Likewise. Evaluate expression based on format parameter. (struct language_specific): Add format parameter to function member *value_of_variable. (varobj_get_formatted_value): New. (varobj_get_value): Added format parameter to method call. gdb/doc/ChangeLog 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com> * gdb.texinfo (GDB/MI Variable Objects): Add anchor to -var-set-format. Add -f option to -var-evaluate-expression. gdb/testsuite/ChangeLog 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com> * gdb.mi/mi2-var-display.exp: Added tests for the new -f option of -var-evaluate-expression. * gdb.mi/mi2-var-display.exp: Likewise.
2008-04-07 Introduce test setup helpers.Vladimir Prus5-119/+84
* lib/gdb.exp (build_executable, clean_restart) (prepare_for_testing): New. * gdb.base/break.exp: Use prepare_for_testing, and clean_restart. * gdb.base/return.exp: Likewise. * gdb.base/ending-run.exp: Likewise.
2008-04-06*** empty log message ***Nick Roberts1-0/+5
2008-04-06New test for asynchronous Machine Interface (MI) responses.Nick Roberts1-0/+137
2008-04-06 Fix breakpoint condition that use member variables.Vladimir Prus3-1/+45
* valops.c (check_field): Remove. (check_field_in): Rename to check_field. (value_of_this): Use la_name_of_this. * value.h (check_field): Adjust prototype. * language.h (la_value_of_this): Rename to la_name_of_this. * language.c (unknown_language_defn): Specify "this" for name_of_this. (auto_language_defn): Likewise. (local_language_defn): Likewise. * ada-lang.c (ada_language_defn): Adjust comment. * c-lang.c (c_language_defn): Adjust comment. (cplus_language_defn): Specify "this" for name_of_this. (asm_language_defn): Adjust comment. (minimal_language_defn): Adjust comment. * f-lang.c (f_language_defn): Specify NULL for name_of_this. * jv-lang.c (java_language_defn): Specify "this" for name_of_this. * m2-lang.c (m2_language_defn): Specify "this" for name_of_this. * objc-lang.c (objc_language_defn): Specify "self" for name_of_this. * p-lang.c (pascal_language_defn): Specify "this" for name_of_this. * scm-lang.c (scm_language_defn): Specify NULL for name_of_this. * symtab.c (lookup_symbol_aux): Lookup "this" in the proper scope, and check for field in type of "this", without trying to create a value.
2008-04-05 * lib/mi-support.exp (mi_expect_stop): New.Vladimir Prus20-530/+243
(mi_run_cmd): Change the token. Use mi_send_resuming_command, use mi_expect_stop. (mi_execute_to_helper): Rename to mi_execute_to. (mi_send_resuming_command): Add more error patterns. (mi_wait_for_stop): Renamed to... (mi_get_stop_line): ...this. (mi_run_inline_test): Adjust. * gdb.mi/mi-cli.exp: Use mi_execute_to/mi_expect_stop. * gdb.mi/mi-console.exp: Likewise. * gdb.mi/mi-pending.exp: Likewise. * gdb.mi/mi-simplerun.exp: Likewise. * gdb.mi/mi-stack.exp: Likewise. * gdb.mi/mi-stepi.exp: Likewise. * gdb.mi/mi-syn-frame.exp: Add comment. * gdb.mi/mi-until.exp: Likewise. * gdb.mi/mi-var-display.exp: Likewise. * gdb.mi/mi-watch.exp: Likewise. * gdb.mi/mi2-cli.exp: Likewise. * gdb.mi/mi2-console.exp: Likewise. * gdb.mi/mi2-simplerun.exp: Likewise. * gdb.mi/mi2-stack.exp: Likewise. * gdb.mi/mi2-stepi.exp: Likewise. * gdb.mi/mi2-until.exp: Likewise. * gdb.mi/mi2-var-display.exp: Likewise. * gdb.mi/mi2-watch.exp: Likewise.
2008-04-04 * gdb.base/watch_thread_num.exp: Use gdb_compile_pthreads.Ulrich Weigand3-3/+13
* gdb.cp/mb-templates.exp: Skip test on spu*-*-* targets.
2008-04-04gdb/Pedro Alves13-38/+49
2008-04-04 Pedro Alves <pedro@codesourcery.com> * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR. (mi_error_message): Delete declaration. * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of returning MI_CMD_ERROR. * mi/mi-main.c (mi_error_message): Delete. (mi_cmd_exec_interrupt): (mi_cmd_thread_select, mi_cmd_thread_list_ids) (mi_cmd_thread_info): Call error instead of returning MI_CMD_ERROR. (mi_cmd_data_list_register_values): Call error instead of returning MI_CMD_ERROR. Adapt to new get_register interface. (get_register): Change return typo to void. Call error instead of returning MI_CMD_ERROR. (mi_cmd_data_write_register_values): Call error instead of returning MI_CMD_ERROR. (mi_cmd_list_features): Return MI_CMD_DONE. (captured_mi_execute_command): Remove MI_CMD_ERROR handling. (mi_execute_command): Always print exceptions with -error. gdb/testsuite/ 2008-04-04 Pedro Alves <pedro@codesourcery.com> * gdb.mi/mi-disassemble.exp, gdb.mi/mi-stack.exp, gdb.mi/mi-syn-frame.exp, gdb.mi/mi-var-block.exp, gdb.mi/mi-var-cmd.exp, gdb.mi/mi-var-display.exp, gdb.mi/mi2-disassemble.exp, gdb.mi/mi2-stack.exp, gdb.mi/mi2-syn-frame.exp, gdb.mi/mi2-var-block.exp, gdb.mi/mi2-var-cmd.exp, gdb.mi/mi2-var-display.exp: Update to not expect an mi error duplicated in stderr.
2008-04-03 * gdb.cp/ovldbreak.cc: Add missing bodies for methods foo::foofunc.Joel Brobecker5-2/+39
* gdb.cp/ovldbreak.exp: Set multiple-symbols to "ask". Add a couple of tests that verify the behavior when the new setting is set to "cancel" and "all". * gdb.cp/method2.exp, gdb.cp/templates.exp: Set multiple-symbols to "ask" before we start the testing.
2008-04-01 * gdb.cp/casts.cc: Add class reference variables.Aleksandar Ristovski1-0/+5
* gdb.cp/casts.exp: New test cases for up/down casting references.
2008-04-01 * gdb.cp/casts.cc: Add class reference variables.Aleksandar Ristovski2-0/+19
* gdb.cp/casts.exp: New test cases for up/down casting references.
2008-04-012008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>Marc Khouzam3-9/+15
* gdb.mi/mi-var-display.exp: Stop at end of do_special_tests instead of beginning to make an extra test pass. * gdb.mi/mi2-var-display.exp: Likewise.
2008-03-31* gdb.base/break.exp: Mark failures as such. Fix formatting.Maciej W. Rozycki2-6/+22
2008-03-312008-03-31 Markus Deuling <deuling@de.ibm.com>Markus Deuling2-3/+17
Ulrich Weigand <Ulrich.Weigand@de.ibm.com> * gdb.arch/spu-info.exp (info spu mailbox): Check for correct initial value. Add xfail for older kernels.
2008-03-282008-03-28 Aleksandar Ristovski <aristovski@qnx.com>Aleksandar Ristovski2-2/+16
Bring mi-support in line with gdb.exp. * lib/mi-support.exp (default_mi_gdb_start): Rename from mi_gdb_start. (mi_gdb_start): New function.
2008-03-28* gdb.mi/mi-var-cmd.exp: Fix a typo.Maciej W. Rozycki2-1/+5
2008-03-26 * gdb.mi/mi-var-display.exp: Remove obsolete xfail.Vladimir Prus3-6/+5
* gdb.mi/mi2-var-display.exp: Likewise.
2008-03-26 * lib/mi-support.exp (mi_create_varobj_checked): New.Vladimir Prus13-859/+728
(mi_list_varobj_children): Allow to check for a value. (mi_list_array_varobj_children): New. * gdb.mi/mi-var-child.exp: Use mi_create_varobj and mi_list_varobj_children, as opposed to hardcoding expected strings. * gdb.mi/gdb701.exp: Likewise. * gdb.mi/gdb792.exp: Likewise. * gdb.mi/mi-var-block.exp: Likewise. * gdb.mi/mi-var-cmd.exp: Likewise. * gdb.mi/mi-var-invalidate.exp: Likewise. * gdb.mi/mi2-var-block.exp: Likewise. * gdb.mi/mi2-var-child.exp: Likewise. * gdb.mi/mi2-var-cmd.exp: Likewise. * gdb.mi/mi2-var-display.exp: Likewise.
2008-03-24 Fix random false FAILs on i386.Jan Kratochvil2-2/+15
* gdb.base/prelink.exp: Use `--no-exec-shield' for prelink.
2008-03-24 PR gdb/544Daniel Jacobowitz3-5/+5
* gdb.cp/annota2.exp, gdb.cp/annota3.exp: Reapply 2008-03-21 changes.
2008-03-23Revert 2008-03-21 changes.Daniel Jacobowitz3-0/+10
2008-03-21 PR gdb/544Daniel Jacobowitz3-5/+5
Suggested by Jan Kratochvil: * top.c (gdb_rl_operate_and_get_next_completion): Call rl_redisplay_function. (gdb_rl_redisplay): New. (init_main): Set rl_redisplay_function. * gdb.cp/annota2.exp, gdb.cp/annota3.exp: Remove KFAIL for fixed PR gdb/544.
2008-03-212008-03-21 Daniel Jacobowitz <dan@codesourcery.com>Daniel Jacobowitz2-0/+8
* gdbthread.h (add_thread_with_info): New. * linux-thread-db.c: Add some documentation. (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete. (struct private_thread_info): Remove th_valid and ti_valid. Replace ti with tid. (thread_get_info_callback): Do not add TID to the new ptid. Do not cache th or ti. (thread_db_map_id2thr, lwp_from_thread): Delete functions. (thread_from_lwp): Assert that the LWP is set. Do not add TID to the new PTID. (attach_thread): Handle an already-existing thread. Use add_thread_with_info. Cache the th and tid. (detach_thread): Verify that private was set. Remove verbose argument and printing. Update caller. (thread_db_detach): Do not adjust inferior_ptid. (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete. (check_event, find_new_threads_callback): Do not add TID to the new PTID. (thread_db_wait): Do not use lwp_from_thread. (thread_db_pid_to_str): Use the cached TID. (thread_db_extra_thread_info): Check that private is set. (same_ptid_callback): Delete. (thread_db_get_thread_local_address): Do not use it or check is_thread. Check that private is set. Assume that the thread handle is already cached. (init_thread_db_ops): Remove to_resume and to_kill. * thread.c (add_thread_with_info): New. (add_thread): Use it. * linux-nat.c (find_thread_from_lwp): Delete. (exit_lwp): Do not use it. Check print_thread_events. Print before deleting the thread. (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to... * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here. * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and printf_unfiltered for thread exits. * procfs.c (procfs_wait): Likewise. 2008-03-21 Pedro Alves <pedro@codesourcery.com> * gdb.threads/fork-child-threads.exp: Test next over fork.
2008-03-212008-03-21 Chris Demetriou <cgd@google.com>Daniel Jacobowitz2-0/+47
* symtab.c (rbreak_command): Quote symbol name before passing it to break_command. * gdb.base/break.exp (rbreak junk): New test for rbreak "Junk at end of arguments" issue.
2008-03-21 * eval.c (evaluate_subexp_for_address): Clarify error message.Daniel Jacobowitz3-4/+21
Use value_must_coerce_to_target. * infcall.c (value_arg_coerce): Call value_coerce_to_target. * valops.c (value_assign): Call value_coerce_to_target when assigning to anything but internalvars. Leave GDB-side arrays as arrays when assigning to internalvars. (value_must_coerce_to_target, value_coerce_to_target): New. (value_coerce_array, value_addr): Call value_coerce_to_target. (value_array): Create the array in GDB's memory instead of the inferior's. * value.h (value_must_coerce_to_target, value_coerce_to_target): Declare. * gdb.texinfo (Expressions): Update description of malloced arrays. * gdb.base/printcmds.exp (test_print_array_constants): Do not expect *& to work on created array elements. (Top level): Test print $pc with a file. Test string operations without a target. * gdb.base/ptype.exp: Do not expect *& to work on created array elements.
2008-03-21 * top.c (quit_confirm): Warn that we will kill the program.Daniel Jacobowitz4-3/+8
* gdb.threads/killed.exp, gdb.threads/manythreads.exp, gdb.threads/staticthreads.exp: Update exit query.
2008-03-072008-03-07 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore2-1/+5
gdb/testsuite/ * lib/gdb.exp (gdb_load_cmd): Fix $args typo in timeout error message.
2008-03-03 * breakpoint.c (fetch_watchpoint_value): New function.Daniel Jacobowitz3-0/+45
(update_watchpoint): Set and clear val_valid. Use fetch_watchpoint_value. Handle unreadable values on the value chain. Correct check for user-requested array watchpoints. (breakpoint_init_inferior): Clear val_valid. (watchpoint_value_print): New function. (print_it_typical): Use it. Do not free or clear old_val. Print watchpoints even if old_val == NULL. (watchpoint_check): Use fetch_watchpoint_value. Check for values becoming readable or unreadable. (watch_command_1): Use fetch_watchpoint_value. Set val_valid. (do_enable_watchpoint): Likewise. * breakpoint.h (struct breakpoint): Update comment for val. Add val_valid. * NEWS: Mention watchpoints on inaccessible memory. * gdb.base/watchpoint.c (global_ptr, func4): New. (main): Call func4. * gdb.base/watchpoint.exp: Call test_inaccessible_watchpoint. (test_inaccessible_watchpoint): New. * gdb.texinfo (Set Watchpoints): Mention watchpoints on unreadable memory. Delete obsolete SPARClite reference.
2008-02-29* lib/gdb.exp (gdb_expect): Of all the timeouts provided alwaysMaciej W. Rozycki2-18/+33
select the largest.
2008-02-28 * frame.c (reinit_frame_cache): Only annotate if frames wereDaniel Jacobowitz3-3/+8
previously valid. * gdb.base/annota1.exp, gdb.cp/annota2.exp: Update for fewer frames-invalid annotations.
2008-02-282008-02-28 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2-17/+21
* gdb.base/assign.exp: avoid same output for different tests.
2008-02-27 * gdb.base/sigstep.exp (breakpoint_to_handler): Remove setup_kfailDoug Evans2-2/+6
for bug 1738. (breakpoint_to_handler_entry): Ditto.
2008-02-27 * gdb.base/ending-run.exp: Use the first line of code insideJoel Brobecker6-33/+34
function body to test breakpoints. * gdb.mi/mi-break.exp, gdb.mi/mi2-break.exp: Adjust the actual location where the breakpoint is inserted when using the line where a function is declared. Fix typo in the description of one of the tests. * gdb.mi/mi-simplerun.exp, gdb.mi/mi2-simplerun.exp: Likewise.
2008-02-272008-02-27 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2-2/+7
* gdb.arch/i386-sse.exp: avoid same output for two breakpoint setting tests.
2008-02-272008-02-27 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2-2/+7
* gdb.base/args.exp: avoid same output for tests with single quotes.
2008-02-26 * breakpoint.c (print_one_breakpoint_location): Revert Enb fieldVladimir Prus10-34/+47
to old format. Discard breakpoint address if shared library is unloaded. (breakpoint_1): Adjust formatting of table header accordingly.
2008-02-08 * gdb.cp/mb-inline.exp: New.Doug Evans1-0/+7
* gdb.cp/mb-inline.h: New. * gdb.cp/mb-inline1.cc: New. * gdb.cp/mb-inline2.cc: New.
2008-02-08 * breakpoint.c: #include "hashtab.h".Doug Evans4-0/+198
(ambiguous_names_p): New fn. (update_breakpoint_locations): When restoring bp enable status, don't compare function names if any functions have same name. * Makefile.in (breakpoint.o): Add hashtab.h dependency. * gdb.cp/mb-inline.exp: New. * gdb.cp/mb-inline.h: New. * gdb.cp/mb-inline1.cc: New. * gdb.cp/mb-inline2.cc: New.
2008-02-06 * gdb.pascal/floats.pas: New test program.Pierre Muller3-0/+211
* gdb.pascal/floats.exp: New testcase.
2008-02-06 * gdb.base/callfuncs.c (t_float_many_args): New function.Thiago Jung Bauermann3-0/+103
(t_double_many_args): New function. * gdb.base/callfuncs.exp: Add tests for exceeding float and double parameters passed through the stack.
2008-02-05 * gdb.ada/complete/pck.ads, gdb.ada/complete/pck.adb,Joel Brobecker5-0/+233
gdb.ada/complete/foo.adb: New files. * gdb.ada/complete.exp: New testcase.
2008-02-04 * eval.c (evaluate_subexp_standard): Fix type of result of mixedDoug Evans2-3/+5
integer/float division operations when EVAL_AVOID_SIDE_EFFECTS. * valops.c (value_one): New function. * value.h (value_one): Declare. Fix argument promotion for binary arithmetic ops for C. * valarith.c (unop_result_type): New fn. (binop_result_type): New fn. (value_binop): Move result type computation to binop_result_type. (value_pos, value_neg, value_complement): Move result type computation to unop_result_type. * gdb.base/whatis-exp.exp: Fix expected result of whatis x+y, x-y, x*y.
2008-02-03add copyrightDoug Evans3-0/+54