diff options
-rw-r--r-- | linden/indra/llcommon/llprocesslauncher.h | 3 | ||||
-rwxr-xr-x | linden/indra/llplugin/llpluginprocessparent.cpp | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/linden/indra/llcommon/llprocesslauncher.h b/linden/indra/llcommon/llprocesslauncher.h index 036732f..9cdb0f6 100644 --- a/linden/indra/llcommon/llprocesslauncher.h +++ b/linden/indra/llcommon/llprocesslauncher.h | |||
@@ -80,6 +80,9 @@ private: | |||
80 | HANDLE mProcessHandle; | 80 | HANDLE mProcessHandle; |
81 | #else | 81 | #else |
82 | pid_t mProcessID; | 82 | pid_t mProcessID; |
83 | |||
84 | public: | ||
85 | pid_t getProcessID() const { return mProcessID; } | ||
83 | #endif | 86 | #endif |
84 | }; | 87 | }; |
85 | 88 | ||
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 | ||