Commit Graph

1528 Commits

Author SHA1 Message Date
Fred Fish 04c12f60f9 Checked in under the "obvious fix/typo rule".
2002-03-06  Fred Fish  <fnf@redhat.com>
	* gdb.base/funcargs.c:  Remove extraneous ';' character.
	* gdb.trace/gdb_c_test.c: Remove extraneous ';' character.
2002-03-07 04:18:55 +00:00
Michael Chastain b43df9952b 2002-03-04 Michael Chastain <mec@shout.net>
* gdb.mi/mi-var-cmd.exp: In test "create local variable func",
	accommodate gcc v3 function signature.
	* gdb.mi/mi0-var-cmd-exp: Ditto.
2002-03-05 19:48:18 +00:00
Andrew Cagney 923620278b s/Linux/.../
Fix PR gdb/378.
2002-02-24 22:56:08 +00:00
Michael Chastain 258ad32d2b 2002-02-24 Michael Chastain <mec@shout.net>
* gdb.threads/pthreads.c (thread1): Add a return statement.
	(thread2): Likewise.
	(foo): Likewise.
2002-02-24 20:37:56 +00:00
Michael Chastain 04c3b3d429 2002-02-23 Michael Chastain <mec@shout.net>
* gdb.threads/linux-dp.c (philosopher): Add a return statement
	to placate gcc.
2002-02-24 00:42:39 +00:00
Michael Chastain 5a2a0a2077 2002-02-23 Michael Chastain <mec@shout.net>
* gdb.c++/templates.exp: Remove setup_xfail_format "stabs" on
	test "ptype bint".  The test passes on all my stabs configurations.
2002-02-23 20:57:53 +00:00
Jim Blandy 27924826b5 * gdb.asm/asm-source.exp: Parse the output from `info sources' one
filename at a time, and watch for the ones we want to see.
2002-02-21 20:58:25 +00:00
Jim Blandy a640f7fc6b * gdb.base/ptype.exp, gdb.base/ptype.c: Add tests for printing
types of pointers to prototyped functions.
2002-02-21 20:34:16 +00:00
Andrew Cagney edcc8c754b * gdb.base/sizeof.c (main): Call fill_structs. Print value of
signed, unsigned and straight char.
(padding_char, padding_short, padding_int, padding_long,
padding_long_long, padding_float, padding_double,
padding_long_double): New global variables.
(fill, fill_structs): New functions.

* gdb.base/sizeof.exp: Check for signed and unsigned char.  Check
for correctly sized writes.  Update copyright.
(get_valueof): New procedure.
(get_sizeof): Call get_valueof.
(check_valueof): New procedure.
(check_padding): New procedure.
2002-02-21 01:55:05 +00:00
Michael Chastain ac57ea443e 2002-02-20 Michael Chastain <mec@shout.net>
* gdb.c++/virtfunc.exp (test_virtual_calls): Remove obsolete calls
	to setup_xfail.  Document some of the remaining calls.
2002-02-20 23:54:01 +00:00
Michael Chastain 7a10c941ea 2002-02-18 Michael Chastain <mec@shout.net>
* gdb.c++/userdef.exp: Update copyright year.
2002-02-18 19:08:05 +00:00
Daniel Jacobowitz fb8acdcc53 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
* gdb.c++/userdef.exp: Test overloaded operators properly.
        Remove xfails.
2002-02-18 18:57:07 +00:00
Daniel Jacobowitz 676a04427a 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/a2-run.exp: Check for a remote target properly.
        * gdb.base/annota1.exp: Likewise.
        * gdb.base/list.exp: Likewise.
        * gdb.base/reread.exp: Likewise.
        * gdb.base/scope.exp: Likewise.
        * gdb.base/shlib-call.exp: Likewise.
        * gdb.base/term.exp: Likewise.
        * gdb.c++/annota2.exp: Likewise.
2002-02-14 06:25:19 +00:00
Richard Earnshaw 78b4f46824 * gdb.base/watchpoint.exp: Restore previous timeout at end of test. 2002-02-13 17:40:42 +00:00
Michael Chastain 9a81ba5174 2002-02-10 Michael Chastain <mec@shout.net>
* gdb.base/funcargs.c (localvars_after_alloca): Fix return type.
	(call_after_alloca): Ditto.
2002-02-11 04:47:59 +00:00
Daniel Jacobowitz 23f572c231 Update copyright date. 2002-02-10 18:58:26 +00:00
Daniel Jacobowitz 004af6c7ff 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/ending-run.exp: Guard "cont" test with
        gdb_skip_stdio_test.
2002-02-10 18:21:36 +00:00
Jim Blandy 37225f62c4 * gdb.base/callfwmall.c, gdb.base/callfwmall.exp: Move these tests
from here...
* gdb.hp/gdb.base-hp/callfwmall.c, gdb.hp/gdb.base-hp/callfwmall.exp:
To here.  Disable this test on non-HP platforms.  Add big comment.
2002-02-07 22:02:31 +00:00
Jim Blandy e1ad829b91 * mi-regs.exp: Various cleanups for SPARC-only tests.
(test_breakpoints_creation_and_listing): Format of breakpoint
table has changed.
(sparc_register_tests): Expand floating-point number regexp to
recognize NaN values, too.  Replace ineffectual single backslash
before a hyphen with a double backslash.  Don't check the exact
numbers of the registers which have changed, since there's no way
to know which registers changed, exactly; just check that the
result is well-formed.
* mi0-regs.exp: (sparc_register_tests): Same as for
sparc_register_tests in mi-regs.exp.
2002-02-05 23:58:45 +00:00
Jim Blandy 15002962be * mi-var-child.exp ("get children of struct_declarations", "get
children of struct_declarations.s2.u2.u1s2", "get children of
weird"): Tolerate argument types when they appear in function
types.  (Dwarf 2 includes prototype info; STABS does not.)
* mi0-var-child.exp: Same.
2002-02-05 23:56:45 +00:00
Michael Snyder fe6fdd96e9 2002-02-04 Michael Snyder <msnyder@redhat.com>
* gdb.base/ovlymgr.c  (ovly_copy): Generalize for targets
          other than d10v and m32r.
2002-02-05 03:44:25 +00:00
Michael Snyder b082f19936 2002-01-14 Michael Snyder <msnyder@redhat.com>
* gdb.base/gcore.exp: Remove extra debugging output.
2002-02-05 01:15:51 +00:00
Richard Earnshaw 036fad3fdc * gdb.base/default.exp: Rewrite test patterns to reduce time
taken to match them.
2002-02-04 18:02:25 +00:00
Daniel Jacobowitz 7148ab6212 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/annota1.exp (backtrace from shlibrary): Fix spelling.
        Allow a start function above main.
        * gdb.threads/linux-dp.exp: Fix copyright date.
2002-01-31 05:08:41 +00:00
Daniel Jacobowitz 396cc25565 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
* gdb.threads/linux-dp.exp: Use 'array unset', not 'array set'.
        (check_philosopher_stack): Check for manager thread before checking
        for a just-starting thread.
2002-01-31 05:05:29 +00:00
Daniel Jacobowitz f038d31b6c 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
From Neil Booth <neil@daikokuya.demon.co.uk>:
        * gdb.base/bitfields.c: Correct assignments to bitfields to avoid
        warnings.
2002-01-30 22:38:56 +00:00
Fred Fish b3ff9d9a65 2002-01-21 Fred Fish <fnf@redhat.com>
* gdb.base/restore.exp (restore_tests): Fix obvious typo, callee
	not caller.
2002-01-22 01:05:06 +00:00
Jim Blandy 39ad761d6d * infcmd.c (run_command): Check that the `exec' target layer's BFD
is up-to-date before running the program, not just when a program
exits.

