This is the mail archive of the gdb-patches@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: [PATCH] Define SVR4 link map offset fetcher for Linux/PPC


> I've tested this patch on AIX (to make sure I didn't break the build
> or cause any regressions) and also in a Linux/x86 cross Linux/PPC test
> environment.

Kevin, did you try this with --target=powerpc-eabi as listed in the 
MAINTAINERS?  I'm seeing a -Werror of solib_add() undefined:

> /home/scratch/PENDING/rm-obsolete/src/gdb/solib-svr4.c:912: warning: implicit declaration of function `solib_add'
> gmake[1]: *** [solib-svr4.o] Error 1
> gmake[1]: Leaving directory `/home/scratch/PENDING/rm-obsolete/carp/X-powerpc-eabi/gdb'
> gmake: *** [all-gdb] Error 2

enjoy,
Andrew

> 	* ppc-linux-tdep.c (solib-svr4.h): Include.
> 	(ppc_linux_svr4_fetch_link_map_offsets): New function.
> 	* ppc-tdep.h (ppc_linux_svr4_fetch_link_map_offsets): Declare.
> 	* rs6000-tdep.c (solib-svr4.h): Include.
> 	(rs6000_gdbarch_init): Set up ppc_linux_svr4_fetch_link_map_offsets()
> 	as the link map offsets fetcher.
> 
> 	* config/powerpc/aix.mt (TDEPFILES): Add solib-svr4.o.
> 	* config/powerpc/macos.mt (TDEPFILES): Likewise.
> 	* config/powerpc/nbsd.mt (TDEPFILES): Likewise.
> 	* config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
> 	* config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
> 	* config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
> 	* config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
> 	* config/powerpc/vxworks.mt (TDEPFILES): Likewise.
> 	* config/rs6000/aix4.mt (TDEPFILES): Likewise.
> 	* config/rs6000/rs6000.mt (TDEPFILES): Likewise.
> 	* config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
> 



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