This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: multi-arched Linux target
- From: Jim Blandy <jimb at redhat dot com>
- To: "Kei Sakamoto" <sakamoto dot kei at renesas dot com>
- Cc: <gdb at sources dot redhat dot com>
- Date: 04 Aug 2004 17:59:09 -0500
- Subject: Re: multi-arched Linux target
- References: <00e801c4744f$89f85c10$5169910a@E5A02646><002a01c4782d$fe34ef80$5169910a@E5A02646>
"Kei Sakamoto" <sakamoto.kei@renesas.com> writes:
> > I have a question about multi-arched Linux target.
> >
> > I'm implementing the native debug support on Linux/M32R.
> > http://www.linux-m32r.org
> >
> > In order to support Linux target, config/tm-linux.h is necessary.
> > But config/tm-linux.h causes build errors in full multi-arched
> > environment because SKIP_TRAMPOLINE_CODE and IN_SOLIG_CALL_TRAMPOLINE
> > don't have multi-arch definitions.
> >
> > In file included from ../../src/gdb/defs.h:1135,
> > from ../../src/gdb/gdb.c:21:
> > ../../src/gdb/gdbarch.h:2071:2: #error "Non multi-arch definition of
> > SKIP_TRAMPOLINE_CODE"
> > ../../src/gdb/gdbarch.h:2093:2: #error "Non multi-arch definition of
> > IN_SOLIB_CALL_TRAMPOLINE"
> >
> > Do I have to use MULTI_ARCH_PARTIAL for Linux target?
I think so. You'll need to have a tm-*.h file, which automatically
brings you down to MULTI_ARCH_PARTIAL. You don't need to actually
#define that anywhere, though; just having a tm-*.h file at all
automatically sets that. Search for GDB_TM_FILE in defs.h.
But I don't think that'll cause you any problems. Since you're not
overriding them, it won't affect any of the definitions you're
currently getting from gdbarch.h. Things should just continue to work
normally.