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 15:08:00 -0000	[thread overview]
Message-ID: <3E1455D9.2010009@redhat.com> (raw)
In-Reply-To: <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



  reply	other threads:[~2003-01-02 15:08 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 [this message]
2003-01-02 18:53   ` Felix Lee
2003-01-02 19:13     ` Andrew Cagney
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=3E1455D9.2010009@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