This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: insight for multiple users


Jose Barros wrote:

However here too I end up with the same result - multiple user confusion !!

I admit it: when I first read this, I laughed. No way such a thing could happen. Impossible.


Then I tried it myself. Just ran two insight instances on the same host. Exit one of them, and they all exited!!

Then I remembered something from a long, long time ago (yes, in a galaxy far, far away): Insight has IPC support for something. I don't know what any more, but it does have some sort of IPC. So I dug a little...

You have two ways to procede:

1) [drastic] Edit src/gdb/gdbtk/library/prefs.tcl. Change the preference "gdb/ipc/enabled" to "0". That will change all instances to stop using IPC. In order for this to work, though, users must not have a .gdbtkinit. So either delete or modify .gdbtkinit, or do #2

2) Running insight, go to Preferences->Advanced->IPC and disable it.

In fact, I committed the attached patch. If someone is using this feature, then he can re-enable it using the preferences.

Keith

ChangeLog
2006-08-25  Keith Seitz  <keiths@redhat.com>

* library/prefs.tcl (pref_set_defaults): Disable IPC, gdb/ipc/enabled,
by default.
Index: library/prefs.tcl
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/prefs.tcl,v
retrieving revision 1.32
diff -u -p -r1.32 prefs.tcl
--- library/prefs.tcl	23 Dec 2005 18:26:50 -0000	1.32
+++ library/prefs.tcl	25 Aug 2006 15:54:56 -0000
@@ -440,7 +440,7 @@ proc pref_set_defaults {} {
   # IPC prefs
   # set prefs based on GDB version?
   #set vers [lindex [split [lindex [split [gdb_cmd "show version"]] end-1 ] \"] 1]
-  pref define gdb/ipc/enabled	1
+  pref define gdb/ipc/enabled		0
   pref define gdb/ipc/port		9909
   pref define gdb/ipc/stop_button	1
   pref define gdb/ipc/step_button	1

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]