Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Felix Lee <felix.1@canids.net>
Cc: gdb@sources.redhat.com
Subject: Re: target-dependent .gdbinit
Date: Thu, 02 Jan 2003 19:13:00 -0000	[thread overview]
Message-ID: <3E148F45.5020502@redhat.com> (raw)
In-Reply-To: <200301021851.h02IpaZ24996@paper-wolf-solo.tigerfood.org>

> 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



  reply	other threads:[~2003-01-02 19:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-28 10:59 Felix Lee
2003-01-02 15:08 ` Andrew Cagney
2003-01-02 18:53   ` Felix Lee
2003-01-02 19:13     ` Andrew Cagney [this message]
2003-01-02 20:04       ` Felix Lee
2003-01-02 20:17         ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E148F45.5020502@redhat.com \
    --to=ac131313@redhat.com \
    --cc=felix.1@canids.net \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox