* lib/gdb.exp(gdb_step_for_stub): New function.
authorBob Manson <manson@cygnus>
Sat, 13 Sep 1997 00:08:05 +0000 (00:08 +0000)
committerBob Manson <manson@cygnus>
Sat, 13 Sep 1997 00:08:05 +0000 (00:08 +0000)
commitfc75bd970a7538c5cdbe8c8d7405e5daff999faf
tree46f246975130e4586972f66b2801806a266814e4
parenteb16c04c8c232558f68b424bcb62b285fd2d9002
* lib/gdb.exp(gdb_step_for_stub): New function.
(gdb_run_cmd): Look for gdb,do_reload_on_run target feature--if it
exists, reload the executable and do a "continue" instead of
doing a jump.
(runto_main): Use gdb_step_for_stub.

* gdb.base/break.exp: Use gdb_step_for_stub. Also, rename certain
  tests to have unique names.
* gdb.base/callfuncs.exp: Ditto.
* gdb.base/commands.exp: Ditto.
* gdb.base/default.exp: Ditto.
* gdb.base/help.exp: Ditto.
* gdb.base/list.exp: Ditto.
* gdb.base/opaque.exp: Ditto.
* gdb.base/printcmds.exp: Ditto. Use a loop to emit multiple
similar tests.

* gdb.base/setshow.c: Add set_debug_traps/breakpoint calls.
* gdb.c++/cplusfuncs.cc: Ditto.
* gdb.c++/virtfunc.cc: Ditto.

* config/monitor.exp: Keep track of the last file we saw, rather
than trying to get the info from gdb.

* gdb.fortran/types.exp: Move comment to previous line.

Fixes for TCL8 miscellaneous problems, plus other changes.
gdb/testsuite/gdb.base/callfuncs.exp
gdb/testsuite/lib/gdb.exp