Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: hjl.tools@gmail.com
Cc: gdb-patches@sourceware.org
Subject: Re: PATCH: Add x86 xml files
Date: Sun, 07 Feb 2010 22:43:00 -0000	[thread overview]
Message-ID: <201002072243.o17MhS8p010756@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <6dc9ffc81002071350t74e2b3abm39b798ce26192254@mail.gmail.com> 	(hjl.tools@gmail.com)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1410 bytes --]

> Date: Sun, 7 Feb 2010 13:50:32 -0800
> From: "H.J. Lu" <hjl.tools@gmail.com>
>
> >> +I386-XMLTOC = $(addsuffix .xml, $(filter i386/%, $(WHICH)))
> >> +I386-CFILES = $(patsubst %.xml,%.c,$(I386-XMLTOC))
> >
> > Why are you introducing these variables?
> 
> They are used by the new "i386-cfiles" target.
> 
> >>  all: $(OUTPUTS)
> >>
> >>  $(outdir)/%.dat: %.xml number-regs.xsl sort-regs.xsl gdbserver-regs.xsl
> >> @@ -71,6 +80,8 @@ $(outdir)/%.dat: %.xml number-regs.xsl sort-regs.xsl gdbserver-regs.xsl
> >>       sh ../../move-if-change $(outdir)/$*.tmp $(outdir)/$*.dat
> >>
> >>  cfiles: $(CFILES)
> >> +i386-cfiles: $(I386-CFILES)
> >
> > And this target?
> 
> You need a working gdb for your target with XML support to generate
> those C files for gdbserver. That is why XMLTOC is empty and GDB
> is false. To generate those C files, you have to do
> 
> # make cfiles GDB="your new GDB" XMLTOC="your XML files"
> 
> I added this target so that I can do
> 
> # make i386-cfiles GDB="my new GDB"
> 
> to generate i386 C files for gdbserver without specifying XMLTOC at
> command line. It is very convenience for maintenance.

Well, given that none of the other architectures have such a target, I
think you shouldn't add this only for i386.

If you really think the convenience is important, it has to be added
for the other architectures as well.  But that's better done in a
seperarate patch.


  reply	other threads:[~2010-02-07 22:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-05  0:01 H.J. Lu
2010-02-05  0:01 ` H.J. Lu
2010-02-07 21:29   ` Mark Kettenis
2010-02-07 21:50     ` H.J. Lu
2010-02-07 22:43       ` Mark Kettenis [this message]
2010-02-07 21:50   ` Daniel Jacobowitz
2010-02-07 21:55     ` H.J. Lu
2010-02-07 22:23       ` Daniel Jacobowitz
2010-02-07 22:36     ` Mark Kettenis

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=201002072243.o17MhS8p010756@glazunov.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=gdb-patches@sourceware.org \
    --cc=hjl.tools@gmail.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