aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2001-02-232001-02-22 Michael Snyder <msnyder@mvstp600e.cygnus.com>Michael Snyder2-10/+22
* gdb.base/reread.exp: Unsupported for non-native targets; doesn't work for remote debugging.
2001-02-192001-02-19 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2-1/+10
From Drew Moseley <dmoseley@redhat.com> * gdb.base/ending-run.exp: Properly handle the BSP state when stepping past the end of main.
2001-02-192001-02-19 John Moore <jmoore@redhat.com>Michael Chastain2-18/+12
* gdb.base/commands.exp (infrun_breakpoint_command_test): Converted HPUX fix for non-expected items following multiple step commands into general solution for all platforms.
2001-02-182001-02-18 Michael Chastain <chastain@redhat.com>Michael Chastain3-5/+13
* gdb.c++/classes.exp (do_tests): Change runto statements from "runto 'foo(void)'" to "runto 'foo'". This makes the statements demangler agnostic. * gdb.c++/virtfunc.exp (do_tests): Likewise. (gdb_virtfunc_restart): Likewise.
2001-02-182001-02-14 Michael Chastain <chastain@redhat.com>Michael Chastain2-3/+9
* gdb.c++/inherit.exp (do_tests): Change runto statements from "runto 'foo(void)'" to "runto 'foo'". This makes the statements demangler agnostic.
2001-02-15Make thread messages more consistent in pass/fail cases.Andrew Cagney2-6/+19
2001-02-142001-02-11 Michael Chastain <chastain@redhat.com>Michael Chastain3-161/+428
* gdb.c++/cplusfuncs.cc (dm_type_char_star): New function. Helps the test script figure out which demangler is in use. (dm_type_foo_ref): Ditto. (dm_type_int_star): Ditto. (dm_type_long_star): Ditto. (dm_type_unsigned_int): Ditto. (dm_type_void): Ditto. (dm_type_void_star): Ditto. * gdb.base/cplusfuncs.exp (probe_demangler): New function. Probe the gdb demangler and set variables to accommodate formatting differences. (info_func_regexp): New function. Same as info_func, but matches against a regexp. (info_func): Match against a literal string. (print_addr_2): New function. Match against a literal string, which can be different from the input to gdb. (print_addr): Simply call print_addr_2 with the same argument twice. (test_lookup_operator_functions): Use demangler formatting variables. Blow away the xfails and workarounds for gnats gdb bug gdb/18. Sort the tests in the same order as the C++ class declaration. (test_paddr_operator_functions): Ditto. (test_paddr_overloaded_functions): Ditto. (test_paddr_hairy_functions): Use demangler formatting variables. Add reference to gdb/19 for related tests. (do_tests): Call probe_demangler.
2001-01-30Replace blanked lines from earlier commit with comment stating thatKevin Buettner1-3/+3
the reason why the space is empty.
2001-01-30Remove unused printf() definition.Kevin Buettner2-4/+8
2001-01-30Removed files structs3.c structs3.exp.Michael Chastain2-112/+0
These were added by accident. Whoops!
2001-01-302001-01-29 Michael Chastain <chastain@redhat.com>Michael Chastain2-0/+112
* symtab.c (block_lookup_symbol): Use 'namespace' parameter in symbol comparisons in binary search.
2001-01-282001-01-28 Michael Chastain <chastain@redhat.com>Michael Chastain1-428/+194
* gdb.c++/ovldbreak.exp (take_gdb_out_of_choice_menu): New proc to call when tests fail. It takes gdb out of the overloaded function choice menu back to the main prompt, so that the test program stays synchronized. (set_bp_overloaded): New proc to collect all the common code for setting a breakpoint on an overloaded name. Calls take_gdb_out_of_choice_menu when needed. (menu_overload1arg): New variable to collect the repeated instances of the expected menu for an overloaded name. Change the regular expression to handle changes in g++ type encoding: "void" can be either "void" or "", and "unsigned int" can be either "unsigned int" or "unsigned". (continue_to_bp_overloaded): Change regular expressions to handle changes in g++ type encoding. (no proc): Call take_gdb_out_of_choice_menu when needed. Remove redundant calls to "info break". Accept either "canceled" or "cancelled". Change regular expressions in "info break" calls to handle changes in g++ type encoding. Give all tests unique strings.
2001-01-21* mi-support.exp (mi_gdb_start): Skip mi tests if -i flag isMark Kettenis2-0/+11
recognized (i.e. if GDB was compiled with UI_OUT, but the mi interpreter wasn't recognized (because it wasn't compiled in).
2001-01-162001-01-17 Ben Elliston <bje@redhat.com>Ben Elliston2-0/+192
* config/sid.exp: New file.
2001-01-12Restore missing space lost when switching to UI_OUT.Andrew Cagney2-1/+5
2000-12-222000-12-21 Michael Snyder <msnyder@mvstp600e.cygnus.com>Michael Snyder2-2/+14
* gdb.base/finish.exp: Accept '1' instead of \001 from char_func. Add a RE to accept a non-ascii char if one is ever presented.
2000-12-20Fix typo on last entry.Fernando Nasser1-2/+1
2000-12-202000-12-20 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2-1/+6
* Makefile.in (UIOUT_CFLAGS): New macro. CFLAGS needed for uiout code to be compiled. Defines UI_OUT. (SUBDIR_MI_CFLAGS): Defines MI_OUT, not UI_OUT. (INTERNAL_WARN_CFLAGS): Also include UIOUT_CFLAGS. * configure.in (UIOUT_CFLAGS): New configuration variable. (--with-uiout): New configuration option. Causes uiout code to be compiled, instead of the old *printf one. * configure: Regenerate. * top.c (print_gdb_version): Test for and print MI_OUT, not UI_OUT. * testsuite/lib/mi-support.exp (mi_gdb_start): Test for MI_OUT, not UI_OUT.
2000-12-202000-12-18 Michael Snyder <msnyder@mvstp600e.cygnus.com>Michael Snyder2-24/+29
* gdb.base/setvar.exp: Use double '\\' to quote curly braces in regexp. One '\' does not suffice on Linux.
2000-12-092000-12-09 Michael Chastain <chastain@redhat.com>Michael Chastain2-10/+18
* gdb.base/break.exp (test_clear_command): Use a marker function rather than 'main' for the test function. Also move this test to an execution point where the marker function names are guaranteed to be bound to functions. (Executing tests after a 'finish' from main runs into name conflicts with local names in __libc_start_main).
2000-12-082000-12-07 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder4-0/+333
* gdb.base/finish.exp: New test for gdb's "finish" command. * gdb.base/return2.exp: New test for gdb's "return" command. * gdb.base/return2.c: New source file for above.
2000-12-052000-12-05 Michael Snyder <msnyder@mvstp600e.cygnus.com>Michael Snyder9-13/+50
* gdb.base/constvars.exp: Add a "pass" message if "up" succeeds. * gdb.base/miscexprs.exp: Ditto. * gdb.base/pointers.exp: Ditto. * gdb.c++/derivation.exp: Ditto. * gdb.c++/local.exp: Ditto. * gdb.c++/namespace.exp: Ditto. * gdb.c++/overload.exp: Ditto. * gdb.c++/ref-types.exp: Ditto.
2000-12-052000-12-05 Michael Snyder <msnyder@mvstp600e.cygnus.com>Michael Snyder10-22/+63
* gdb.base/constvars.exp: Test result of "up" command. * gdb.base/miscexprs.exp: Ditto. * gdb.base/pointers.exp: Ditto. * gdb.base/scope.exp: Ditto. * gdb.c++/derivation.exp: Ditto. * gdb.c++/local.exp: Ditto. * gdb.c++/namespace.exp: Ditto. * gdb.c++/overload.exp: Ditto. * gdb.c++/ref-types.exp: Ditto.
2000-11-282000-11-22 Michael Chastain <chastain@redhat.com>Fernando Nasser2-2/+15
* mips_pro.exp: Accept either "middle -> top -> main" or "middle -> main" in the backtrace, because gcc can optimize tail calls to jumps. Remove setup_xfail for the hppa case. Add a comment with the original warning messages from PR 3016, which was filed in 1993, to preserve them for posterity.
2000-11-17 * lib/gdb.exp (gdb_test): Override timeout with board info.Nicholas Duffek2-4/+12
2000-11-17 * gdb.base/display.exp: Don't kill running stub. Add "again" toNicholas Duffek2-13/+19
the second kill and detach messages.
2000-11-17 * configure.in: Add AC_EXEEXT.Nicholas Duffek7-6/+137
* configure: Regenerate. * Makefile.in (just-check): Export EXEEXT. * lib/gdb.exp ($EXEEXT): Import from environment. * gdb.base/maint.exp: Expect $EXEEXT in executable name. Don't expect "maint dump-me" on Cygwin. * gdb.base/reread.exp ($binfile, $binfile1, $binfile2): Append $EXEEXT.
2000-11-17 * gdb.base/break.exp: Test backtrace and finish from calledNicholas Duffek2-15/+24
function on all platforms, not just HP-UX.
2000-11-142000-11-03 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-42/+61
* config/monitor.exp (gdb_target_cmd): Abstracts some of the code from gdb_target_monitor, so it can be used independantly for gdbserver. Also comment out an unnecessary PUTS.
2000-11-142000-11-03 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder7-36/+78
* gdb.base/a2-run.exp: Use gdb_skip_stdio_test. * gdb.base/corefile.exp: Expect the message "Program is being debugged already" when we send the "corefile" command, since the preceeding gdb_load may have connected gdb to a remote target. * gdb.base/display.exp: Disable hardware watchpoints if new board info variable "no_hardware_watchpoints" is true. Replace single-letter commands with more readable ones. * gdb.base/recurse.exp (recurse_tests): Disable hardware watchpoints if new board info variable "no_hardware_watchpoints" is true. * gdb.base/restore.exp (restore_tests): Call gdb_skip_stdio_tests to see if stdio (printf) testing is possible. * gdb.base/watchpoint.exp: Disable hardware watchpoints if new board info variable "no_hardware_watchpoints" is true. Use new proc "gdb_skip_stdio_tests" to see if printf tests are possible.
2000-11-142000-11-13 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2-11/+26
From Orjan Friberg <orjanf@axis.com>: * gdb.base/printcmds.exp: Escape curly braces followed by a number in array print pattern match.
2000-11-092000-11-09 Fernando Nasser <fnasser@redhat.com>Fernando Nasser3-8/+15
* gdb.c++/templates.exp (test_template_breakpoints): Change Britsh spelling "cancelled" to U.S. spelling "canceled" to match changes made to gdb. * gdb.c++/ovldbreak.exp: Ditto.
2000-11-06 * gdb.base/callfuncs.c (main): Moved to end of file, callPeter Schauer3-15/+115
t_double_values to initialize the FPU before inferior calls are made. * gdb.base/callfuncs.exp: Test for register preservation after calling inferior functions. Add tests for continuining, finishing and returning from a stop in a call dummy.
2000-10-242000-10-24 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-91/+146
* gdb.base/commands.exp: Break up long lines, and re-indent.
2000-10-192000-10-19 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-71/+147
* config/gdbserver.exp: Rewritten from the ground up, to make it compatible with the current dejagnu tree, and to make it work with the new "gdbserver" in libremote.
2000-10-172000-10-16 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder9-369/+559
* lib/gdb.exp (gdb_skip_float_test): New proc. Skip test if no floating point support. (gdb_skip_stdio_test): New proc. Skip test if no stdio support. * gdb.base/call-ar-st.exp: Use above procs to skip tests. * gdb.base/call-rt-st.exp: Ditto. * gdb.base/call-strs.exp: Ditto. * gdb.base/sizeof.exp (check_sizeof): Skip if no printf support. * gdb.base/varargs.exp: Skip entire test if no printf support. * gdb.base/ending-run.exp (Step to return): Skip if no printf supt. * gdb.base/shlib-call.exp: Skip several tests if no printf support.
2000-08-03* gdb.hp/gdb.aCC/namespace.exp: Remove. Moved to gdb.c++.Jimmy Guo2-296/+0
* gdb.hp/gdb.aCC/namespace.cc: Remove. Moved to gdb.c++.
2000-08-02* gdb.base/sizeof.c: include <stdio.h>.Jimmy Guo2-0/+10
2000-08-02* gdb.c++/classes.exp: Use gdb_test instead of send_gdb toJimmy Guo1-1/+1
'finish', otherwise uncaptured gdb_prompt would potentially throw remaining test points out of sync.
2000-07-282000-07-26 Scott Bambrough <scottb@netwinder.org>Scott Bambrough4-14/+19
* gdb.base/recurse.exp: Run tests for all targets. * gdb.base/so-impl-ld.exp: Added wildcard to handle the gnu-oldld case on ARM. * gdb.base/watchpoint.exp (test_stepping): Clear xfail for ARM targets.
2000-07-24 * gdb.java/configure.in (AC_INIT): Use jmisc.exp.Anthony Green3-2/+7
* gdb.java/configure: Rebuild.
2000-07-24 * language.c: Include jv-lang.h.Anthony Green2-0/+70
(lang_bool_type): Add case for java booleans. And in testsuite... * gdb.java/jv-exp.exp: New file.
2000-07-24 * configure: Rebuilt.Anthony Green9-0/+1166
* configure.in (configdirs): Add gdb.java. * gdb.java/jmisc.java: New file. * gdb.java/jmisc.exp: New file. * gdb.java/Makefile.in: New file. * gdb.java/configure: Rebuilt. * gdb.java/configure.in: New file. * lib/java.exp: New file.
2000-07-17* gdb.base/exprs.exp: Test casts to a pointer including over andAndrew Cagney2-1/+48
underflow.
2000-07-13Oops, one to many ChangeLog entries.Andrew Cagney1-5/+0
2000-07-13Check that GDB and the C compiler agree about the sizeof a few basic CAndrew Cagney3-0/+172
types.
2000-07-09 * gdb.c++/misc.cc (class ClassParam, class_param): Define.Nicholas Duffek3-0/+59
(use_methods): New function. (main): Call use_methods(). * gdb.c++/classes.exp (test_method_param_class): New procedure. (do_tests): Call test_method_param_class.
2000-07-09 * gdb.c++/classes.exp (test_nonexistant_members): Fix nameNicholas Duffek3-97/+114
spelling. (test_enums): New procedure. Move enum tests from end of script to here. Set breakpoint on function name instead of line number. * gdb.c++/misc.cc (ClassWithEnum): Move past Foo definitions. (enums2): New marker function. (enums1): New function. (main): Call enums1(). Move enum tests to enums1().
2000-07-04Rewrite gdb.asm so that it doesn't assume a C comiler (or any CAndrew Cagney4-16/+48
support).
2000-07-04Replace jumbo pattern match with gdb_expect_list().Andrew Cagney2-6/+38