aboutsummaryrefslogtreecommitdiff
path: root/install-sh
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-02-04 17:30:05 +0100
committerTom de Vries <tdevries@suse.de>2020-02-04 17:30:05 +0100
commitf90ac7c2bbd56492f566dbeff2e464a999d03fb8 (patch)
treee8ec89f68474b3de22e61caca372e71e93511e11 /install-sh
parent24872cb30211b650a9360edd2476a6a1dd033cbb (diff)
downloadgdb-f90ac7c2bbd56492f566dbeff2e464a999d03fb8.zip
gdb-f90ac7c2bbd56492f566dbeff2e464a999d03fb8.tar.gz
gdb-f90ac7c2bbd56492f566dbeff2e464a999d03fb8.tar.bz2
[gdb/testsuite] Make inferior_exited_re match a single line
The current inferior_exited_re regexp contains a '.*': ... set inferior_exited_re "(?:\\\[Inferior \[0-9\]+ \\(.*\\) exited)" ... This means that while matching a single line: ... $ tclsh % set re "(?:\\\[Inferior \[0-9\]+ \\(.*\\) exited)" (?:\[Inferior [0-9]+ \(.*\) exited) % set line "\[Inferior 1 (process 33) exited\]\n" [Inferior 1 (process 33) exited] % regexp $re $line 1 ... it also matches more than one line: ... $ tclsh % set re "(?:\\\[Inferior \[0-9\]+ \\(.*\\) exited)" (?:\[Inferior [0-9]+ \(.*\) exited) % set line "\[Inferior 1 (process 33) exited\]\n\[Inferior 2 (process 44) exited\]\n" [Inferior 1 (process 33) exited] [Inferior 2 (process 44) exited] % regexp $re $line 1 ... Fix this by using "\[^\n\r\]*" instead of ".*". Build and reg-tested on x86_64-linux. gdb/testsuite/ChangeLog: 2020-02-04 Tom de Vries <tdevries@suse.de> * lib/gdb.exp (inferior_exited_re): Use "\[^\n\r\]*" instead of ".*". Change-Id: Id7b1dcecd8c7fda3d1ab34b4fa1364d301748333
Diffstat (limited to 'install-sh')
0 files changed, 0 insertions, 0 deletions