gdb/testsuite/
* gdb.base/info-proc.exp: Return if target doesn't support 'info proc'.
This commit is contained in:
parent
d38bbb0a50
commit
3eca55e89d
|
@ -1,3 +1,8 @@
|
||||||
|
2012-06-06 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
|
* gdb.base/info-proc.exp: Return if target doesn't support
|
||||||
|
'info proc'.
|
||||||
|
|
||||||
2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
|
2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
* gdb.base/freebpcmd.exp (set lines): Check valid range of I.
|
* gdb.base/freebpcmd.exp (set lines): Check valid range of I.
|
||||||
|
|
|
@ -47,24 +47,23 @@ gdb_load ${binfile}
|
||||||
|
|
||||||
gdb_test "help info proc" "Show /proc process information about .*"
|
gdb_test "help info proc" "Show /proc process information about .*"
|
||||||
|
|
||||||
gdb_test "info proc" "No current process.*" "info proc without a process"
|
gdb_test_multiple "info proc" "info proc without a process" {
|
||||||
|
-re "No current process.*$gdb_prompt $" {
|
||||||
|
pass "info proc without a process"
|
||||||
|
}
|
||||||
|
-re "Not supported on this target.*$gdb_prompt $" {
|
||||||
|
# info proc command not supported -- nothing to test here.
|
||||||
|
unsupported "gdb does not support info proc on this target"
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if { ! [ runto_main ] } then {
|
if { ! [ runto_main ] } then {
|
||||||
untested info-proc.exp
|
untested info-proc.exp
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Does this gdb support info proc?
|
gdb_test "info proc" "process ${decimal}.*" "info proc with process"
|
||||||
gdb_test_multiple "info proc" "info proc" {
|
|
||||||
-re "Not supported on this target.*$gdb_prompt $" {
|
|
||||||
# info proc command not supported -- nothing to test here.
|
|
||||||
unsupported "gdb does not support info proc on this target"
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
-re "process ${decimal}.*$gdb_prompt $" {
|
|
||||||
pass "info proc with process"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gdb_test "info proc mapping" \
|
gdb_test "info proc mapping" \
|
||||||
".*Mapped address spaces:.*${hex}${ws}${hex}${ws}${hex}${ws}${hex}.*" \
|
".*Mapped address spaces:.*${hex}${ws}${hex}${ws}${hex}${ws}${hex}.*" \
|
||||||
|
|
Loading…
Reference in New Issue