[PATCH] gdb: fix building with system readline

Tom Tromey tromey@redhat.com
Mon Mar 22 17:25:00 GMT 2010


>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:

Mike> Building gdb with --enable-targets=all and --with-system-readline hits a
Mike> failure in a few targets all related to the inclusion of some opcodes
Mike> headers.  The usage of the bundled readline results in an -I to the top
Mike> srcdir, but if that isn't used, then there is no such -I path.  A few gdb
Mike> targets use this implicitly to include opcodes/ source header files.  So
Mike> change the include paths to use an -I to the opcodes/ directory, and then
Mike> have the gdb files drop the opcodes/ path in the #include.

Mike> An alternative is to add -I$(top_srcdir) to the main CFLAGS ...

I personally find the #include "opcodes/whatever.h" form a little
clearer.  However, I don't have very strong feelings about it.

Give this patch a couple more days; if nobody speaks up in favor of one
approach or the other, then it is ok.

thanks,
Tom



More information about the Gdb-patches mailing list