Skip to content

Commit 179306d

Browse files
committed
gdb: find_line 1 based instead of 0
1 parent 7c707f8 commit 179306d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gdb/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def find_line(self, lineid):
4646
with open(self.source_path, 'r') as f:
4747
for i, line in enumerate(f):
4848
if line.rstrip().endswith(lineend):
49-
return i
49+
return i + 1
5050
return -1
5151

5252
def sendline(self, line):

0 commit comments

Comments
 (0)