This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Try to include libunwind-ia64.h in libunwind-frame.h


On Mon, 13 Feb 2012 19:57:27 +0100, Pedro Alves wrote:
> I don't understand why we ever include "libunwind.h" though.

> libunwind is only ever used by ia64 currently.

It is required for ia64 but it can be used even with non-ia64 archs.

I do not have it tested, though.  I will test it before a check-in.


> If some other target wanting to use libunwind shows up, then we'll need to
> include libunwind-fooarch.h instead

For native configuration libunwind.h includes the right libunwind-fooarch.h
for us.
	/usr/include/libunwind.h
	#if defined __arm__
	# include "libunwind-arm.h"
	#elif defined __hppa__
	# include "libunwind-hppa.h"
	[...]

The cross-build does not work for ia64 well this way, though.  So libunwind
for non-ia64 works even in the non-cross mode.  This is the part I did not
want to start implementing as it may get all more complex.


> IOW, "libunwind.h" will always be conceptually wrong for gdb.

libunwind has pretty active development, I can imaging libunwind developers
/ enthusiasts would like to use it for GDB on x86*.


Thanks,
Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]