Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* target-delegates.c needs some TLC [was Re: [OB PATCH] target.h (to_traceframe_info): Fix TARGET_DEFAULT_RETURN]
@ 2014-03-06  5:20 Doug Evans
  2014-03-07 18:33 ` Pedro Alves
  2014-03-10  2:47 ` Yao Qi
  0 siblings, 2 replies; 7+ messages in thread
From: Doug Evans @ 2014-03-06  5:20 UTC (permalink / raw)
  To: Yao Qi, Tom Tromey; +Cc: Hui Zhu, gdb-patches ml

On Mon, Mar 3, 2014 at 5:36 PM, Yao Qi <yao@codesourcery.com> wrote:
> On 03/04/2014 09:18 AM, Hui Zhu wrote:
>> I cannot understand about this OB is not right.  I have 2 questions to you:
>> 1. Before my patch, does target-delegates.c that generated by make-target-delegates is same with current target-delegates.c?
>
> No, as I said, I forgot to re-generate target-delegates.c.

Hmmm....

I don't even see target-delegates.c in Makefile.in.  That feels like a
bug. [Could be blind of course. :-)]
I realize there's a comment in target-delegates.c that says how to
regenerate it, but these kind of things are part of what makefiles are
for.

While I realize we don't want to require perl for building gdb (and I
for one would never advocate it), I wonder if we can do at least a bit
better.
I'm not sure I'd want to require perl for --enable-maintainer-mode
(which is a common trigger for enabling in makefiles the appropriate
rules to auto-regenerate checked-in machine-generated files), but it's
one thought.  Failing using --enable-maintainer-mode for this I think
it's a requirement to add a different --enable-foo option to turn on
the necessary makefile rules to regenerate target-delegates.c at build
time as needed.

Another thought would be to at least have makefile issue a warning if
target-delegates.c is out of date, perhaps predicated on
--enable-maintainer-mode, or some other configure option, since doing
so by default is problematic otherwise.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-21 16:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-06  5:20 target-delegates.c needs some TLC [was Re: [OB PATCH] target.h (to_traceframe_info): Fix TARGET_DEFAULT_RETURN] Doug Evans
2014-03-07 18:33 ` Pedro Alves
2014-03-09 23:16   ` Doug Evans
2014-03-21 16:25     ` Pedro Alves
2014-03-10  2:47 ` Yao Qi
2014-03-10  2:54   ` Hui Zhu
2014-03-10  5:34   ` Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox