Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed some bugs #22

Merged
merged 2 commits into from

2 participants

Paul Fultz II Fredrik Ehnbom
Paul Fultz II

No description provided.

Fredrik Ehnbom quarnster merged commit 1288eef into from
Fredrik Ehnbom
Owner

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 1, 2012
  1. Paul Fultz II

    Sometimes file and line is missing and the breakpoint needs to parse …

    pfultz2 authored
    …file and line from original-location
  2. Paul Fultz II
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 3 deletions.
  1. +5 −3 sublimegdb.py
8 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:
Something went wrong with that request. Please try again.