From: "Timothy Jump" <t1jump@comcast.net>
To: <insight@sourceware.org>
Subject: FW: .gdbtkinit help
Date: Sat, 16 Oct 2010 22:54:00 -0000 [thread overview]
Message-ID: <000001cb6d84$d7e5bfa0$87b13ee0$@net> (raw)
To clarify, start Insight and go to View/Console and type "tk set
::pref_init_filename".
I did this and got
Error: can't read "::pref_init_filename": no such variable
I did this from the project directory and not the Home directory.
What am I missing?
Thanks,
T. Jump
-----Original Message-----
From: Keith Seitz [mailto:keiths@redhat.com]
Sent: Saturday, October 16, 2010 12:31 PM
To: t1jump@comcast.net
Cc: insight@sourceware.org
Subject: Re: .gdbtkinit help
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
reply other threads:[~2010-10-16 22:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000001cb6d84$d7e5bfa0$87b13ee0$@net' \
--to=t1jump@comcast.net \
--cc=insight@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).