Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb@sources.redhat.com
Subject: Re: Registering pretty-printers
Date: Mon, 15 Jun 2009 20:23:00 -0000	[thread overview]
Message-ID: <m3vdmx457c.fsf@fleche.redhat.com> (raw)
In-Reply-To: <200906122143.49143.vladimir@codesourcery.com> (Vladimir Prus's message of "Fri\, 12 Jun 2009 21\:43\:48 +0400")

>>>>> "Vladimir" == Vladimir Prus <vladimir@codesourcery.com> writes:

Vladimir> There are two important points I propose:

Vladimir> 1. Having a file at top-level, as opposed in some subdir which name
Vladimir> differs.
Vladimir> 2. Having a file with fixed name. 

Vladimir> I am probably wrong, but neither of this is true with the current
Vladimir> recommended approach.

Yeah.  But isn't this just a matter of documenting "this is how we
recommend you distribute stand-alone printers"?  This whole structure
can only really work for the "standalone package" case anyway, because
in the distro case there is no identifiable top-level; the hook file
and the printers are probably stored in entirely different places.

For #1, if you don't care what the file is called, then you can often
just use the existing hook file.  Just copy it to the right place
before making the tar.

Tom> It seems to me that you could make a .tar holding all the files from
Tom> libstdc++/python, then have your IDE unpack these somewhere, update
Tom> sys.path, and execfile the file(s) in the topmost directory.  Assuming
Tom> these files follow the "None convention", it will work fine.

Vladimir> I did not notice any files on top-level. Have I missed something?

Nope, but you are probably looking at the libstdc++ source tree.  The
hook file is created by configure; libstdc++ requires an abnormally
weird hook file due to relocatability requirements of gcc.

If you were going to actually package this up for independent release,
you would make the top-level file "somehow", maybe by running sed on
hook.in.

Tom


  reply	other threads:[~2009-06-15 20:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-07 23:11 Vladimir Prus
2009-06-10 19:25 ` Tom Tromey
2009-06-11  8:29   ` Vladimir Prus
2009-06-11 17:14     ` Paul Pluzhnikov
2009-06-12  0:52       ` Daniel Jacobowitz
2009-06-12  7:20         ` Vladimir Prus
2009-06-12 16:43         ` Doug Evans
2009-06-12 16:51           ` Daniel Jacobowitz
2009-06-12 17:12             ` Doug Evans
2009-06-12 17:06         ` Tom Tromey
2009-06-12 17:36     ` Tom Tromey
2009-06-12 17:43       ` Vladimir Prus
2009-06-15 20:23         ` Tom Tromey [this message]
2009-06-26 20:37           ` Tom Tromey
2009-06-27 10:16             ` Vladimir Prus

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=m3vdmx457c.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=vladimir@codesourcery.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