This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: target-dependent .gdbinit
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Felix Lee <felix dot 1 at canids dot net>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 02 Jan 2003 15:08:09 +0000
- Subject: Re: target-dependent .gdbinit
- References: <200212281858.gBSIwJJ07676@paper-wolf-solo.tigerfood.org>
So I'm thinking I want gdb to read ~/.gdbinit-$target after
~/.gdbinit. Does that seem like a sensible thing to do?
I'm wary of making target a special case. My feeling is I'd
want a single .gdbinit file that has some form of #if for
target or host or gdb version or other conditions. But I'm
not sure that's all that useful. The added complexity
doesn't seem to be worth it.
But target is already a special case sometimes, because
there's .vxgdbinit and such.
Hmm, something else to delete ....
Also, behavior like this could be easily synthesized with a
front-end script that ran gdb with the right -x options.
The rationale for putting it into gdb: it's standardization.
how about something like:
(gdb) eval source ~/.gdbinit-$target
?
Andrew