* gdb.base/solib-nodir.exp: Skip if remote target.

* gdb.base/gdb.fortran.exp: Use shlib= flag when linking main
	application.  Call gdb_load_shlibs.
	* gdb.mi/mi-solib.exp: Use mi_load_shlibs instead of gdb_load_shlibs.
This commit is contained in:
Ulrich Weigand 2011-11-30 08:24:32 +00:00
parent 2e2a012404
commit 4255c8d248
4 changed files with 12 additions and 3 deletions

View file

@ -34,13 +34,15 @@ if { [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" $objdir/$subdir/$li
# just for the linking phase (and not the source compilation phase). And any
# warnings on ignored $libfile abort the process.
if { [gdb_compile [list $srcdir/$subdir/$srcfile $objdir/$subdir/$libfile] $objdir/$subdir/$binfile executable {debug f90}] != "" } {
if { [gdb_compile $srcdir/$subdir/$srcfile $objdir/$subdir/$binfile executable [list debug f90 shlib=$objdir/$subdir/$libfile]] != "" } {
untested "Couldn't compile ${srcfile}"
return -1
}
clean_restart $binfile
gdb_load_shlibs $objdir/$subdir/$libfile
if ![runto MAIN__] then {
perror "couldn't run to breakpoint MAIN__"
continue