When the application is executed using gdbserver, the export tag of the bundle
is deleted unintentionally. To pass arguments properly, the launchpad encloses
the string with a ''.
Change-Id: Ide6a9624b7cf3d9fdb3ab3441a49a47368aae3bd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
if (inst.ShouldAttach())
return argv;
+ bool debug_mode = !argv.empty() ? true : false;
auto launcher_argv = GetLauncherArgv(app_type);
if (!launcher_argv.empty())
argv.insert(argv.end(), launcher_argv.begin(), launcher_argv.end());
auto exported_argv = b.Export();
exported_argv[LoaderArg::Path] = app_path;
+ if (debug_mode &&
+ exported_argv.size() > static_cast<size_t>(LoaderArg::Type))
+ exported_argv[LoaderArg::Type] = "'" + exported_argv[LoaderArg::Type] + "'";
+
if (!exported_argv.empty())
argv.insert(argv.end(), exported_argv.begin(), exported_argv.end());