aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.gdb
AgeCommit message (Collapse)AuthorFilesLines
2010-06-26Refactor 'maint time' command statistics.Paul N. Hilfinger1-2/+2
Consolidate code for displaying per-command time and space statistics to avoid duplication. Piggyback on cleanups so that statistics get printed even when commands terminate as a result of an error. Changelog * gdb/defs.h (make_command_stats_cleanup): Declare. (set_display_time): Declare. (set_display_space): Declare. * gdb/event-top.c (command_handler): Use make_command_stats_cleanup. * gdb/main.c (display_time, display_space): Move definitions to utils.c. (captured_main): Use make_command_stats_cleanup to get start-up statistics. Use set_display_time and set_display_space for processing OPT_STATISTICS case. * gdb/maint.c (maintenance_time_display): Use set_display_time. (maintenance_space_display): Use set_display_space. * gdb/top.c (execute_command): Remove obsolete 'maint time' code. (command_loop): Use make_command_stats_cleanup. * gdb/utils.c (struct cmd_stats): Structure for storing initial time and space usage. (display_time, display_space): Move definitions here from utils.c. (set_display_time): New function. (set_display_space): New function. (make_command_stats_cleanup): New function. (report_command_stats): New auxiliary function for make_command_stats_cleanup. * gdb/testsuite/gdb.gdb/selftest.exp: Adjust expected message for capturing start-up runtime.
2010-06-22 * gdb.gdb/selftest.exp: Remove support for gpl v1 and v2 gdb's.Doug Evans1-6/+0
2010-06-102010-06-08 Michael Snyder <msnyder@vmware.com>Michael Snyder1-1/+1
* 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-04gdb/testsuite/Jan Kratochvil1-4/+4
* 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-022010-06-02 Michael Snyder <msnyder@vmware.com>Michael Snyder2-17/+17
* 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-05-262010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder3-138/+35
* gdb.gdb/complaints.exp: Replace send_gdb with gdb_test. * gdb.gdb/selftest.exp: Replace send_gdb with gdb_test. * gdb.gdb/xfullpath.exp: Replace send_gdb with gdb_test.
2010-05-05Do not set prms_id/bug_id anymore.Joel Brobecker4-8/+0
2010-05-05 Joel Brobecker <brobecker@adacore.com> Remove the use of prms_id and bug_id throughout the testsuite.
2010-01-01Update copyright year in most headers.Joel Brobecker4-4/+5
Automatic update by copyright.sh.
2009-02-17 * observer.c (observer_test_first_notification_function)Vladimir Prus1-24/+24
(observer_test_second_notification_function) (observer_test_third_notification_function): Adjust prototype.
2009-01-03 Updated copyright notices for most files.Joel Brobecker4-4/+4
2008-01-26* gdb.gdb/selftest.exp (do_steps_and_nexts): Add more matches.Mark Kettenis1-0/+8
2008-01-01 Updated copyright notices for most files.Daniel Jacobowitz4-4/+4
2007-09-03 * gdb.base/default.exp (show version): Update the version text.Jan Kratochvil1-2/+10
* gdb.gdb/selftest.exp (xgdb is at prompt): Likewise.
2007-08-23 Switch the license of all .exp files to GPLv3.Joel Brobecker4-20/+16
Switch the license of all .f and .f90 files to GPLv3. Switch the license of all .s and .S files to GPLv3.
2007-03-12 * gdb.gdb/selftest.exp (do_steps_and_nexts): Match spaces as wellMark Kettenis1-5/+1
as tabs. Remove redundant test pattern.
2007-01-31 * gdb.gdb/selftest.exp (do_steps_and_nexts): Add more matches.Andreas Schwab1-0/+12
2007-01-09Copyright updates for 2007.Daniel Jacobowitz4-7/+5
2006-12-31 * gdb.base/annota1.exp: Allow .*printf in backtraces.Daniel Jacobowitz1-1/+13
* gdb.base/annota3.exp: Likewise. * gdb.base/sigstep.exp (advancei): Fail if we hit the breakpoint again (instead of timing out). * gdb.gdb/selftest.exp (do_steps_and_nexts): Add an XFAIL for GCC bug 26475. * gdb.java/jmisc.exp: Adjust to work with method signatures including return types. Add kfails for GDB bugs 2214 and 2215. Move exit test from jmisc1.exp. * gdb.java/jmisc1.exp: Delete. * gdb.java/jprint.exp: Adjust to work with method signatures including return types. * gdb.objc/basicclass.exp: Update for gobjc 4.1 debug info. * gdb.threads/linux-dp.exp: Don't be confused by program output. * lib/java.exp (compile_java_from_source): Pass the correct type to target_compile.
2006-11-22 * gdb.asm/asm-source.exp: Add "spu*-*-*" target.Ulrich Weigand4-4/+4
* gdb.asm/spu.inc: New file. * gdb.base/term.exp: Disable if [target_info exists noargs]. * gdb.gdb/complaints.exp: Disable if ![isnative]. * gdb.gdb/selftest.exp: Likewise. * gdb.gdb/observer.exp: Likewise. * gdb.gdb/xfullpath.exp: Likewise. * gdb.base/attach.exp: Disable on SPU target. * gdb.cp/bs145503.exp: Likewise. * gdb.cp/exception.exp: Likewise. * gdb.cp/userdef.exp: Likewise.
2005-12-26* gdb.gdb/selftest.exp (test_with_self): Update copyright check.Mark Kettenis1-1/+1
2004-09-102004-09-09 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain4-24/+36
* lib/gdb.exp (gdb_file_cmd): Revert the return value to previous simple convention. Use a global variable to store information about what was found. (gdb_run_cmd): Adapt to reverted return value. * gdb.base/remote.exp: Adapt to reverted return value. * gdb.gdb/complaints.exp: Likewise. * gdb.gdb/observer.exp: Likewise. * gdb.gdb/selftest.exp: Likewise. * gdb.gdb/xfullpath.exp: Likewise.
2004-09-01Use new gdb.exp feature to check for nodebug in the executable for testcases ↵Manoj Iyer4-0/+20
under gdb.gdb
2004-08-282004-08-27 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain4-33/+28
With code from Manoj Iyer <manjo@austin.ibm.com>: * lib/gdb.exp (gdb_file_cmd): Return more information in the return value. Add an arm for "no debugging symbols found". Change a stray "error" to "perror". (gdb_run_cmd): Adapt to new return value. * gdb.base/remote.exp: Adapt to new return value. * gdb.gdb/complaints.exp: Likewise. * gdb.gdb/observer.exp: Likewise. * gdb.gdb/selftest.exp: Likewise. * gdb.gdb/xfullpath.exp: Likewise.
2004-08-132004-08-13 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain1-2/+7
* gdb.gdb/selftest.exp: Revert removal of call to init_malloc.
2004-08-102004-08-10 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-4/+0
* main.c (captured_main): Delete call to init_malloc. * defs.h (init_malloc): Delete declaration. * utils.c (mmalloc, mrealloc, mcalloc, mfree) (init_malloc): Delete functions. Index: testsuite/ChangeLog 2004-08-10 Andrew Cagney <cagney@gnu.org> * gdb.gdb/selftest.exp (do_steps_and_nexts): Remove code to skip init_malloc call.
2004-07-192004-07-19 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-0/+516
* gdb.base/selftest.exp: Copy file from here ... * gdb.gdb/selftest.exp: ... to here.
2004-07-132004-07-13 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-62/+58
* gdb.gdb/observer.exp: Update copyright. (setup_test): Use gdb_test_multiple. (attach_first_observer, attach_second_observer) (attach_third_observer, detach_first_observer) (detach_second_observer, detach_third_observer) (reset_counters, check_counters): Make $message a prefix. (test_normal_stop_notifications): Add "args" parameter - a list of init functions to be called. Make $message a prefix, (test_observer_normal_stop): Change the message prefixes so that they are unique, pass the attach / detach procedures to test_normal_stop_notifications.
2004-04-16 * gdb.gdb/observer.exp (test_normal_stop_notifications): UpdateJoel Brobecker1-1/+4
call to observer_notify_normal_stop.
2003-08-302003-08-30 Michael Chastain <mec@shout.net>Michael Chastain2-19/+1
* gdb.base/selftest.exp: Remove support for m68k*-*-hpux. * gdb.gdb/observer.exp: Ditto. * gdb.gdb/xfullpath.exp: Ditto.
2003-03-27 * gdb.gdb/observer.exp: New regression test.Joel Brobecker1-0/+274
2002-09-242002-09-24 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-2/+38
* gdb.gdb/complaints.exp (test_initial_complaints): Rename test_isolated_complaints. (test_empty_complaint): New function. (test_empty_complaints): New function. Check no output when no complaints.
2002-09-192002-09-19 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-0/+282
* gdb.gdb/complaints.exp: New file.
2002-04-05New testcase.Joel Brobecker1-0/+198