Permalink
Browse files

Merge pull request #22 from pfultz2/master

Fixed some bugs
  • Loading branch information...
2 parents 94d96d1 + e2cb850 commit 1288eef706c505f7d3bc548985216b694167265f @quarnster committed May 1, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 sublimegdb.py
View
@@ -882,8 +882,10 @@ def insert(self):
if "bkpt" not in res:
return
bp = res["bkpt"]
- self.resolved_filename = bp["fullname"] if "fullname" in bp else bp["file"]
- self.resolved_line = int(bp["line"])
+ if "fullname" in bp: self.resolved_filename = bp["fullname"]
+ elif "file" in bp: self.resolved_filename = bp["file"]
+ else: self.resolved_filename = bp["original-location"].split(":", 1)[0]
+ self.resolved_line = int(bp["line"] if "line" in bp else bp["original-location"].split(":", 1)[1])
self.number = int(bp["number"])
def add(self):
@@ -1282,7 +1284,7 @@ def run(self):
gdb_breakpoint_view.sync_breakpoints()
gdb_run_status = "running"
- run_cmd(get_setting("exec_cmd"), "-exec-run", True)
+ run_cmd(get_setting("exec_cmd"), True)
show_input()
else:

0 comments on commit 1288eef

Please sign in to comment.