This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] -nx-except-gdbtkinit option
On Thu, Nov 17, 2005 at 09:33:17PM +0200, Eli Zaretskii wrote:
> > gdb -nx-except-gdbtkinit -d scriptdir -x globalscript \
> > -x ~/.gdbinit -x ./.gdbinit .....
> >
> > The purpose is (among other things) to set up transparently (to the
> > user) a selection of user-defined commands (for connecting and
> > configuring target boards) which are available to users in the .gdbinit
> > files.
>
> Sorry, I'm still confused. Doesn't GDB normally read ~/.gdbinit and
> ./.gdbinit? If so, why do you need to use -nx and then load these
> init files manually?
In order for the global script to be loaded before .gdbinit, I think.
> > If -nx is used it has undesirable side effects when using Insight.
>
> In case it wasn't clear, it's those ``undesirable side effects'' are
> what I was asking to describe in some detail. I don't understand what
> kind of problems it causes. Perhaps those are misfeatures or bugs we
> need to fix, instead of introducing a new option.
It sounds like there's no GDB command to process .gdbtkinit, which is a
TCL file rather than a GDB CLI script file. Andrew, is that right? If
so, have you considered adding such a command to Insight, instead?
--
Daniel Jacobowitz
CodeSourcery, LLC