From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16582 invoked by alias); 17 Jul 2007 22:17:17 -0000 Received: (qmail 16574 invoked by uid 22791); 17 Jul 2007 22:17:16 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 17 Jul 2007 22:17:09 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id ED276982A2; Tue, 17 Jul 2007 22:17:07 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 82F4E98294; Tue, 17 Jul 2007 22:17:07 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IAvLs-0002Fd-QH; Tue, 17 Jul 2007 18:17:04 -0400 Date: Wed, 18 Jul 2007 09:16:00 -0000 From: 'Daniel Jacobowitz' To: Pierre Muller Cc: gdb-patches@sourceware.org, gpc@gnu.de Subject: Re: [RFC] adding gdb.pascal subdir Message-ID: <20070717221704.GA8359@caradoc.them.org> Mail-Followup-To: Pierre Muller , gdb-patches@sourceware.org, gpc@gnu.de References: <000601c77c0a$26b91750$742b45f0$@u-strasbg.fr> <20070412154722.GA4189@caradoc.them.org> <001201c77de2$008bc7b0$01a35710$@u-strasbg.fr> <002a01c7b3cf$1cd594f0$5680bed0$@u-strasbg.fr> <000601c77c0a$26b91750$742b45f0$@u-strasbg.fr> <20070412154722.GA4189@caradoc.them.org> <001201c77de2$008bc7b0$01a35710$@u-strasbg.fr> <20070705143246.GA4958@caradoc.them.org> <001f01c7c87d$e64c5d60$b2e51820$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001f01c7c87d$e64c5d60$b2e51820$@u-strasbg.fr> User-Agent: Mutt/1.5.15 (2007-04-09) 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: 2007-07/txt/msg00222.txt.bz2 On Tue, Jul 17, 2007 at 04:22:26PM +0200, Pierre Muller wrote: > A possible work-around would be to fix breakpoints at specific > positions in the file, but this would require to re-edit hello.exp > each time someone changes hello.pas source. > I have no idea if this is acceptable. Take a look at the testsuite function "gdb_get_line_number". You're exactly right that fixing the breakpoints at specific positions is a bad idea, but this way they can "float" along with the source. > The other failure is common to gpc and fpc: > (gdb) ptyp 'a simple string' ^M > gives a strange error: > No symbol table is loaded: use "file" command. > I have no idea why this happens. It is probably trying to call malloc to allocate the string. -- Daniel Jacobowitz CodeSourcery