mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
* gdb.server/ext-run.exp: "info os processes" requires xml support.
This commit is contained in:
@ -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>
|
2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
Implement binary numbers parsing.
|
Implement binary numbers parsing.
|
||||||
|
@ -31,7 +31,11 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
|
|||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Start with a fresh gdb, gdb_skip_xml_test must be called while gdb
|
||||||
|
# is not running.
|
||||||
|
|
||||||
gdb_exit
|
gdb_exit
|
||||||
|
set do_xml_test [expr ![gdb_skip_xml_test]]
|
||||||
gdb_start
|
gdb_start
|
||||||
gdb_load $binfile
|
gdb_load $binfile
|
||||||
gdb_reinitialize_dir $srcdir/$subdir
|
gdb_reinitialize_dir $srcdir/$subdir
|
||||||
@ -46,7 +50,10 @@ gdb_test "run" "Breakpoint.* main .*" "continue to main"
|
|||||||
|
|
||||||
if { [istarget *-*-linux*] } {
|
if { [istarget *-*-linux*] } {
|
||||||
# On Linux, gdbserver can also report the list of processes.
|
# 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"
|
gdb_test "kill" "" "kill" "Kill the program being debugged.*" "y"
|
||||||
|
Reference in New Issue
Block a user