* testsuite/gdb.base/reread.exp: Check that GDB properly re-reads the
executable file when it changes while no inferior is running.
2002-01-21 21:57:55 +00:00
Fred Fish aaf320fa4a Approved by fnasser@redhat.com:
2002-01-21  Fred Fish  <fnf@redhat.com>
        * gdb.base/maint.exp: Simplify the "maint info breakpoints" test to
        optionally accept the "shlib events" variation.
2002-01-21 20:25:18 +00:00
Jim Blandy 808a31f526 * gdb.base/ending-run.c (main): Avoid messing with setvbuf; just
call `fflush' after every `printf', so that the output is produced
at predictable points, regardless of whatever buffering does (or
doesn't) take place.
* gdb.base/ending-run.exp: Adjust tests to expect output to appear
at different points.
2002-01-21 18:46:33 +00:00
Daniel Jacobowitz 4420d5e23b Copyright year updates. 2002-01-20 19:46:32 +00:00
Daniel Jacobowitz 3e36a0f45e 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
* gdb.c++/classes.exp: Update for improved v3 support and skipping
	artificial methods/arguments.
	* gdb.c++/derivation.exp: Likewise.
	* gdb.c++/inherit.exp: Likewise.
	* gdb.c++/method.exp: Likewise.
	* gdb.c++/virtfunc.exp: Likewise.
2002-01-20 19:22:13 +00:00
Andrew Cagney b4ceaee622 Mark testsuite/gdb.hp/gdb.threads-hp/ as obsolete. 2002-01-19 03:48:21 +00:00
Jim Blandy ecace851a6 * gdb.asm/asm-source.exp (info symbol): Take another shot at
anchoring the pattern matching the entry point symbol's name.
2002-01-18 00:13:00 +00:00
Andrew Cagney 375fc98382 Change behavour of internal-error to quit and dump core by default. 2002-01-17 23:33:39 +00:00
Daniel Jacobowitz e017c81f1f 2002-01-13 Daniel Jacobowitz <drow@mvista.com>
* gdb.c++/demangle.exp: Accept slightly dubious v2 demangler result
        for slightly dubious v2 mangled string.
2002-01-13 23:54:10 +00:00
Daniel Jacobowitz 37ab3bf83d 2002-01-13 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/completion.exp: Expand ${srcdir} to an absolute path.
2002-01-13 22:13:06 +00:00
Jason Merrill 1bc05c3a56 * gdb.c++/namespace.exp: Accept trailing const for 'this'.
* gdb.c++/classes.exp: Accept 'A const' or 'const A' in copy
        constructors.
        * gdb.c++/derivation.exp: Likewise.
        * gdb.c++/templates.exp: Likewise.
        * gdb.c++/virtfunc.exp: Likewise.
2002-01-10 20:46:16 +00:00
Michael Snyder 7b2ac63ba0 2002-01-10 Michael Snyder <msnyder@redhat.com>
* gdb.c++/namespace.exp: Accept both '\0' and '\000'.
2002-01-10 18:27:09 +00:00
Jason Merrill ce520b11b3 update copyright 2002-01-10 17:48:03 +00:00
Jason Merrill ffcb195b51 * gdb.c++/namespace.exp: '\0', not '\000'. 2002-01-10 13:21:58 +00:00
Michael Snyder a911c3606d 2002-01-08 Michael Snyder <msnyder@redhat.com>
* gdb.base/gcore.exp: New test for generate-core-file command.
	* gdb.base/gcore.c: Testcase for above.
	* gdb.threads/gcore-thread.exp: New test for gcore (threaded).
2002-01-09 00:37:41 +00:00
Jason Merrill ea2119ec84 * gdb.c++/userdef.cc: Use <iostream> instead of <iostream.h>. 2002-01-08 16:00:16 +00:00
Fred Fish 6820313638 Approved by mec@shout.net.
2002-01-07  Fred Fish  <fnf@redhat.com>
	* gdb.c++/overload.exp: Remove unconditional xfails for:
	print foo_instance1.overloadargs(1)
	print foo_instance1.overloadargs(1, 2)
	print foo_instance1.overloadargs(1, 2, 3)
	print foo_instance1.overloadargs(1, 2, 3, 4)
	print foo_instance1.overloadargs(1, 2, 3, 4, 5)
	print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6)
	print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7)
	print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8)
	print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9)
	print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
	print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
	print foo_instance1.overload1arg()
	print foo_instance1.overload1arg((char)arg2)
	print foo_instance1.overload1arg((signed char)arg3)
	print foo_instance1.overload1arg((unsigned char)arg4)
	print foo_instance1.overload1arg((int)arg7)
	print foo_instance1.overload1arg((unsigned int)arg8)
	print foo_instance1.overload1arg((float)arg11)
	print foo_instance1.overload1arg((double)arg12)
