Fix Python rbreak tests setting too many breakpoints when glibc debug info is installed.

2017-11-29  Phil Muldoon  <pmuldoon@redhat.com>

	* gdb.python/py-rbreak.exp: Set nosharedlibrary before tests.
This commit is contained in:
Phil Muldoon
2017-11-29 16:48:32 +00:00
parent 8ca2f0b9ac
commit f6f1d339d4
2 changed files with 5 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
2017-11-29 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-rbreak.exp: Set nosharedlibrary before tests.
2017-11-29 Tom Tromey <tom@tromey.com>
* gdb.base/relocate.exp: Update invalid argument test.

View File

@@ -32,6 +32,7 @@ if ![runto_main] then {
return 0
}
gdb_test_no_output "nosharedlibrary"
gdb_py_test_silent_cmd "py sl = gdb.rbreak(\"\",minsyms=False)" \
"get all function breakpoints" 0
gdb_test "py print(len(sl))" "11" \