Fix gdb.dwarf2/staticvirtual.exp regexp.

2015-10-02  Sandra Loosemore  <sandra@codesourcery.com>

	gdb/testsuite/
	* gdb.dwarf2/staticvirtual.exp: Generalize regexp so it can match
	whether or not address 0x1000 is mapped on the target.
This commit is contained in:
Sandra Loosemore 2015-10-02 13:12:56 -07:00
parent 3ebe65c0ff
commit 06e635ef63
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-10-02 Sandra Loosemore <sandra@codesourcery.com>
* gdb.dwarf2/staticvirtual.exp: Generalize regexp so it can match
whether or not address 0x1000 is mapped on the target.
2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
* gdb.python/py-type.exp: Do not run tests if binaries fail to

View File

@ -51,4 +51,9 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} \
}
# gdb/18021: The test below would cause GDB to crash.
gdb_test "p S::~S" "0x1000"
# Depending on whether the target maps memory at address 0x1000,
# on success this may either print something like
# $1 = {void (void)} 0x1000 <.*>
# or
# Cannot access memory at address 0x1000
gdb_test "p S::~S" "0x1000.*"