2002-01-08 05:37:43 +00:00
Michael Snyder 21b9b5b1ca 2002-01-07 Michael Snyder <msnyder@redhat.com>
* gdb.base/huge.exp: New test.  Print a very large target data object.
	(skip_huge_test): New test variable.  Define if you want to skip this
	test.  The test reads an 8 megabyte data object from the target, so it
	might be very time consuming on remote targets with a slow connection.
	* gdb.base/huge.c: New file.  Test case for above.
2002-01-08 01:00:10 +00:00
Fred Fish 725f922e71 Approved by med@shout.net:
2002-01-07  Fred Fish  <fnf@redhat.com>
	* gdb.c++/derivation.exp: Remove gcc xfails for g_instance.afoo,
	g_instance.bfoo, and g_instance.cfoo.
2002-01-07 21:23:35 +00:00
Jeff Law f286b2c396 * gdb.base/break.c (multi_line_if_conditional): New function.
(multi_ilne_while_conditional): Likewise.
        * gdb.base/break.exp: Verify that a breakpoint on a multi-line
        IF or WHILE condition puts the breakpoint at the start of
        the condition.
2002-01-07 19:21:27 +00:00
Jeff Law 634d57ec50 * gdb.base/selftest.exp (backtrace through signal handler): Remove
hppa*-*-hpux* expected failure.
	* gdb.base/structs.exp (do_function_calls): Similarly.

	* gdb.c++/annota2.exp (watch triggered on a.x): Handle hardware
	watchpoints.
2002-01-07 19:20:10 +00:00
Andrew Cagney 9fbfe2dc64 Fix PR gdb/66.
* gdb.base/structs.exp: Replace skip for a29k with skip for
gdb,cannot_call_functions.
* gdb.base/call-ar-st.exp: Remove references to a29k in comments.
* gdb.base/callfuncs.exp: Ditto.
* gdb.base/call-rt-st.exp: Ditto.
* gdb.base/call-strs.exp: Ditto.
* gdb.base/callfwmall.exp: Ditto.
* gdb.base/scope.exp: Obsolete xfail a29k.
* gdb.c++/misc.exp: Ditto.
* gdb.c++/cplusfuncs.exp: Ditto.
* gdb.base/ptype.exp: Ditto.
* gdb.base/printcmds.exp: Ditto.
* gdb.base/opaque.exp: Ditto.
* gdb.base/list.exp: Ditto.
* gdb.base/funcargs.exp: Ditto.
* gdb.base/default.exp: Ditto.
2002-01-06 14:42:39 +00:00
Michael Snyder ca4976a694 2002-01-04 Michael Snyder <msnyder@redhat.com>
* gdb.base/info-proc.exp: New file, test for "info proc" cmd.
2002-01-05 02:44:07 +00:00
Michael Snyder 8ddad156de 2002-01-04 Michael Snyder <msnyder@redhat.com>
* gdb.base/maint.exp: Add tests for maint info sections options.
2002-01-05 02:40:47 +00:00
Jeff Law 1b074332f2 * gdb.base/default.exp: Remove bogus hppa*-hp-hpux* xfails. 2001-12-21 16:40:07 +00:00
Jeff Law afabe08cae * gdb.hp/gdb.defects/bs15503.exp: Only run this test if compiling
with HP's compiler.
        * gdb.hp/gdb.objdbg/objdbg01.exp: Likewise.
        * gdb.hp/gdb.objdbg/objdbg02.exp: Likewise.
        * gdb.hp/gdb.objdbg/objdbg03.exp: Likewise.
        * gdb.hp/gdb.objdbg/objdbg04.exp: Likewise.

        * gdb.hp/gdb.defects/solib-d.exp: Update to handle building with
        either HP's compilers or GCC.
2001-12-21 00:30:38 +00:00
Jeff Law db521deb7f * gdb.hp/gdb.base-hp/hwwatchbus.exp: Allow inferior to get either
a SIGBUS or SIGSEGV.

        * gdb.hp/gdb.base-hp/so-thresh.exp: Remove useless send_user command.

        * gdb.hp/gdb.defects/bs14602.exp: Revamp slightly so that test
        can be compiled with either HP's compiler or GCC.
2001-12-21 00:08:51 +00:00
Jeff Law cfa88ab715 * gdb.hp/gdb.threads-hp/usrthbasic.exp: Disable completely.
* gdb.hp/gdb.threads-hp/usrthcore.exp: Disable completely.
        * gdb.hp/gdb.threads-hp/usrthfork.exp: Disable completely.
