Re: [PATCH] Get make TAGS to work in gdb directory

Daniel Jacobowitz
2005-09-26T01:39:02Z

On Wed, Sep 21, 2005 at 10:27:18AM +1200, Nick Roberts wrote:
>
> make TAGS doesn't seem to work in the gdb directory for two reason:
>
> 1) minimon.h, symfile-mem.h, amdfbsd-nat.c, irix4-nat.c, m3-nat.c,
> mipsm3-nat.c, ns32k-tdep.c, symm-tdep.c and symm-nat.c have been removed.
>
> 2) It doesn't find mi-*.c tui-*.c because they are in different
> directories.
>
>
> It's been bust for quite a long time so either people don't use it much,
> they have a local patch or there's something wrong with my setup. Assuming
> its not the latter, I attach a patch.

It's the first option, I think. I know I don't use it.

> 2005-09-21 Nick Roberts <nickrob@snap.net.nz>
>
> * Makefile.in (HFILES_NO_SRCDIR): Remove minimon.h, symfile-mem.h,
> amdfbsd-nat.c, irix4-nat.c, m3-nat.c, mipsm3-nat.c, ns32k-tdep.c,
> symm-tdep.c and symm-nat.c.
> (TAGFILES_NO_SRCDIR): Add SUBDIR_MI_SRCS SUBDIR_TUI_SRCS.
> (DEPFILES): Remove CONFIG_OBS and include it explicitly where needed.

This doesn't match what you said above but tipped me off to the
problem; s/amdfbsd-nat.c/amd64fbsd-nat.c/ instead please.

Also, removing CONFIG_OBS doesn't have quite the affect you wanted.
You've also lost anything else that configure can add e.g.
libunwind-frame.c. Would adding CONFIG_SRCS to TAGFILES_NO_SRCDIR
instead work?

--
Daniel Jacobowitz
CodeSourcery, LLC