MCPcopy Create free account
hub / github.com/Vector35/debugger / GetPathBaseName

Method GetPathBaseName

core/debugadapter.cpp:61–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60
61std::string DebugModule::GetPathBaseName(const std::string& path)
62{
63#ifdef WIN32
64 // TODO: someone please write it on Windows!
65 char baseName[MAX_PATH];
66 _splitpath(path.c_str(), NULL, NULL, baseName, NULL);
67 return std::string(baseName);
68#else
69 return basename(strdup(path.c_str()));
70#endif
71}
72
73
74bool DebugModule::IsSameBaseModule(const DebugModule& other) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected