]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Fix regexp in py-rbreak.exp
authorTom de Vries <tdevries@suse.de>
Fri, 3 Aug 2018 17:15:30 +0000 (19:15 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 4 Aug 2018 09:40:18 +0000 (11:40 +0200)
commit3fbbcf473a59df74a0b5d9ee343169f778fbd054
tree5c1392ea9e53877b9e5a42f5a3e66d08928e453d
parent5e7f20ca9a7abc3fa8e053643eaa422dc9fbf3a4
[gdb/testsuite] Fix regexp in py-rbreak.exp

This fails for me on openSUSE leap 15.0:
...
FAIL: gdb.python/py-rbreak.exp: check number of returned breakpoints is 11
...

The rbreak "" command expects 11 breaks, but I see two extra for
__libc_csu_fini and __libc_csu_init:
...
Breakpoint 13 at 0x4005b0: file elf-init.c, line 106.^M
Breakpoint 14 at 0x400540: file elf-init.c, line 68.^M
...

This patch fixes the failing test by excluding functions starting with an
underscore.

Tested on x86_64-linux.

2018-08-04  Tom de Vries  <tdevries@suse.de>

* gdb.python/py-rbreak.exp: Fix rbreak regexp.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-rbreak.exp