This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
target-dependent .gdbinit
- From: Felix Lee <felix dot 1 at canids dot net>
- To: gdb at sources dot redhat dot com
- Date: Sat, 28 Dec 2002 10:58:19 -0800
- Subject: target-dependent .gdbinit
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.
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.
--