From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25188 invoked by alias); 8 May 2007 22:12:48 -0000 Received: (qmail 25173 invoked by uid 22791); 8 May 2007 22:12:46 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 08 May 2007 22:12:44 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 749F948CE80 for ; Tue, 8 May 2007 18:12:42 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21374-01-3 for ; Tue, 8 May 2007 18:12:42 -0400 (EDT) Received: from joel.gnat.com (unknown [70.71.0.212]) by nile.gnat.com (Postfix) with ESMTP id 220DE48CCA1 for ; Tue, 8 May 2007 18:12:42 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 0FE7FE7B4F; Tue, 8 May 2007 15:12:53 -0700 (PDT) Date: Tue, 08 May 2007 22:12:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: [RFA/RFC] no shared library support warning on powerpc-elf Message-ID: <20070508221252.GG3798@adacore.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-05/txt/msg00119.txt.bz2 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 1307 Hello, When running a program on the powerpc-elf simulator, I get the following warning: (gdb) run Starting program: /[...]/ex/other !!! -> warning: no shared library support for this OS / ABI Breakpoint 1, other () at other.adb:12 12 end Other; After having a look, it appears to be a side-effect of a patch that moved the post-target_create_inferior processing from the target layer back to the core layer. I think the interesting part of the ChangeLog entry is the following: * infcmd.c (post_create_inferior): Call solib_add, solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs. Before this change was made the remote-sim code was in charge of doing that, and this code was not calling the solib create_inferior hook. In the case of powerpc-elf, GDB links in solib.c and solib-svr4.c. I don't think the bareboard case is supported by these units, so I think the sensible thing to do is to remove them from the closure and not build them. Opinions? 2007-05-08 Joel Brobecker * config/powerpc/ppc-sim.mt (TDEPFILES): Remove solib.o and solib-svr4.o. Is it possible to run the testsuite? The compilers I have use the powerpc-elf- prefix (eg: powerpc-elf-gcc). Thanks, -- Joel --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ppc-elf.diff" Content-length: 655 Index: config/powerpc/ppc-sim.mt =================================================================== RCS file: /cvs/src/src/gdb/config/powerpc/ppc-sim.mt,v retrieving revision 1.8 diff -u -p -r1.8 ppc-sim.mt --- config/powerpc/ppc-sim.mt 13 Apr 2007 14:17:46 -0000 1.8 +++ config/powerpc/ppc-sim.mt 8 May 2007 22:04:57 -0000 @@ -1,5 +1,5 @@ # Target: PowerPC running eabi and including the simulator -TDEPFILES= rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o dink32-rom.o ppc-sysv-tdep.o solib.o solib-svr4.o +TDEPFILES= rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o dink32-rom.o ppc-sysv-tdep.o DEPRECATED_TM_FILE= tm-ppc-eabi.h SIM_OBS = remote-sim.o --oyUTqETQ0mS9luUI--