Skip to content

Commit 2738d07

Browse files
committed
More API changes
1 parent 3e27125 commit 2738d07

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

trepan/lib/breakpoint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ def bpnumbers(self):
217217
return ["%d" % bp.number for bp in self.bpbynumber if bp is not None]
218218

219219
def get_breakpoint(self, i) -> tuple:
220-
print("XXX3", i)
221220
if isinstance(i, str):
222221
try:
223222
i = int(i)

trepan/processor/cmdbreak.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright (C) 2009-2010, 2013, 2015-2018, 2020, 2022, 2024 Rocky Bernstein
3+
# Copyright (C) 2009-2010, 2013, 2015-2018, 2020, 2022, 2024-2026 Rocky Bernstein
44
# This program is free software: you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by
66
# the Free Software Foundation, either version 3 of the License, or
@@ -71,7 +71,7 @@ def set_break(
7171

7272
else:
7373
assert offset is not None
74-
line_number = code_line_info(filename, offset)
74+
line_info = code_line_info(filename, offset)
7575
if line_number is None:
7676
part1 = f"File {cmd_obj.core.filename(filename)}"
7777
msg = wrapped_lines(
@@ -81,6 +81,8 @@ def set_break(
8181
)
8282
cmd_obj.errmsg(msg)
8383
return False
84+
elif line_number != 0:
85+
assert False, "Need to fix up offset determination"
8486

8587
pass
8688
bp = cmd_obj.core.bpmgr.add_breakpoint(

0 commit comments

Comments
 (0)