* gdb.server/ext-run.exp: "info os processes" requires xml support.
This commit is contained in:
parent
32d670fa3f
commit
08e24bd4ab
|
@ -1,3 +1,7 @@
|
|||
2010-01-11 Doug Evans <dje@google.com>
|
||||
|
||||
* gdb.server/ext-run.exp: "info os processes" requires xml support.
|
||||
|
||||
2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
Implement binary numbers parsing.
|
||||
|
|
|
@ -31,7 +31,11 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
|
|||
return -1
|
||||
}
|
||||
|
||||
# Start with a fresh gdb, gdb_skip_xml_test must be called while gdb
|
||||
# is not running.
|
||||
|
||||
gdb_exit
|
||||
set do_xml_test [expr ![gdb_skip_xml_test]]
|
||||
gdb_start
|
||||
gdb_load $binfile
|
||||
gdb_reinitialize_dir $srcdir/$subdir
|
||||
|
@ -46,7 +50,10 @@ gdb_test "run" "Breakpoint.* main .*" "continue to main"
|
|||
|
||||
if { [istarget *-*-linux*] } {
|
||||
# On Linux, gdbserver can also report the list of processes.
|
||||
gdb_test "info os processes" ".*pid +user +command.*1 +root +\[/a-z\]*init.*" "get process list"
|
||||
# But only if xml support is compiled in.
|
||||
if { $do_xml_test } {
|
||||
gdb_test "info os processes" ".*pid +user +command.*1 +root +\[/a-z\]*init.*" "get process list"
|
||||
}
|
||||
}
|
||||
|
||||
gdb_test "kill" "" "kill" "Kill the program being debugged.*" "y"
|
||||
|
|
Loading…
Reference in New Issue