2001-12-20 23:46:29 +00:00
Jeff Law ca344dff5c * gdb.hp/gdb.base-hp/so-thresh.exp: Update text in expect strings
to match current gdb output.  Update due to using auto-solib-limit
        for limiting instead of overloading auto-solib-add.
        * gdb.hp/gdb.base-hp/so-thresh.mk: Always use "cc" to build the
        test program.

        * gdb.c++/templates.exp: Use "hppa64-*-*", not "hppa2.0w-*-*"
        * gdb.hp/gdb.base-hp/dollar.exp: Likewise
        * gdb.hp/gdb.base-hp/pxdb.exp: Likewise.
        * gdb.hp/gdb.base-hp/reg-pa64.exp: Likewise.
        * gdb.hp/gdb.base-hp/reg.exp: Likewise.
        * gdb.hp/gdb.compat/xdb3.exp: Likewise.
        * gdb.hp/gdb.defects/bs15503.exp: Likewise.
        * gdb.hp/gdb.objdbg/objdbg01.exp: Likewise
        * gdb.hp/gdb.objdbg/objdbg02.exp: Likewise
        * gdb.hp/gdb.objdbg/objdbg03.exp: Likewise
        * gdb.hp/gdb.threads-hp/usrthbasic.exp: Likewise.
        * gdb.hp/gdb.threads-hp/usrthcore.exp: Likewise.
        * gdb.hp/gdb.threads-hp/usrthfork.exp: Likewise.
2001-12-20 23:37:33 +00:00
Corinna Vinschen 7d159115bf * gdb.asm/arm.inc: New file.
* gdb.asm/asm-source.exp: Add arm targets.
	* gdb.asm/configure.in: Ditto.
	* gdb.asm/configure: Recreated from configure.in.
2001-12-20 22:12:20 +00:00
Jeff Law 3f3c6e5503 * gdb.c++/templates.exp: Use "hppa64-*-*", not "hppa2.0w-*-*" 2001-12-20 16:53:52 +00:00
Jeff Law 8fb87725a3 * gdb.base/annota1.exp: Expect failure for hpux11 when posting
a SIGTRAP to the inferior.
2001-12-20 16:52:07 +00:00
Corinna Vinschen cf599fa727 * gdb.asm/asm-source.exp: Drop setting link-flags for xstormy16.
Substitute call to target_link by call to gdb_compile.
2001-12-20 16:06:11 +00:00
Keith Seitz 69c10d9280 * mi-var-display.exp: char* variables have a child. Update all
occurences.
	* mi0-var-display.exp: Likewise.
2001-12-19 22:57:46 +00:00
Jeff Law 2cd045cd85 * gdb.base/break.exp: Fix HP specific search string when testing
backtracing in a called function.

        * gdb.base/constvars.exp: Only set lang to C++ if we're
        compiling the test with HP's compilers.
        * gdb.base/volatile.exp: Similarly.
2001-12-19 21:08:45 +00:00
Jim Blandy 99ebe9acce * gdb.base/printcmds.exp: Expect the null character to be printed
as '\0', and the '\013' to be printed as '\v'.
* gdb.base/callfuncs.exp ("backtrace at nested call level 4"): Same.
* gdb.base/setvar.exp: Same.
2001-12-19 06:29:45 +00:00
Jim Blandy 0eba65ab18 * gdb.base/completion.exp: Rather than completing very long
filenames, which can make the readline library produce output we
don't recognize, cd to the directory first, and then complete
using nice, short relative paths.
2001-12-17 22:58:42 +00:00
Jim Blandy 6970b5b149 * gdb.base/completion.exp: On some systems, there is, in fact, a
variable named `b' in scope, since GDB treats all static
variables as being in scope.  So use `no_var_named_this'
instead of `b'.
2001-12-17 21:49:09 +00:00
Jim Blandy b9891b29d8 * gdb.base/corefile.exp: Recognize the message saying that GDB
can't find the core file's registers as a failure.
2001-12-17 21:03:48 +00:00
Jim Blandy 47a849606f Remove accidentally committed ChangeLog entries for callfuncs.exp. 2001-12-17 20:38:57 +00:00
Jackie Smith Cashion e6ccd35f61 gdb/ChangeLog
2001-12-13  Jackie Smith Cashion  <jsmith@redhat.com>

	* cli/cli-script.c (print_command_lines): Remove extra
	"if", "else", "while", and "end" from show user output.

testsuite/ChangeLog
2001-12-13  Jackie Smith Cashion  <jsmith@redhat.com>

        * gdb.base/commands.exp (user_defined_command_test): Make "show user"
        test expect string more specific.
2001-12-13 22:42:23 +00:00
Corinna Vinschen 105ba81922 * gdb.asm/asm-source.exp: Add support for xstormy16.
* gdb.asm/configure.in: Ditto.
	* gdb.asm/configure: Rebuild.
	* gdb.asm/xstormy16.inc: New file.
2001-12-13 13:42:19 +00:00
Fred Fish e9e79dd9fc Approved by Jim Blandy:
2001-12-11  Fred Fish  <fnf@redhat.com>

	* gdbtypes.c (print_bound_type): New function.
	(recursive_dump_type): Print type struct code values
	TYPE_CODE_BITSTRING, TYPE_CODE_COMPLEX, TYPE_CODE_TEMPLATE,
	and TYPE_CODE_TEMPLATE_ARG.
	(recursive_dump_type): Print type struct members
	upper_bound_type, lower_bound_type, cv_type, and as_type.
	Also always print the tagname member, even when it is NULL.

	* testsuite/gdb.base/maint.exp: Update to match changes in
	type dumping code.
2001-12-12 02:07:12 +00:00
Jim Blandy 347dc97d2d * gdb.asm/asm-source.exp (info symbol): Anchor the pattern
matching the entry point symbol's name at the beginning of the
line.
2001-12-10 20:30:00 +00:00
Daniel Jacobowitz 6a1675750a Fix botched patch. 2001-12-07 22:24:41 +00:00
Daniel Jacobowitz 5178b9d602 * gdb.c++/classes.exp, gdb.c++/derivation.exp,
gdb.c++/inherit.exp, gdb.c++/method.exp,
        gdb.c++/namespace.exp, gdb.c++/templates.exp,
        gdb.c++/userdef.exp, gdb.c++/virtfunc.exp: Updates for v3 demangler
        and class layout support.
2001-12-07 22:02:23 +00:00
Daniel Jacobowitz af890c5292 * gdb.c++/classes.exp: Add test for static member function.
* gdb.c++/misc.cc: Add class with static member function.
2001-12-07 21:58:19 +00:00
Jim Blandy 8032bf31ff If GDB says it can't find the struct the function returned, report
those tests as `unsupported'.
* gdb.base/call-rt-st.exp (print_struct_call): New function.
Rewrite subsequent tests to use it.
2001-12-07 21:23:47 +00:00
Jim Blandy f2e54a8073 If GDB says it can't find the struct the function returned, report
those tests as `unsupported'.
* gdb.base/structs.exp (call_struct_func): New function.
(do_function_calls): Use call_struct_func to call the functions
returning structs.
2001-12-07 21:21:34 +00:00
Jim Blandy 0bc695097f * gdb.base/callfuncs.exp: The stabs generated by GCC don't tell us
whether functions are prototyped or not, so we can't possibly pass
arguments to t_float_values2 properly.
2001-12-07 21:17:00 +00:00
Jim Blandy 7a345fb3e3 * gdb.base/break.exp: (test_next_with_recursion): Don't change the
value of `timeout' for targets other than the mips*tx39-*.
2001-12-07 21:02:31 +00:00
Michael Snyder edb6ede1be 2001-12-06 Michael Snyder <msnyder@redhat.com>
* gdb.asm/asm-source.exp: Add tests for info target, info symbol,
	and detect whether the start symbol has a leading underscore.
