This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [PATCH] -nx-except-gdbtkinit option


> Date: Thu, 17 Nov 2005 16:31:05 +0000
> From: Andrew STUBBS <andrew.stubbs@st.com>
> Cc: gdb-patches@sources.redhat.com
> 
> > Second, please tell more about the situations when this option could
> > be useful.
> 
> The specific case I use it for is in a wrapper utility which calls gdb 
> as follows (roughly):
> 
>    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?

> 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.

> +@item -nx-except-gdbtkinit
> +@kindex -nx-except-gdbtkinit
> +The same as @samp{-nx} with the difference that it does not prevent
> +Insight from loading the settings file @code{.gdbtkinit}.  If you are not
                                          ^^^^^
`.gdbtkinit' is a file name, so it should have the @file markup, not
@code.

Other than that, the documentation patch is approved, conditioned on
the code patch approval.  Thanks.


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