[Lldb-commits] [lldb] r183453 - <rdar://problem/14083928>
Enrico Granata
egranata at apple.com
Thu Jun 6 15:23:02 PDT 2013
Author: enrico
Date: Thu Jun 6 17:23:02 2013
New Revision: 183453
URL: http://llvm.org/viewvc/llvm-project?rev=183453&view=rev
Log:
<rdar://problem/14083928>
Making sure that if you invoke LLDB as lldb ./someBinary you can then launch the inferior with process launch —tty
Modified:
lldb/trunk/source/Host/macosx/Host.mm
Modified: lldb/trunk/source/Host/macosx/Host.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Host.mm?rev=183453&r1=183452&r2=183453&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Host.mm (original)
+++ lldb/trunk/source/Host/macosx/Host.mm Thu Jun 6 17:23:02 2013
@@ -522,6 +522,12 @@ LaunchInNewTerminalWithAppleScript (cons
const char *working_dir = launch_info.GetWorkingDirectory();
if (working_dir)
command.Printf(" --working-dir '%s'", working_dir);
+ else
+ {
+ char cwd[PATH_MAX];
+ if (getcwd(cwd, PATH_MAX))
+ command.Printf(" --working-dir '%s'", cwd);
+ }
if (launch_info.GetFlags().Test (eLaunchFlagDisableASLR))
command.PutCString(" --disable-aslr");
More information about the lldb-commits
mailing list