X-Git-Url: https://git.sthu.org/?p=pygdb.git;a=blobdiff_plain;f=GdbTerminal.py;h=58c3bbe13cdcad7b05ca023d6d172f4a38f938d5;hp=6218d64780e18e7b2e0f515e3ecf7d90bd34ac3a;hb=HEAD;hpb=32cf025183d25d3ab1f8e398ef391f6b3616d980 diff --git a/GdbTerminal.py b/GdbTerminal.py index 6218d64..58c3bbe 100644 --- a/GdbTerminal.py +++ b/GdbTerminal.py @@ -95,39 +95,47 @@ class GdbTerminal (DbgTerminal.DbgTerminal): bplines = self.__getAnswerFromCmd("info breakpoints\n") rxbp = re.compile("^\d+\s+breakpoint") - rxpos = re.compile("^.* at \S+:\d+$") - rxcond = re.compile("^\tstop only if") + rxpos = re.compile("at \S+:\d+$") + rxcond = re.compile("^\s+stop only if") bpnts = [] - i = 1 - #Parse the resulting lines - while i