public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* RE: .gdbtkinit help
@ 2010-10-17 14:22 Timothy Jump
  0 siblings, 0 replies; 3+ messages in thread
From: Timothy Jump @ 2010-10-17 14:22 UTC (permalink / raw)
  To: insight

I have the .gdbtkinit file identified and generally keeping the settings
I've applied. As I am trying to generate each user login as the project
directory I would like to get Insight one step further in terms of set-up.

Right now when I start Insight and go to File/Target Settings the Target is
empty. When I pull down the Target drop down list there are four choices
(one of them mine).

How do I get Insight to start with mine as the default?

Or, remove all the others so mine is the only one for this project, ergo is
the one Insight starts with?

I appreciate any assistance,
Timothy Jump



-----Original Message-----
From: Timothy Jump [mailto:t1jump@comcast.net] 
Sent: Saturday, October 16, 2010 12:00 PM
To: 'insight@sourceware.org'
Subject: .gdbtkinit help

I've been reading about setting up Insight and I'm confused. I've seen
reference to two locations for the .gdbtkinit file but I can only find one.

I'm using Ubuntu 9.10 and I only find the .gdbtkinit flie in the Home
directory. I thought there was to be a copy both in the directory where I
executed Insight (project directory) and in the Home directory but I only
ever see it in the Home directory.

So, maybe a better question to get where I think I'm going: I was looking to
have Insight store the Target Settings (File/Target Settings.) info so I
don't need to set this with each session. I was trying to create either
separate project directories within the same Home Directory, or set
different Users (ergo different Home directories) for each different project
so I could have Insight set up specifically for each target/project and not
need to go through the set-up each time. I thought the way to do this was
generate the .gdbtkinit in the project directory and then copy this into the
Home directory but I only find the .gdbtkinit in the Home directory and it
does not save the Target Settings.

So, any help here would be appreciated.

Thanks,
Timothy Jump



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: .gdbtkinit help
  2010-10-16 17:01 Timothy Jump
@ 2010-10-16 17:32 ` Keith Seitz
  0 siblings, 0 replies; 3+ messages in thread
From: Keith Seitz @ 2010-10-16 17:32 UTC (permalink / raw)
  To: t1jump; +Cc: insight

On 10/16/2010 09:59 AM, Timothy Jump wrote:

> I'm using Ubuntu 9.10 and I only find the .gdbtkinit flie in the Home
> directory. I thought there was to be a copy both in the directory where I
> executed Insight (project directory) and in the Home directory but I only
> ever see it in the Home directory.

When you start up Insight, open a console window and type:

"tk set ::pref_init_filename"

This will tell you where Insight thinks your init file is. From reading 
library/prefs.tcl, I see that it will look for .gdbtkinit (or gdbtk.ini 
on Windows) in $CWD (i.e., the directory from which you launched 
Insight). Failing that, it will fall back to $HOME.

Try moving .gdbtkinit from $HOME to $CWD and see if that works.

> I was trying to create either
> separate project directories within the same Home Directory, or set
> different Users (ergo different Home directories) for each different project
> so I could have Insight set up specifically for each target/project and not
> need to go through the set-up each time.

You should be able to do this exactly as you proposed. I have tried this 
here ("mv ~/.gdbtkinit ."), and that works. I have also not had any 
problems saving my target preferences. So if you have more information 
on that, I would appreciate more details.

Insight keys the session off the name of the executable you are 
debugging. So if you debug several different executables, it will 
(should) save session information (breakpoints, arguments, for example). 
Of course, if all your executables are named the same (but exist for 
different architectures), you might be out of luck. I don't think we use 
architecture as a key.

If you can give me some more information about your setup, I might be 
able to offer other suggestions or even create some patches to help you. 
It would not surprise me too much if non-native preferences has 
bitrotted over the years. I only do native development nowadays.

Keith

^ permalink raw reply	[flat|nested] 3+ messages in thread

* .gdbtkinit help
@ 2010-10-16 17:01 Timothy Jump
  2010-10-16 17:32 ` Keith Seitz
  0 siblings, 1 reply; 3+ messages in thread
From: Timothy Jump @ 2010-10-16 17:01 UTC (permalink / raw)
  To: insight

I've been reading about setting up Insight and I'm confused. I've seen
reference to two locations for the .gdbtkinit file but I can only find one.

I'm using Ubuntu 9.10 and I only find the .gdbtkinit flie in the Home
directory. I thought there was to be a copy both in the directory where I
executed Insight (project directory) and in the Home directory but I only
ever see it in the Home directory.

So, maybe a better question to get where I think I'm going: I was looking to
have Insight store the Target Settings (File/Target Settings.) info so I
don't need to set this with each session. I was trying to create either
separate project directories within the same Home Directory, or set
different Users (ergo different Home directories) for each different project
so I could have Insight set up specifically for each target/project and not
need to go through the set-up each time. I thought the way to do this was
generate the .gdbtkinit in the project directory and then copy this into the
Home directory but I only find the .gdbtkinit in the Home directory and it
does not save the Target Settings.

So, any help here would be appreciated.

Thanks,
Timothy Jump



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-17 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-17 14:22 .gdbtkinit help Timothy Jump
  -- strict thread matches above, loose matches on Subject: below --
2010-10-16 17:01 Timothy Jump
2010-10-16 17:32 ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).