* lib/insight-support.exp (_gdbtk_export_target_info): Add
support for running tests against sid targets. (gdbtk_done): Ditto.
This commit is contained in:
parent
3b3e3cc446
commit
6b819c92c4
|
@ -1,3 +1,9 @@
|
||||||
|
2001-09-18 Keith Seitz <keiths@redhat.com>
|
||||||
|
|
||||||
|
* lib/insight-support.exp (_gdbtk_export_target_info): Add
|
||||||
|
support for running tests against sid targets.
|
||||||
|
(gdbtk_done): Ditto.
|
||||||
|
|
||||||
2001-09-18 Corinna Vinschen <vinschen@redhat.com>
|
2001-09-18 Corinna Vinschen <vinschen@redhat.com>
|
||||||
|
|
||||||
* gdb.base/ending-run.c (main): Set stdout buffersize
|
* gdb.base/ending-run.c (main): Set stdout buffersize
|
||||||
|
|
|
@ -185,6 +185,9 @@ proc _gdbtk_export_target_info {} {
|
||||||
} elseif {[string compare [info proc gdb_target_sim] gdb_target_sim] == 0} {
|
} elseif {[string compare [info proc gdb_target_sim] gdb_target_sim] == 0} {
|
||||||
# Using a simulator target
|
# Using a simulator target
|
||||||
set target simulator
|
set target simulator
|
||||||
|
} elseif {[string compare [info proc gdb_target_sid] gdb_target_sid] == 0} {
|
||||||
|
# Using sid
|
||||||
|
set target sid
|
||||||
} else {
|
} else {
|
||||||
# Assume native
|
# Assume native
|
||||||
set target native
|
set target native
|
||||||
|
@ -238,6 +241,15 @@ proc _gdbtk_export_target_info {} {
|
||||||
set info(run) "continue"
|
set info(run) "continue"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sid {
|
||||||
|
# We must start sid first, since Insight won't have a clue
|
||||||
|
# about how to do this.
|
||||||
|
sid_start
|
||||||
|
set info(target) "target [target_info gdb_protocol] [target_info netport]"
|
||||||
|
set info(load) "load"
|
||||||
|
set info(run) "continue"
|
||||||
|
}
|
||||||
|
|
||||||
native {
|
native {
|
||||||
set info(run) "run"
|
set info(run) "run"
|
||||||
}
|
}
|
||||||
|
@ -290,4 +302,9 @@ proc gdbtk_done {{results {}}} {
|
||||||
if {[info exists _xvfb_spawn_id]} {
|
if {[info exists _xvfb_spawn_id]} {
|
||||||
_gdbtk_xvfb_exit
|
_gdbtk_xvfb_exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Yich. If we're using sid, we must kill it
|
||||||
|
if {[string compare [info proc gdb_target_sid] gdb_target_sid] == 0} {
|
||||||
|
sid_exit
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue