Commit 80a742df authored by sdottaka's avatar sdottaka

mrdb: fix that break command cannot handle Windows paths

Before fix:
```
$ mrdb c:\tmp\b.rb
(c:\tmp\b.rb:1) break c:\tmp\b.rb:3
Class name 'c' is invalid.
```

After fix:
```
$ mrdb c:\tmp\b.rb
(c:\tmp\b.rb:1) break c:\tmp\b.rb:3
Breakpoint 1: file c:\tmp\b.rb, line 3.
```
parent 10e9a1a1
......@@ -256,7 +256,7 @@ parse_breakcommand(mrdb_state *mrdb, const char **file, uint32_t *line, char **c
}
args = mrdb->words[1];
if((body = strchr(args, ':')) == NULL) {
if((body = strrchr(args, ':')) == NULL) {
body = args;
type = check_bptype(body);
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment