From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23363 invoked by alias); 8 Jun 2006 06:22:37 -0000 Received: (qmail 23306 invoked from network); 8 Jun 2006 06:22:27 -0000 Received: from unknown (202.80.33.51) by sourceware.org with QMTP; 8 Jun 2006 06:22:27 -0000 Received: (qmail 2504 invoked from network); 8 Jun 2006 06:22:23 -0000 X-Anti-Virus: Message scanned for viruses by TVL Received: from dsl2-modem31.tvl.vu (HELO [192.168.2.14]) ([202.80.43.31]) (envelope-sender ) by mail.vanuatu.com.vu (qmail-ldap-1.03) with SMTP for ; 8 Jun 2006 06:22:23 -0000 Message-ID: <4487C21F.2090907@sakuraindustries.com> Date: Thu, 08 Jun 2006 07:23:00 -0000 From: Steven Johnson User-Agent: Mozilla Thunderbird 1.0.6-7.2.20060mdk (X11/20050322) MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Problems with startup code symbols (Copious warnings) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00052.txt.bz2 Hi, For ever and a day with GDB i've gotten the following warnings: warning: (Internal error: pc 0x00 in read in psymtab, but not in symtab.) I get it a lot. I even patch GDB so it doesn't generate this warning, its so annoying. 0x00 happens to be my programs entry point (its an embedded system). And is in Assembler code. I've never liked patching GDB to get rid of this warning, so I invested some time on it and I've just discovered 2 ways to make it go away: 1. If I compile my code with stabs+ debug info, I don't get the warning. I would prefer to use Dwarf-2 however, as it seems to be the way of the future. 2. If I add: .section .debug_info,"",@progbits as the first directive in my asm file, the warning also goes away. But so does the code when I view it under GDB. Does anyone know any special incantation I need to make in my ASM file, to get rid of the warning, but still retain the symbolic information so I can see the code and symbols under GDB? The file is a ".S" file, it is assembler but i build it with GCC. The CPU is a PowerPC, Motorola MPC862. Thanks, Steven J