diff options
| author | sdottaka <[email protected]> | 2014-12-20 08:32:28 +0900 |
|---|---|---|
| committer | sdottaka <[email protected]> | 2014-12-20 08:32:28 +0900 |
| commit | 80a742df511d4dd9c0c7c28e626c18da9f3c2e39 (patch) | |
| tree | 7e22ede73e12e98d9a2e6bd0a91e95a3428a558a /mrbgems/mruby-bin-debugger/tools | |
| parent | 10e9a1a167ea9a3359250c7040c2f61530946d68 (diff) | |
| download | mruby-80a742df511d4dd9c0c7c28e626c18da9f3c2e39.tar.gz mruby-80a742df511d4dd9c0c7c28e626c18da9f3c2e39.zip | |
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.
```
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools')
| -rwxr-xr-x | mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c index 9759badfe..d4ec3d5f8 100755 --- a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c @@ -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 { |