2001-12-07 02:50:02 +00:00
Michael Snyder ca9efc9063 2001-11-30 Michael Snyder <msnyder@redhat.com>
* gdb.asm/asm-source.exp: Add tests for list, search, finish, return,
	next, info source, info sources, info line, global and static
	variables, and static functions.
	* gdb.asm/common.inc: New macro gdbasm_datavar (default definition).
	* gdb.asm/i386.inc: Override default definition of gdbasm_datavar.
	* gdb.asm/asmsrc1.s: Add a static function and some variables.
	* gdb.asm/asmsrc2.s: Make foo2 call foo3 twice (to test 'next').
	* gdb.asm/d10v.inc (gdbasm_enter): Set up frame pointer.
	(gdbasm_leave): Restore frame pointer.
	(gdbasm_startup): Copy stack set-up from crt0.S.
2001-12-04 19:45:57 +00:00
Jim Blandy 2d842f1359 * gdb.base/completion.exp: Clarify indentation. 2001-12-04 16:18:15 +00:00
Jim Blandy 68550daf9b * gdb.asm/s390.inc (gdbasm_datavar): Use `.long' to create `int'
variables on the S/390, not `.word'.
2001-12-03 21:53:16 +00:00
Jim Blandy cd5195a891 Add assembly-source tests for s390-ibm-linux.
* gdb.asm/s390.inc: New file.
* gdb.asm/configure.in, gdb.asm/asm-source.exp: Add clauses for
the S/390 architecture.
* gdb.asm/configure: Regenerated.
2001-12-01 01:13:27 +00:00
Michael Snyder 25d559ca78 Fix typo. 2001-11-30 18:53:06 +00:00
Michael Snyder 756caa3d89 2001-11-21 Michael Snyder <msnyder@redhat.com>
* gdb.asm/sparc.inc: New file.
	* gdb.asm/asm-source.exp: Recognize sparc target.
	* gdb.asm/configure.in: Recognize sparc target.
	* gdb.asm/configure: Regenerate.
2001-11-27 01:29:03 +00:00
Fernando Nasser 184d0bc81c 2001-11-26 Fernando Nasser <fnasser@redhat.com>
From 2001-11-12 Jackie Smith Cashion  <jsmith@redhat.com>:
	* gdb.base/callfuncs.c (t_structs_a): Do not return a pointer
	to a local (non-static) variable. Copy tstruct.a to a static buffer
	and return a pointer to that buffer.
	* gdb.base/callfwmall.c (t_structs_a): Ditto.
2001-11-26 21:29:31 +00:00
Fernando Nasser d0e6697627 2001-11-26 Fernando Nasser <fnasser@redhat.com>
From 2001-11-12 Jackie Smith Cashion  <jsmith@redhat.com>:
	* gdb.base/callfuncs.c (t_structs_a): Do not return a pointer
	to a local (non-static) variable. Copy tstruct.a to a static buffer
	and return a pointer to that buffer.
	* gdb.base/callfwmall.c (t_structs_a): Ditto.
2001-11-26 19:40:19 +00:00
Mark Kettenis e2334072bd * gdb.asm/configure.in: Fix recognition of ix86 target.
* gdb.asm/configure: Regenerate.
2001-11-24 14:43:57 +00:00
Michael Snyder 9a4d72d52a 2001-11-21 Michael Snyder <msnyder@redhat.com>
* gdb.asm/m32r.inc: New file.
	* gdb.asm/asm-source.exp: Recognize m32r target.
	* gdb.asm/configure.in: Recognize m32r target.
	* gdb.asm/configure: Regenerate.
2001-11-22 01:13:10 +00:00
Michael Snyder 017ac23d72 2001-11-20 Michael Snyder <msnyder@redhat.com>
* gdb.asm/i386.inc: New file.
	* gdb.asm/asm-source.exp: Recognize ix86 target.
	* gdb.asm/configure.in: Recognize ix86 target.
	* gdb.asm/configure: Regenerate.
2001-11-22 01:07:24 +00:00
Michael Snyder a773d1cdf8 2001-11-20 Michael Snyder <msnyder@redhat.com>
* gdb.c++/namespace.exp: Fix quotes in output messages.
2001-11-21 00:13:30 +00:00
Michael Snyder bb632afbec 2001-11-14 Michael Snyder <msnyder@redhat.com>
* gdb.base/code-exprs.exp: New file.  Tests use of the "@code"
	qualifier in a type cast expression, to designate an address
	in the instruction space (Harvard architecture).
2001-11-21 00:12:01 +00:00
Michael Snyder 4749e309f2 2001-11-13 Michael Snyder <msnyder@redhat.com>
* gdb.base/cvexpr.c, gdb.base/cvexpr.exp: New files.
	Tests for expressions using 'const' and 'volatile'.
2001-11-15 02:16:59 +00:00
Corinna Vinschen 2505098499 * gdb.asm/asm-sources.exp: Allow defining linker flags. 2001-11-14 16:37:18 +00:00
Michael Snyder 760f63305a 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.c++/templates.exp (test_template_breakpoints):
	If we get an overload menu, but it does not match what
	we expect, we still need to issue the "cancel" command.
2001-11-13 18:54:40 +00:00
Michael Snyder 3b2a7ae505 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.c++/templates.exp: Replace "void \\*" with "void ?\\*",
	making the whitespace optional.  Argument for "new" may be
	"unsigned" as well as "unsigned int/long".
2001-11-13 18:52:08 +00:00
Daniel Jacobowitz 1902c51fa6 * lib/mi-support.exp (mi_run_to_helper): Move comments
outside of gdb_expect.
2001-11-12 19:44:28 +00:00
Daniel Jacobowitz dcf95b4721 * lib/mi-support.exp: (mi_run_to_helper, mi_run_to,
mi_step_to, mi_next_to, mi_continue_to, mi_finish_to,
        mi0_step_to, mi0_next_to, mi0_continue_to, mi0_finish_to,
        mi0_run_to): New functions.
        * gdb.mi/mi-simplerun.exp: Use them.
        * gdb.mi/mi0-simplerun.exp: Likewise.
        * gdb.mi/mi-var-cmd.exp: Likewise.
        * gdb.mi/mi0-var-cmd.exp: Likewise.
2001-11-11 20:11:03 +00:00
Corinna Vinschen 84826df144 Change target name from stormy16 to xstormy16. 2001-11-11 19:58:19 +00:00
Andrew Cagney 45b074e11d * gdb.asm/asmsrc1.s: Add ``gdbasm_'' prefix to all macros.
* gdb.asm/asmsrc2.s, gdb.asm/d10v.inc: Update.
2001-11-10 17:55:48 +00:00
Andrew Cagney bf50d346c5 * gdb.asm/asm-source.exp: Supress file, instead of skip, when not
implemented.
2001-11-10 02:28:37 +00:00
Andrew Cagney 9383332cc4 * gdb.asm/asm-source.exp: Supress file, instead of skip, when not
implemented.
2001-11-10 01:44:43 +00:00
Michael Snyder db62520a00 2001-11-08 Michael Snyder <msnyder@redhat.com>
* gdb.base/callfuncs.exp: Add tests for nested call dummies.
	Add pass/fail message for stop at breakpoint in call dummy function.
2001-11-09 19:14:54 +00:00
Michael Snyder eef747c069 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.c++/templates.exp: Replace "const &" with "const ?&",
	making the whitespace optional.  Also replace "(void) with
	"((void|)), making the keyword "void" optional.
2001-11-08 19:21:54 +00:00
Michael Snyder 63f5049969 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.c++/virtfunc.exp: Replace "const &" with "const ?&",
	making the whitespace optional.  Also replace "(void) with
	"((void|)), making the keyword "void" optional.
2001-11-08 19:12:30 +00:00
Michael Snyder 3bf40917fc 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.base/callfuncs.c (t_float_values): This function must
	_not_ be prototyped, and the following function (t_float_values2)
	must be prototyped (if the compiler supports it), so that GDB
	can be tested against both cases.  Usually one case involves
	promotion of float to double, while the other does not.
	* gdb.base/callfwmall.c: Ditto.
2001-11-08 19:08:34 +00:00
Michael Snyder b57034379c 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.asm/asm-source.exp (bt ALL in foo2): Accept a backtrace that
	includes a stack frame for "start".
2001-11-08 19:06:18 +00:00
Jim Blandy c8ab4e6d75 * gdb.stabs/weird.exp: Delete "p v_comb" test. It assumes that
pointers are 32 bits long, and that offsets of relocs are always
stored in the data (REL-style), and not in the reloc entry itself
(RELA-style).
* gdb.stabs/weird.def (v_comb, v_comb_shared): Remove symbols and
stabs.
2001-11-06 00:31:59 +00:00
Michael Snyder 3f08ced966 2001-11-01 Michael Snyder <msnyder@redhat.com>
* gdb.c++/cplusfuncs.exp: Fix conflicts between operator names
	and regular expression operators by using quoting.
2001-11-05 23:31:26 +00:00
Michael Snyder cbfa24cd20 2001-10-31 Michael Snyder <msnyder@redhat.com>
* gdb.c++/overload.exp: Select overloadfnarg(void) or overloadfnarg(),
	depending on what the symbol table contains.
	* gdb.c++/derivation.exp: Accept both "foo(void)" and "foo()" in
	the output of the ptype command.  Similarly, accept both "const &"
	and "const&".
2001-11-01 23:41:09 +00:00
Corinna Vinschen aaa68313b8 * gdb.base/miscexprs.c (main): Add usage of preprocessor
symbol `STORAGE' to allow to choose the storage class of
	the local datastructures.
	* gdb.base/miscexprs.exp: Handle setting a `-DSTORAGE=...'
	compiler directive.
2001-10-31 20:59:22 +00:00
Michael Snyder 91740388ce 2001-10-30 Michael Snyder <msnyder@redhat.com>
* gdb.base/jump.exp: Allow it to run for all targets.
2001-10-31 02:40:24 +00:00
Corinna Vinschen 1b7c05e765 * gdb.base/call-ar-st.c (print_double_array): Match for loop
with new double_array size.
	(main): Change storage class of all local variables to static.
	Reduce size of double_array to 9.
	* gdb.base/call-ar-st.exp:  Increase timeout value.
	Change expected output for double array to match new size in
	call-ar-st.c.
2001-10-29 18:20:22 +00:00
Corinna Vinschen 36a222619e * gdb.base/ending-run.exp: Create identical output when passing
`step to end of run' case.  Add regular expression branch satisfying
	Stormy16 target.
