aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
AgeCommit message (Collapse)AuthorFilesLines
1995-09-27 * tuples.ch. tuples.exp: Add new test for setting a variant recordPer Bothner3-1/+19
using a tuple, and access the fields.
1995-09-21 * gdb.disasm/sh3.s (fmac): Update for new assembler syntaxJeff Law1-0/+7
* gdb.disasm/sh3.exp (fmac): Corresponding changes.
1995-09-20add maintainer-clean Makefile targetsIan Lance Taylor2-1/+12
1995-09-11 * gdb.base/scope.exp (text_at_main): Add "hppa*-*-hpux*"Fred Fish2-0/+61
xfails when not gcc compiled for "print foo::funclocal". (test_at_foo): Add "hppa*-*-hpux*" xfails when not gcc compiled for: "print foo::funclocal at foo", "print 'scope1.c'::foo::funclocal at foo", "print foo::funclocal_bss at foo", "print 'scope1.c'::foo::funclocal_bss at foo", "print foo::funclocal_ro at foo", "print 'scope1.c'::foo::funclocal_ro at foo", "print bar::funclocal at foo" and "print 'scope1.c'::bar::funclocal at foo". (test_at_bar): Add "hppa*-*-hpux*" xfails when not gcc compiled for "print foo::funclocal at bar". Expand all messages to ensure that they identify that the test is at bar(). * gdb.base/opaque.exp: Add "hppa*-*-hpux*" xfails when not gcc compiled for: "ptype on opaque struct pointer (statically)", "ptype on opaque struct tagname (statically)", "ptype on opaque struct pointer (dynamically) 1", "ptype on opaque struct tagname (dynamically) 1", "ptype on opaque struct pointer (dynamically) 2" and "ptype on opaque struct tagname (dynamically) 2 * gdb.base/nodebug.exp: Add "hppa*-*-hpux*" xfails when not gcc compiled for: "p datalocal" "whatis datalocal", "ptype datalocal", "p bsslocal", "whatis bsslocal", and "ptype bsslocal". * gdb.base/langs.exp: Add "hppa*-*-hpux*" xfails for "backtrace in langs.exp" and "up to langs0__2do in langs.exp" when not gcc compiled. * gdb.base/funcargs.exp (float_and_integral_args): Add "hppa*-*-hpux*" xfail for "run to call2a" when not gcc compiled. (discard_and_shuffle): Add "hppa*-*-hpux*" xfail for "backtrace from call6a" when not gcc compiled. (shuffle_round_robin): Add "hppa*-*-hpux*" xfail for "backtrace from call7a" when not gcc compiled. * gdb.base/callfuncs.exp (do_function_calls): Add "hppa*-*-hpux*" xfail when not gcc compiled for "p t_char_array_values(char_array_val2,char_array_val1)", "p t_char_array_values(char_array_val1,char_array_val2)", "p t_char_array_values("carray 1","carray 2")", "p t_char_array_values("carray 1",char_array_val2)", "p t_char_array_values(char_array_val1,"carray 2")", "p sum_args(1,{2})", "p sum_args(2,{2,3})", "p sum_args(3,{2,3,4})", "p sum_args(4,{2,3,4,5})" * gdb.base/corefile.exp: Add "hppa*-*-hpux*" xfail for "backtrace in corefile.exp" when not gcc compiled.
1995-09-09 * gdb.base/signals.exp: Rewrite `handle all print' test asPeter Schauer1-0/+7
a procedure. Accept blanks or TABs as whitespace, increase timeout and expect input buffer size for the large output from the command. Remove "i*86-*-bsdi2.0" xfail.
1995-09-02 * gdb.base/setvar.exp: Add new testcases for truncation whenPeter Schauer1-0/+5
assigning invalid values to bitfields.
1995-09-02 * gdb.base/callfuncs.exp (do_function_calls): RemoveFred Fish2-3/+10
mips-sgi-irix* xfail for "call inferior func with struct - returns char *" and fix test so that an optional (unsigned char *) cast is accepted in the result.
1995-09-01 * gdb.base/funcargs.exp (float_and_integral_args): RemoveFred Fish3-4/+10
sparc-sun-solaris2* xfail for "print f1 after run to call2a". * gdb.c++/Makefile.in (SUFFIXES): Add .SUFFIXES and ".cc" suffix. * gdb.base/signals.exp: Remove duplicate "handle all print" test that accidentally got checked in.
1995-08-28 * gdb.base/callfuncs.exp (do_function_calls): Add alpha-dec-osf2*Fred Fish8-3/+68
clear_xfail for "p t_float_values2(3.14159,float_val2)" for gcc compiled test. * gdb.base/opaque.exp (setup_xfail_on_opaque_pointer): Add mips-sgi-irix5* xfail for not gcc compiled. * gdb.base/Makefile.in (nodebug.o): Also create nodebug.ci. * gdb.base/nodebug.exp: Add mips-sgi-irix5 xfail when not gcc compiled for "p top", "whatis top", "p middle", and "whatis middle". * gdb.base/whatis.exp: Add mips-sgi-irix* xfail for "whatis signed char" for not gcc compiled. * gdb.base/setvar.exp: Add mips-sgi-irix4* xfail (works on irix5) for "set variable signed char=-1 (-1)" and "set variable signed char=0xFF (0xFF)" for not gcc compiled. * gdb.base/funcargs.exp (float_and_integral_args): Add mips-sgi-irix5* xfail for "run to call2a" for not gcc compiled. Add mips-sgi-irix* xfail when not gcc compiled for "continue to call2b". Add mips-sgi-irix4* xfail (works with irix5) when gcc compiled for "continue to call2g". (discard_and_shuffle): Add mips-sgi-irix5* xfail whn not gcc compiled for "backtrace from call6a" (shuffle_round_robin): Add mips-sgi-irix* xfail when not gcc compiled for "backtrace from call7k". Add mips-sgi-irix5* xfail when not gcc compiled for "backtrace from call7a". (localvars_after_alloca): Fix gdb_test cmds for "print * after runto ...". Remove rs6000-*-* xfails for "print i after runto localvars_after_alloca" and "print l after runto localvars_after_alloca" for all compilers. * gdb.base/exprs.exp: Add mips-sgi-irix4* xfails (works with irix5), when not compiled with gcc, for: "print signed char == (minus)", "print signed char != (minus)", "print signed char < (minus)", "print signed char > (minus)". * gdb.base/callfuncs.exp (do_function_calls): Add mips-sgi-irix* xfail, when compiled with native compiler, for "call inferior func with struct - returns char *". * gdb.base/return.exp (return_tests): Change xfail for "correct value returned double test" to include Solaris 2.4. * gdb.base/funcargs.exp (float_and_integral_args): Add sparc-sun-solaris2* xfail for "print f1 after run to call2a".
1995-08-26 * gdb.base/setvar.c, gdb.base/setvar.exp: Add new tests forPeter Schauer2-95/+62
enumeration bitfields if compiling with GNU C. * lib/gdb.exp: Consume `(y or n) ' in `Reinitialize source path to empty' prompt.
1995-08-22 * gdb.base/scope.exp: xfail 'scope0.c'::filelocal_bss before runJeff Law2-0/+9
test for PRO targets.
1995-08-22Opps. Fix thinko in last change.Jeff Law1-7/+7
1995-08-22 * gdb.base/funcargs.exp: Avoid ever setting more than 8Jeff Law2-7/+26
breakpoints in the inferior at any given time by making two groups of breakpoints for call2*, call6* and call7* tests.
1995-08-20 * gdb.base/funcargs.exp: Fix typos introduced by Aug 15 change.Peter Schauer3-17/+16
* gdb.base/callfuncs.c (main): Use struct_val1 to inhibit xlc from optimizing it away. * gdb.base/callfuncs.exp: Remove rs6000-*-* xfails for "call inferior func with struct".
1995-08-16 * configure.in: Only configure gdb.chill for particular targets.Stan Shebs2-4/+8
1995-08-16 * gdb.base/Makefile.in: Add action to .c.o transformationFred Fish12-313/+407
rule that generates a .ci file for each .o file and remove explicit .c.o rules except for callfuncs.o. * gdb.c++/Makefile.in: Add .cc.o transformation rule that generates a .ci file for each .o file and remove explicit .cc.o rules. (clean): Remove *.tmp *.ci files. (EXECUTABLES): Remove templ-info.exp. * gdb.base/compiler.c: New file. * gdb.c++/compiler.cc: New file * gdb.base/scope.exp: Source gdb.base/scope.ci. Change rs6000-*-* xfail for "print 'scope0.c'::filelocal_ro" and "print 'scope1.c'::filelocal" and "print 'scope1.c'::filelocal_bss" and "print 'scope1.c'::filelocal_ro" and "print 'scope1.c'::foo::funclocal" and "print 'scope1.c'::foo::funclocal_ro" and "print 'scope1.c'::bar::funclocal" and "print 'scope0.c'::filelocal_ro" and "print 'scope1.c'::filelocal at foo" and "print 'scope1.c'::filelocal_bss at foo" and "print 'scope1.c'::filelocal_ro at foo" and "print 'scope1.c'::foo::funclocal at foo" and "print 'scope1.c'::foo::funclocal_bss at foo" and "print 'scope1.c'::foo::funclocal_ro at foo" and "print 'scope1.c'::bar::funclocal at foo" and "print 'scope0.c'::filelocal_ro" and "print 'scope1.c'::filelocal" and "print 'scope1.c'::filelocal_bss" and "print 'scope1.c'::filelocal_ro" and "print 'scope1.c'::foo::funclocal" and "print 'scope1.c'::foo::funclocal_bss" and "print 'scope1.c'::foo::funclocal_ro" and "print 'scope1.c'::bar::funclocal" and "print 'scope1.c'::bar::funclocal_bss" to only be xfail'd when not compiled with gcc. Add rs6000-*-* xfail for "print 'scope0.c'::filelocal_bss before run" when compiled with gcc. (test_at_main): Add rs6000-*-* xfail for "print filelocal_ro in test_at_main" when compiled with gcc. * gdb.base/ptype.exp: Source gdb.base/ptype.ci. Add rs6000-*-aix* xfail for "whatis unnamed typedef'd enum (compiler bug in IBM's xlc)" and "ptype t_char_array", not compiled with gcc. * gdb.base/list.exp (test_list_function): Add rs6000-*-* xfail for "list foo (in include file)" when gcc compiled. * gdb.base/funcargs.exp: Source gdb.base/funcargs.ci (integral_args): Add rs6000-*-* xfail for "run to call0a" if not compiled with gcc. (unsigned_integral_args): Add rs6000-*-* xfail for "run to call1a" if not compiled with gcc. (float_and_integral_args): Add rs6000-*-* xfail for "run to call2a" if not compiled with gcc and for "continue to call2b" for any compiler. Add rs6000-*-* xfail to "print f1 after run to call2a" for gcc compiled. (discard_and_shuffle): Add rs6000-*-* xfail for "run to call6a". (shuffle_round_robin): Add rs6000-*-* xfail for "backtrace from call7a" if not compiled with gcc. Add rs6000-*-* xfail for "backtrace from call7b" if compiled with gcc. (call_after_alloca): Add rs6000-*-* xfail for "print c in call_after_alloca" and "print s in call_after_alloca" and "backtrace from call_after_alloca_subr" if not compiled with gcc. (localvars_in_indirect_call): Add rs6000-*-* xfail for "print c in localvars_in_indirect_call" and "print c in localvars_in_indirect_call" and "backtrace in indirectly called function" and "stepping into indirectly called function" if not compiled with gcc. (localvars_after_alloca): Add rs6000-*-* xfail for "print c after runto localvars_after_alloca" and "print s after runto localvars_after_alloca" and "print i after runto localvars_after_alloca" and "print l after runto localvars_after_alloca" for all compilers. * gdb.base/whatis.exp: Source gdb.base/whatis.ci rather than whatis-info.exp. * gdb.base/opaque.exp: Source gdb.base/opaque0.ci rather than opaque-info.exp. Setup rs6000-*-* xfail for "ptype on opaque struct pointer (statically)" and "ptype on opaque struct pointer (dynamically)" when not compiled with gcc. * gdb.base/callfuncs.exp: Source gdb.base/callfuncs.ci rather than callf-info.exp. (do_function_calls): Add clear_xfail for rs6000-*-* for "p t_float_values2(3.14159,float_val2)". Seems to work fine there, both with xlc and gcc. Need to find out what it is doing right and fix other platforms. * gdb.base/callfuncs.exp: Add rs6000-*-* xfail for "call inferior func with struct - returns int", "call inferior func with struct - returns long", "call inferior func with struct - returns float", "call inferior func with struct - returns double", "call inferior func with struct - returns char *", but only if not gcc compiled (presumes xlc compiled). Change rs6000-*-* xfails for "call inferior func with struct - returns char" and " call inferior func with struct - returns short" to only xfail if not using gcc. (clean mostlyclean): Remove *.ci and *.tmp files. * gdb.c++/templates.exp: Source gdb.c++/templates.ci rather than templ-info.exp. * gdb.base/langs.exp: Source gdb.base/langs.ci. Add rs6000-*-* xfail for "up to foo in langs.exp" "up to cppsub_ in langs.exp" and "up to fsub in langs.exp" when not gcc compiled.
1995-08-12 * gdb.base/callfuncs.exp: Add xfails for the powerpc.Jeff Law8-290/+162
* gdb.base/corefile.exp: Likewise. * gdb.base/list.exp: Likewise. * gdb.base/scope.exp: Likewise. * gdb.base/siganls.exp: Likewise. * gdb.base/nodebug.exp: Add xfails for the powerpc. Handle aix4 compiler output. * gdb.base/whatis.exp: Likewise.
1995-08-11 * gdb.disasm/sh3.exp (all_fp_misc_tests): No longer expect aJeff Law2-4/+7
failure (opcode table has been fixed to match reality).
1995-08-11 * gdb.base/a1-selftest.exp: Change "i*86-*-sysv4" xfail forFred Fish8-65/+162
"backtrace through signal handler" to "i*86-*-sysv4*". * gdb.base/signals.exp: Add xfail for "'next' behaved as continue" case. Add "known SVR4 bug" to fail message. Add "i*86-*-bsdi2.0" xfail for "handle all print". Add "i*86-*-bsdi2.0" xfail for "backtrace in signals_tests_1". * gdb.base/ptype.exp: Add "i*86-*-sysv4*" xfail for "whatis unnamed typedef'd enum..." and "ptype t_char_array". * gdb.base/langs.exp: Add "i*86-*-sysv4*" xfail for "up to foo in langs.exp", "show language at foo in langs.exp", "up to cppsub_ in langs.exp", "show language at cppsub_ in langs.exp", "up to fsub in langs.exp", and "show language at fsub in langs.exp". * gdb.base/corefile.exp: Add "i*86-*-sysv4*" to xfail for "bactrace in corefile.exp". * gdb.base/callfuncs.exp: Change xfail to "i*86-*-*" for "call inferior function with struct - returns float" and "call inferior function with struct - returns double".
1995-08-07 * gdb.disasm/sh3.s: Source for sh3 disassembler tests.Jeff Law7-1/+241
* gdb.disasm/sh3.exp: Run the sh3 disassembler tests. * gdb.disasm/configure.in (sh-*-*): Use sh3.mt makefile fragment. * gdb.disasm/sh3.mt: Makefile fragment for sh3 ests. sh3e disassembler tests. Sanitized out for now.
1995-08-07 * gdb.base/corefile.exp: Change xfail for backtrace inFred Fish3-3/+41
corefile.exp from linuxaout to all linux. * gdb.base/sigall.exp (test_one_sig): Specifically deal with cases where we miss the breakpoint at the signal handler for some reason. Setup xfail for linuxoldld/linuxaout and getting SIGIO. Setup xfail for linuxoldld/linuxaout for hitting SIGURG breakpoint. * gdb.base/signals.exp: Setup xfail for "next" acting like continue to add linuxoldld. Setup xfail for all linux for "next to handler in signals_tests_1", "backtrace in signals_tests_1", "continue to func1", "pass SIGUSR1", and continue to handler".
1995-08-03Document FSF address updating of all files with FSF addresses,Fred Fish1-0/+4
except for the COPYING* files.
1995-08-03Add ChangeLog, pr-5984.ch, pr-5984.exp.Fred Fish1-0/+3
1995-08-03Add hppro.exp, monitor.exp.Fred Fish1-0/+2
1995-08-03Remove keep-chill stuff from .Sanitize and add gdb.chill to things toFred Fish2-19/+6
keep. Remove sanitize references in ChangeLog. Remove start/end sanitize-chill lines in Makefile.in.
1995-08-02Update FSF address.Fred Fish25-26/+26
1995-07-31 * gdb.base/a2-run.exp: Change messages to be more explicit aboutFred Fish1-0/+237
the status of args, and quote binfile in results.
1995-07-30 * gdb.base/callfuncs.exp: Add tests for passing structs toFred Fish2-0/+222
inferior functions and return various types. * gdb.base/callfuncs.c: Add functions to receive a struct and return a member of the struct, in various types.
1995-07-29 * gdb.base/Makefile.in (clean): Remove callf-info.exp.Peter Schauer2-1/+17
1995-07-28 * config/vxworks29k.exp: New file, sources vxworks.exp.Brendan Kehoe1-0/+1
1995-07-28 * config/gdbremote.exp: New file. Testing framework usingJeff Law2-0/+6
gdbserver. Doesn't work with lynx yet, and you need to set a handful of variables in your site.exp, but it's worth checking in now.
1995-07-28 * gdb.base/interrupt.exp: Setup "i*86-*-linux" xfail forFred Fish5-1/+33
"call function when asleep" and "send end of file". * gdb.base/corefile.exp: Add "i*86-*-linuxaout" to xfail list for "backtrace in corefile.exp". * gdb.base/a1-selftest.exp: Add "i*86-*-linux*" to xfail list for "backtrace through signal handler". * gdb.base/corefile.exp: Make sure we actually generate a core file before trying the core tests. Some systems allow the user to suppress generation of core files and default to that (linux for example). * gdb.base/signals.exp: Change xfail for "next" acting like "continue" from "i*86-*-linux" to "i*86-*-linuxaout". Works with ELF beta.
1995-07-27Forgot to commit .Santiize.Jeff Law1-0/+40
1995-07-26 * gdb.threads: New directory with some crude multi-threadedJeff Law4-0/+257
gdb tests (step.exp and step2.exp). * config/mt-lynx (STEP_EXECUTABLE): Define. (THREADFLAGS): Define. Hiro's test for 6100 and a crude test of my own. They both need some major cleanup for non-lynx hosts; both are also a little too loose in their checks. But I'm too burnt out on lynx to address either concern.
1995-07-25 * gdb.base/sigall.exp: Avoid losing in SIGPRIO test on lynx.Jeff Law1-0/+2
1995-07-25 * gdb.base/signals.exp: Disable whole file for lynx untilJeff Law2-0/+12
further notice. Looks like a bug in the lynx2.2.2 kernel scroggs the stack pointer in these tests leading to massive failures. I've sent a nice small concise example to Mark Rome @ lynx. Severe braindamage.
1995-07-25 * gdb.base/signals.exp: xfail test where "next" acts likeJeff Law2-1/+328
"continue" for lynx.
1995-07-25 * gdb.base/interrupt.exp: xfail test for calling function whileJeff Law1-0/+3
inferior is asleep for lynx.
1995-07-25 * gdb.base/watchpoint.exp: Handle more cases of gdb echoing moreJeff Law1-0/+5
than one cr-lf after each command.
1995-07-24 * configure.in: Reinstate setting of stabsdirs variable, fixPeter Schauer2-5/+20
typo in setting up configdirs for native builds. * gdb.base/return.exp: Fix typo in return double test. * gdb.base/return.c (tmp2, tmp3): Made global to inhibit the compiler from optimizing them away.
1995-07-21 * gdb.base/gdbvars.exp: Expect zero or more additional cr-lfJeff Law1-3/+3
sequences to be echo'd by gdb when using gdb_test. * gdb.chill/chexp.exp: Likewise. * gdb.fortran/exprs.exp: Likewise
1995-07-20 * gdb.base/a1-selftest.exp: Reset the timeout value to 30 secondsJeff Law5-100/+234
after the inferior gdb has started. 'cuz lynx may take a couple minutes to start the inferior gdb... * gdb.base/a2-run.exp: Handle gdb echoing more than one cr-lf after each command. * gdb.base/funcargs.exp: Likewise. * gdb.base/gdbvars.exp: Likewise. * gdb.base/interrupt.exp: Likewise. * gdb.base/list.exp: Likewise. * gdb.base/watchpoint.exp: Likewise. * gdb.c++/demangle.exp: Likewise. * gdb.c++/inherit.exp: Likewise. * gdb.chill/chexp.exp: Likewise. * gdb.fortran/exprs.exp: Likewise. Just in case we can't get a version of expect that sets the tty modes right on lynx to avoid this problem.
1995-07-20 * gdb.base/watchpoint.exp: Disable watchpoint triggered in syscallJeff Law2-1/+8
test if we can't handle IO to/from the inferior.
1995-07-20 * gdb.c++/misc.exp: Always check for a program already beingJeff Law1-0/+3
started after sending a "run" command to gdb.
1995-07-20 * gdb.base/twice.exp: Start with a fresh gdb.Jeff Law1-0/+2
1995-07-20 * gdb.chill/chexp.exp: Remove skip_chill_tests check; these testsJeff Law2-2/+3
only depend on gdb's expression code, not the chill runtime.
1995-07-20 * gdb.base/return.c: Put return values into variables so weJeff Law1-0/+5
can have gdb print them rather than depending on the program to print them. * gdb.base/return.exp: Corresponding changes.
1995-07-20 * lib/gdb.exp: Provide default value for noinferiorio.Jeff Law2-2/+39
* gdb.base/interrupt.exp: Skip tests if we can't handle IO to/from the inferior.
1995-07-20 * gdb.base/break.exp: Always check for a program already beingJeff Law1-0/+6
started after sending a "run" command to gdb. (text_next_with_recursion): Don't check the output from the program's printf statement. Instead just make sure the program exited.
1995-07-20 * gdb.base/commands.exp: Protect tests which need arguments withJeff Law1-0/+5
$noargs conditionals.