diff options
author | Doug Evans <dje@google.com> | 2010-01-12 00:48:33 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2010-01-12 00:48:33 +0000 |
commit | 08e24bd4abc31abbc6ff795b95275dc3fe737113 (patch) | |
tree | 40c4247f2d515b1d46d27698b899a8d60f598f02 | |
parent | 32d670fa3fea01087a0330fde4fb92f084aa5423 (diff) | |
download | gdb-08e24bd4abc31abbc6ff795b95275dc3fe737113.zip gdb-08e24bd4abc31abbc6ff795b95275dc3fe737113.tar.gz gdb-08e24bd4abc31abbc6ff795b95275dc3fe737113.tar.bz2 |
* gdb.server/ext-run.exp: "info os processes" requires xml support.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.server/ext-run.exp | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index fe1c4be..b0fcac7 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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. diff --git a/gdb/testsuite/gdb.server/ext-run.exp b/gdb/testsuite/gdb.server/ext-run.exp index 978e4a1..5797c80 100644 --- a/gdb/testsuite/gdb.server/ext-run.exp +++ b/gdb/testsuite/gdb.server/ext-run.exp @@ -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" |