From a4092fcbfb39b4d32a8e152a110d20132779d538 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 6 Jan 2017 20:14:12 +0000 Subject: Vendor import of lldb trunk r291274: https://llvm.org/svn/llvm-project/lldb/trunk@291274 --- packages/Python/lldbsuite/test/tools/lldb-mi/main.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'packages/Python/lldbsuite/test/tools/lldb-mi/main.cpp') diff --git a/packages/Python/lldbsuite/test/tools/lldb-mi/main.cpp b/packages/Python/lldbsuite/test/tools/lldb-mi/main.cpp index 6a2079f2ce74..0215b428925b 100644 --- a/packages/Python/lldbsuite/test/tools/lldb-mi/main.cpp +++ b/packages/Python/lldbsuite/test/tools/lldb-mi/main.cpp @@ -9,11 +9,25 @@ #include +#ifdef _WIN32 + #include + #define getcwd _getcwd // suppress "deprecation" warning +#else + #include +#endif + int main(int argc, char const *argv[]) { - int a = 10; + int a = 10; + + char buf[512]; + char *ans = getcwd(buf, sizeof(buf)); + if (ans) { + printf("cwd: %s\n", ans); + } printf("argc=%d\n", argc); // BP_printf + return 0; } -- cgit v1.2.3