# HG changeset patch # User Lachlan Andrew # Date 1460247738 -36000 # Node ID 37a44d8af461fbc66b89333ae46390dbeed23031 # Parent 225d88a97104606c0690a6ae4f46c04a77685b2f Allow dbstop @class/method with forward slash on Windows (bug #47575). * debug.cc (get_user_code): Explicitly translate '/' to file_sep_char for '@' classes. diff -r 225d88a97104 -r 37a44d8af461 libinterp/corefcn/debug.cc --- a/libinterp/corefcn/debug.cc Sat Apr 16 19:15:37 2016 +0100 +++ b/libinterp/corefcn/debug.cc Sun Apr 10 10:22:18 2016 +1000 @@ -185,6 +185,14 @@ { std::string name = fname; + if (file_ops::dir_sep_char () != '/' && name[0] == '@') + { + int len = name.length () - 1; // -1: can't have trailing '/' + for (int i = 2; i < len; i++) // 2: can't have @/method + if (name[i] == '/') + name[i] = file_ops::dir_sep_char (); + } + size_t name_len = name.length (); if (! name.empty () && name_len > 2 && name.substr (name_len-2) == ".m")