From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20981 invoked by alias); 12 Jan 2008 16:26:41 -0000 Received: (qmail 20966 invoked by uid 22791); 12 Jan 2008 16:26:40 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (213.8.233.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 12 Jan 2008 16:26:11 +0000 Received: from HOME-C4E4A596F7 (IGLD-83-130-248-94.inter.net.il [83.130.248.94]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id JWR99341 (AUTH halo1); Sat, 12 Jan 2008 18:25:48 +0200 (IST) Date: Sat, 12 Jan 2008 16:26:00 -0000 Message-Id: From: Eli Zaretskii To: Joel Brobecker CC: mark.kettenis@xs4all.nl, gdb-patches@sourceware.org In-reply-to: <20080112160233.GF9143@adacore.com> (message from Joel Brobecker on Sat, 12 Jan 2008 08:02:33 -0800) Subject: Re: [RFC/RFA?] Should break FILE:LINENO skip prologue? Reply-to: Eli Zaretskii References: <1200001622.14654.29.camel@localhost.localdomain> <200801102208.m0AM8aDR023344@brahms.sibelius.xs4all.nl> <20080111053547.GB12954@adacore.com> <200801111126.m0BBQQDB006618@brahms.sibelius.xs4all.nl> <20080111182136.GD12954@adacore.com> <200801112113.m0BLDnAF024595@brahms.sibelius.xs4all.nl> <200801121531.m0CFVW8I023504@brahms.sibelius.xs4all.nl> <20080112160233.GF9143@adacore.com> X-IsSubscribed: yes 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: 2008-01/txt/msg00311.txt.bz2 > Date: Sat, 12 Jan 2008 08:02:33 -0800 > From: Joel Brobecker > Cc: Mark Kettenis , gdb-patches@sourceware.org > > So, in C, *FUNCTION is the first instruction of our function. However, > in Ada, calls to parameterless function are made by just using the name > of that function. For instance: > > A := Get_A; > > So the, when you say "break *FUNCTION", then GDB will first call > FUNCTION, and break at the value returned by that function. So you > have to use "break *FUNCTION'Address", or more simply "break > *&FUNCTION" should work. Sorry, I'm not sure I follow: are you saying that "break *Get_A" will not work when you debug an Ada program?