This is the mail archive of the gdb@sources.redhat.com 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: target-dependent .gdbinit


Andrew Cagney <ac131313@redhat.com>:

how about something like:
	(gdb) eval source ~/.gdbinit-$target

well, there's still the standardization point.  if gdb did
this automatically, then people could rely on that behavior
in arbitrary installations.  otherwise, people will
synthesize this behavior themselves in different ways.  one
installation might have .gdb.$target, another
.gdbinit.$target, or .vxgdbinit, etc.
It should be kept simple. A GDB install should only read `.gdbinit' (the vx hacks, I think, should just go). A user is then free to customize their .gdbinit to do things like read .gdbinit-$target, or even conditionally interpret sections of the init file.

If GDB's scripting language isn't powerful enough to handle this then the scripting language needs to be fixed.

Andrew



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