public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: Andrew STUBBS <andrew.stubbs@st.com>
Cc: insight@sources.redhat.com
Subject: Re: -nx and .gdbtkinit
Date: Fri, 18 Nov 2005 22:44:00 -0000	[thread overview]
Message-ID: <437E5954.60104@redhat.com> (raw)
In-Reply-To: <437DC631.1060609@st.com>

Andrew STUBBS wrote:

> The GDB -nx option currently causes Insight to ignore the .gdbtkinit (or 
> gdbtk.ini) file.

Correct.

> This is a problem for me because I need to disable .gdbinit, but wish to 
> continue using .gdbtkinit.

Eeew... Ummm... Hmmm...

> Why is it done this way? I am told .inputrc is always read, no matter what.

Because insight is gdb. :-)

> Would it be acceptable to totally remove this 'feature'? Or at least 
> unhook it from -nx somehow?

Yeah, I think you should be able to do something for insight. The 
problem is adding new command-line options to gdb for insight will be 
problematic (to be polite), since gdb still greedily hoards all options 
processing. [I once started building a patch to separate this out...]

> I had posted an alternative solution (-nx-except-gdbtkinit) to 
> gdb-patches here 
> http://sources.redhat.com/ml/gdb-patches/2005-11/msg00233.html, but that 
> suggestion has not been met with much approval.
> 
> Any other suggestions?

There are three options that come to me immediately. First is what 
you've proposed (new startup option to gdb), which probably isn't going 
to get accepted.

Next is a new environment variable (GDBTK_FORCE_READ_PREFERENCES or 
something or other). Add a check to prefs_read in prefs.tcl.

Finally, just disable the check for ignoring preferences in the same 
procedure (prefs_read in prefs.tcl).

I wish I could be more helpful. Sorry.

Keith

  reply	other threads:[~2005-11-18 22:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-18 12:19 Andrew STUBBS
2005-11-18 22:44 ` Keith Seitz [this message]
2005-11-18 23:36   ` Bruce Korb
2005-11-19  0:14     ` Bruce Korb
2005-11-19 16:01     ` Keith Seitz
2005-11-21 19:35     ` Andrew STUBBS
2005-11-24 18:54       ` Andrew STUBBS
2005-11-21 11:56   ` Andrew STUBBS
2005-11-28 18:50     ` Keith Seitz
2005-11-29 11:12   ` [PATCH] INSIGHT_FORCE_READ_PREFERENCES Andrew STUBBS
2005-12-04  0:01     ` Keith Seitz
2005-12-04  0:53       ` Andrew STUBBS

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=437E5954.60104@redhat.com \
    --to=keiths@redhat.com \
    --cc=andrew.stubbs@st.com \
    --cc=insight@sources.redhat.com \
    /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).