From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17651 invoked by alias); 2 Sep 2003 22:22:46 -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 17643 invoked from network); 2 Sep 2003 22:22:45 -0000 Received: from unknown (HELO localhost.redhat.com) (66.187.230.200) by sources.redhat.com with SMTP; 2 Sep 2003 22:22:45 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 70B872B7F; Tue, 2 Sep 2003 18:22:46 -0400 (EDT) Message-ID: <3F551836.3040706@redhat.com> Date: Tue, 02 Sep 2003 22:22:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Elizabeth Chastain Cc: gdb@sources.redhat.com, vinschen@redhat.com Subject: Re: testsuite: FAILs in funcargs.exp References: <200309021712.h82HCxY4024710@duracef.shout.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg00020.txt.bz2 > There is a long comment about this starting at line 137 of > gdb.base/condbreak.exp. > > gdb prints '0xNNNNNNNN in function' when the instruction pointer > does not map to the first instruction of a line. This is a common > issue when the function is nearly empty, like call6k or hitbottom. > > It's a real bug with the gcc line number notes, but it's so harmless > to users that I would not bother to fix it. FYI, It's harmful to users. If the prologue isn't correctly skipped parameters are likely not where GDB expects them and that will lead to to GDB printing bogus parameter values. As a developer I know that an extra 'next' gets a round the problem vis: (gdb) break main (gdb) run breakpoint at 0x1234 in main (argc=123455, argv=0) (gdb) print argc $1 = 123455 (gdb) next (gdb) print argc $2 = 1 but that isn't ok for users. > BTW I am working on an 'empty.exp' test script to test a variety > of empty functions and their line number notes. That would be useful. Andrew