This is the mail archive of the gdb@sources.redhat.com 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: multi-arched Linux target


"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.


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