2001-10-29 18:16:46 +00:00
Mark Kettenis 92b8ae9161 * gdb.base/interrupt.exp: Treat SIGILL similar to SIGSEGV such
that we catch the expected failure under Linux/x86.
2001-10-29 17:38:11 +00:00
Orjan Friberg cb135b8327 2001-10-29 Orjan Friberg <orjanf@axis.com>
* gdb.base/setvar.exp: Escape curly braces.
	* gdb.stabs/weird.exp: Ditto.
2001-10-29 16:24:35 +00:00
Daniel Jacobowitz 6884aa54f1 * gdb.mi/mi-hack-cli.exp: Remove excess newlines from test strings.
* gdm.mi/mi0-hack-cli.exp: Likewise.
2001-10-28 00:29:50 +00:00
Andrew Cagney 0398c9aabc Unify stabs/weird messages. 2001-10-26 04:17:45 +00:00
Andrew Cagney d20bf2e81b Don't print ``(MI_OUT)'' at startup. 2001-10-21 19:43:41 +00:00
Corinna Vinschen 03dd63aa03 * gdb.base/maint.exp: Treat $EXEEXT as optional in output. 2001-10-13 08:36:32 +00:00
Frank Ch. Eigler 1d9d99f32d 2001-10-04 Frank Ch. Eigler <fche@redhat.com>
* lib/insight-support.exp (gdbtk_start): Don't exit dejagnu
	if gdb child process crashes, just signal an error.
