aboutsummaryrefslogtreecommitdiff
path: root/gdb/m2-lang.c
diff options
context:
space:
mode:
authorLuis Machado <lgustavo@codesourcery.com>2015-04-13 14:42:48 -0300
committerLuis Machado <lgustavo@codesourcery.com>2015-04-13 14:42:48 -0300
commit7578d5f72c4abb6b49b0394bc810192b06088705 (patch)
tree30cf5f85f93fefb77455131ae155bb8769ca19e1 /gdb/m2-lang.c
parent2efe15c42872987ed5123f3a3952c8b379554840 (diff)
downloadgdb-7578d5f72c4abb6b49b0394bc810192b06088705.zip
gdb-7578d5f72c4abb6b49b0394bc810192b06088705.tar.gz
gdb-7578d5f72c4abb6b49b0394bc810192b06088705.tar.bz2
Harden gdb.base/coredump-filter.exp
This testcase seems to assume the target is running Linux, so bare metal, simulators and other debugging stubs running different OS' will have a hard time executing some of the commands the testcase issues. Even restricting the testcase to Linux systems (which the patch below does), there are still problems with, say, QEMU not providing PID information when "info inferior" is issued. As a consequence, the subsequent tests will either fail or will not make much sense. The attached patch checks if PID information is available. If not, it just bails out and avoids running into a number of failures. gdb/testsuite/ChangeLog: 2015-04-13 Luis Machado <lgustavo@codesourcery.com> * gdb.base/coredump-filter.exp: Restrict test to Linux systems only. Handle the case of targets that do not provide PID information.
Diffstat (limited to 'gdb/m2-lang.c')
0 files changed, 0 insertions, 0 deletions