From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10060 invoked by alias); 14 Nov 2002 07:40:03 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10036 invoked from network); 14 Nov 2002 07:40:01 -0000 Received: from unknown (HELO mta04bw.bigpond.com) (139.134.6.87) by sources.redhat.com with SMTP; 14 Nov 2002 07:40:01 -0000 Received: from neurizon.net ([144.135.24.75]) by mta04bw.bigpond.com (Netscape Messaging Server 4.15 mta04bw Jul 16 2002 22:47:55) with SMTP id H5K2MN00.BXR for ; Thu, 14 Nov 2002 17:39:59 +1000 Received: from CPE-203-51-194-56.qld.bigpond.net.au ([203.51.194.56]) by bwmam03.mailsvc.email.bigpond.com(MailRouter V3.0n 20/50274470); 14 Nov 2002 17:39:59 Message-ID: <3DD351ED.7000409@neurizon.net> Date: Wed, 13 Nov 2002 23:40:00 -0000 From: Steven Johnson Organization: Neurizon Pty Ltd User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Internal error in GDB Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-11/txt/msg00161.txt.bz2 Im getting the error: Internal error: pc 0x0 in read in psymtab, but not in symtab. from a very recent CVS build of GDB (As of 11th November). It happens when I set breakpoints in an assembler file, that has been assembled through GCC, using the C Preprocessor (.S file, not .s file). It does nothing wrong, except pop up all the time and hence interfere with debugging significantly. (Im using insight and have to keep pressing OK to continue). I searched the code and it seems to be coming from symtab.c:find_pc_sect_symtab (last if in the function) The comment in the code indicates that this error may want to stop GDB cold. Thankfully it isn't, cause I seem to be getting it in error. Also, the code here seems to be wrong, it prints the error, and then proceeds to look it up anyway. As in: if (ps->readin) warning("Internal error: pc 0x%s in read in psymtab, but not in symtab.",paddr_nz(pc)); s = PSYMTAB_TO_SYMTAB(s) I would have expected, from the error, it not to try and PSYMTAB_TO_SYMTAB, as it is saying it isn't in the SYMTAB. as in: if (ps->readin) warning("Internal error: pc 0x%s in read in psymtab, but not in symtab.",paddr_nz(pc)); else s = PSYMTAB_TO_SYMTAB(s) Anyway, what is going on here? What do i need to do to my assembler file to prevent this warning? Regards, Steven Johnson