2001-10-04 22:11:12 +00:00
Jim Blandy 838ae6c473 * lib/gdb.exp (test_xfail_format): Simplify.
* lib/gdb.exp (setup_xfail_format): Don't forget to put a `$' in
front of the variable name `format'.  Simplify `if'.
2001-10-02 19:42:10 +00:00
Daniel Jacobowitz 8f0cbc1ca3 * gdb.threads/pthreads.exp: Wait for output and delay
before sending ^C.
2001-10-01 20:36:48 +00:00
Daniel Jacobowitz 1f08dafd5a * gdb.mi/mi-var-display.exp (continue to incr_a): Recognize
some incorrect output instead of timing out.
        * gdb.mi/mi-var-display.exp (continue to incr_a):  Likewise.
2001-10-01 20:31:38 +00:00
Corinna Vinschen 674f90ff34 * gdb.base/volatile.exp (local_compiler_xfail_check): Change qux2
check to allow additional `int'.
2001-09-28 11:41:30 +00:00
Daniel Jacobowitz 9b28427211 * gdb.base/completion.exp: Remove incorrect 'p "a' test.
Add tests for 'p "break' (pass) and 'p "break.' (xfail).
2001-09-27 22:21:22 +00:00
Michael Snyder b55a47712d 2001-09-27 Michael Snyder <msnyder@redhat.com>
* lib/gdb.exp (test_debug_format): New proc.
	(setup_xfail_format): Use new proc test_debug_format.
	* gdb.base/constvars.exp (local_compiler_xfail_check): New
	proc; use new service proc test_debug_format.
	Replace all other "gcc_compiled" tests with this test.
	* gdb.base/volatile.exp (local_compiler_xfail_check): New
	proc; use new service proc test_debug_format.
	Replace all other "gcc_compiled" tests with this test.
2001-09-27 21:35:56 +00:00
Corinna Vinschen 4e6667ac4f * gdb.base/constvars.exp: Check for different orders of keywords
and additional "int" strings in output.
2001-09-26 16:06:28 +00:00
Andrew Cagney 4f3379724d * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
variables.
(maintenance_set_profile_cmd): New function.
(maintenance_show_cmd, maintenance_set_cmd): New functions.
(_initialize_maint_cmds): Add "maintenance set" and "maintenance
show" and, commented out, "maintenance set/show profile" commands.
2001-09-25 02:31:51 +00:00
Frank Ch. Eigler 2015650dea * approved by kseitz
2001-09-19  Frank Ch. Eigler  <fche@redhat.com>

	* lib/insight-support.exp (_gdbtk_xvfb_init): Set DISPLAY
	to localhost:NNN instead of :NNN, in case Xvfb is listening
	only on TCP.
2001-09-19 15:39:54 +00:00
Corinna Vinschen f3bcedc1a9 * gdb.base/recurse.exp: When checking leaving the watchpoint
scope, recognize when gdb is in function's epilogue and pass.
2001-09-19 08:21:17 +00:00
Keith Seitz 6b819c92c4 * lib/insight-support.exp (_gdbtk_export_target_info): Add
support for running tests against sid targets.
	(gdbtk_done): Ditto.
2001-09-19 00:08:43 +00:00
Corinna Vinschen a10c9419a4 * gdb.base/ending-run.c (main): Set stdout buffersize
to the same reasonable value for any target.
        * gdb.base/ending-run.exp: Add a regular expression
        to make testsuite happy on Sanyo Stormy16 target.
2001-09-18 17:49:06 +00:00
Corinna Vinschen 739d0d99b3 * gdb.base/display.c (do_loops): Add float variable `f'.
Increment f in loop.
        * gdb.base/display.exp: Increment timeout by 60 seconds.
        Change float display test to use variable `f'.
2001-09-17 20:41:22 +00:00
Jim Blandy 1b8947f0b5 * gdb.base/restore.exp: Use temporary breakpoints, to avoid
overflowing the limited breakpoint tables on some ROM monitors
(like the ROM68K).
2001-09-17 19:42:28 +00:00
Frank Ch. Eigler 9890ac81bc 2001-09-15 Frank Ch. Eigler <fche@redhat.com>
* lib/insight-support.exp (_gdbtk_xvfb_init): Start Xvfb with
	the "-ac" (disable access control) flag.
2001-09-15 17:11:24 +00:00
Jeff Holcomb 6db765ea4b 2001-08-30 Jeff Holcomb <jeffh@redhat.com>
* gdb.base/remote.c: Use a small buffer for targets with 16-bit
        ints.
2001-09-03 19:54:33 +00:00
Keith Seitz 4c32cc04d2 * lib/gdb.exp: Move all insight-related functionality into
separate file.
	* lib/insight-support.exp: New file.
2001-08-30 16:34:04 +00:00
Andrew Cagney a116b84cf9 Cleanups. Now passes! 2001-08-30 01:45:30 +00:00
Frank Ch. Eigler 8d6e6f816b * gdb/sid connect fix, etc.
2001-08-29  Frank Ch. Eigler  <fche@redhat.com>

        * config/sid.exp (sid_start): Never set sid verbosity; disable
        expect_background {} that consumed its stdout; tolerate </dev/null.
        Attempt to set endianness override in "sid" protocol mode.  Cleanup.
2001-08-29 20:36:06 +00:00
Andrew Cagney fe766f112c * mi0-var-block.exp, mi0-stack.exp, mi0-simplerun.exp,
mi0-regs.exp, mi0-watch.exp, mi0-stepi.exp, mi0-until.exp,
mi0-return.exp, mi0-read-memory.exp, mi0-eval.exp,
mi0-disassemble.exp, mi0-console.exp, mi-watch.exp,
mi-var-display.exp, mi-var-cmd.exp, mi-var-child.exp,
mi-until.exp, mi-var-block.exp, mi-stepi.exp, mi-stack.exp,
mi-simplerun.exp, mi-return.exp, mi-regs.exp, mi-read-memory.exp,
mi-disassemble.exp, mi-eval.exp, mi-console.exp: Replace pattern
matching thread=0 with one to also match thread=1.
Fix PR gdb/190.
2001-08-19 01:23:43 +00:00
Andrew Cagney 6a90e1d0a6 * lib/mi-support.exp (mi_gdb_start): If a remote target, use the
CLI jump command to start it.
(mi_run_to_main): Fail immediatly when unexpected output.
2001-08-19 01:02:58 +00:00
Andrew Cagney e866d0e845 * mi0-until.exp, mi-until.exp, mi0-stepi.exp, mi-stepi.exp,
mi-simplerun.exp, mi0-simplerun.exp, mi0-return.exp,
mi-return.exp, mi0-console.exp, mi-console.exp: Recognize an
unexpected run-to-main response. Report as a fail.
2001-08-19 00:37:28 +00:00
Andrew Cagney 1759b3c3d8 * lib/mi-support.exp (mi_gdb_start): Move call to sid_start to
beginning of function.  Fix PR gdb/191.
2001-08-18 21:34:28 +00:00
Frank Ch. Eigler 61d11d8032 * obvious fix
2001-08-16  Frank Ch. Eigler  <fche@redhat.com>

	* config/sid.exp (sid_start): Don't warn if we cannot figure out
	what to force sid endianness to.
2001-08-16 14:19:54 +00:00
Keith Seitz 942a4df220 * lib/gdb.exp (gdbtk_start): Don't set environment
variables for TCL_LIBRARY and friends. Insight will
	now figure these out for itself.
2001-08-15 21:11:45 +00:00
Michael Snyder 0521c418a2 2001-08-02 Michael Snyder <msnyder@redhat.com>
* gdb.base/completion.exp: Remove the symbol "a64l" from
	the expect string; this is target-specific, and not related
	to what is being tested.
2001-08-06 22:08:12 +00:00
Dave Brolley 74a9a58ab5 2001-08-02 Dave Brolley <brolley@redhat.com>
* config/sid.exp: Rename gdb-socket to cpu-gdb-socket.
2001-08-04 15:56:41 +00:00
Michael Snyder c2b8fa57f7 2001-07-25 Michael Snyder <msnyder@redhat.com>
* gdb.base/consecutive.exp: New file.  Test stepping over
	breakpoints on consecutive instructions.
	* gdb.base/consecutive.c: New file.
2001-07-25 23:16:40 +00:00
Michael Snyder c70819faea 2001-07-25 Michael Snyder <msnyder@redhat.com>
* gdb.base/call-rt-st.exp: Use double-backslash to quote
	curly braces in regular expressions.
2001-07-25 22:45:25 +00:00