aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llplugin
diff options
context:
space:
mode:
authorAleric Inglewood2010-10-21 00:53:01 +0200
committerAleric Inglewood2010-10-21 00:53:01 +0200
commitb65b0ec23184885f212a78aa69edd152bdbd4588 (patch)
tree33a9d673ddd1b69cd5ed9b18b67aa9c5e57a0159 /linden/indra/llplugin
parentLindenUserDir fixes. (diff)
downloadmeta-impy-b65b0ec23184885f212a78aa69edd152bdbd4588.zip
meta-impy-b65b0ec23184885f212a78aa69edd152bdbd4588.tar.gz
meta-impy-b65b0ec23184885f212a78aa69edd152bdbd4588.tar.bz2
meta-impy-b65b0ec23184885f212a78aa69edd152bdbd4588.tar.xz
Add support for PluginAttachDebuggerToPlugins for linux
Opens a terminal with a gdb session for newly started SLPlugin processes if PluginAttachDebuggerToPlugins is set to TRUE.
Diffstat (limited to 'linden/indra/llplugin')
-rwxr-xr-xlinden/indra/llplugin/llpluginprocessparent.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/linden/indra/llplugin/llpluginprocessparent.cpp b/linden/indra/llplugin/llpluginprocessparent.cpp
index 1bf34c5..8db6046 100755
--- a/linden/indra/llplugin/llpluginprocessparent.cpp
+++ b/linden/indra/llplugin/llpluginprocessparent.cpp
@@ -408,6 +408,17 @@ void LLPluginProcessParent::idle(void)
408 mDebugger.addArgument("end tell"); 408 mDebugger.addArgument("end tell");
409 mDebugger.launch(); 409 mDebugger.launch();
410 410
411 #elif LL_LINUX
412
413 std::stringstream cmd;
414
415 mDebugger.setExecutable("/usr/bin/gnome-terminal");
416 mDebugger.addArgument("--geometry=165x24-0+0");
417 mDebugger.addArgument("-e");
418 cmd << "/usr/bin/gdb -n /proc/" << mProcess.getProcessID() << "/exe " << mProcess.getProcessID();
419 mDebugger.addArgument(cmd.str());
420 mDebugger.launch();
421
411 #endif 422 #endif
412 } 423 }
413 424