From 7689c8fe779e388f85d3122e77d990414f9097f3 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 9 Jun 2008 23:19:04 +0200 Subject: [PATCH] fixing breakpoint bug - sometimes its possible that the "at xxx:dd" line is on the next line --- GdbTerminal.py | 35 +++++++++++++++++++++++------------ pygdb.vim | 2 -- 2 files changed, 23 insertions(+), 14 deletions(-) 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 -- 2.30.2