summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-12-20 10:39:58 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-12-20 10:39:58 +0900
commite618438882606c8318bcc4eae2c47ce8ab82d6aa (patch)
tree7e22ede73e12e98d9a2e6bd0a91e95a3428a558a
parent10e9a1a167ea9a3359250c7040c2f61530946d68 (diff)
parent80a742df511d4dd9c0c7c28e626c18da9f3c2e39 (diff)
downloadmruby-e618438882606c8318bcc4eae2c47ce8ab82d6aa.tar.gz
mruby-e618438882606c8318bcc4eae2c47ce8ab82d6aa.zip
Merge pull request #2681 from sdottaka/mrdb-break-windows
mrdb: fix that break command cannot handle Windows paths
-rwxr-xr-xmrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c2
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 {