From: Stefan Huber Date: Mon, 9 Jun 2008 21:19:04 +0000 (+0200) Subject: fixing breakpoint bug X-Git-Tag: v0.99.0~21 X-Git-Url: https://git.sthu.org/?p=pygdb.git;a=commitdiff_plain;h=7689c8fe779e388f85d3122e77d990414f9097f3 fixing breakpoint bug - sometimes its possible that the "at xxx:dd" line is on the next line --- diff --git a/GdbTerminal.py b/GdbTerminal.py index 304e39a..7341cae 100755 --- a/GdbTerminal.py +++ b/GdbTerminal.py @@ -90,8 +90,9 @@ class GdbTerminal (DbgTerminal.DbgTerminal): endhis, response = self.waitForRx(rx, starthis) - rxbp1 = re.compile("^\d+\s+breakpoint") - rxbp2 = re.compile("^\tstop only if") + rxbp = re.compile("^\d+\s+breakpoint") + rxpos = re.compile("^.* at \S+:\d+$") + rxcond = re.compile("^\tstop only if") bpnts = [] bplines = self.history[starthis+1:endhis] @@ -101,17 +102,23 @@ class GdbTerminal (DbgTerminal.DbgTerminal): while i> -highlight ExecutionLine term=bold ctermbg=DarkGreen ctermfg=White highlight BreakPoint term=inverse ctermbg=DarkCyan ctermfg=Black -sign define ExecutionLine text==> texthl=ExecutionLine linehl=ExecutionLine sign define BreakPoint text=! texthl=BreakPoint linehl=BreakPoint sign define CondBreakPoint text=? texthl=BreakPoint linehl=BreakPoint