From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18122 invoked by alias); 6 Apr 2006 18:58:07 -0000 Received: (qmail 18114 invoked by uid 22791); 6 Apr 2006 18:58:06 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Apr 2006 18:58:05 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-90-229.inter.net.il [80.230.90.229]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id DBE12277 (AUTH halo1); Thu, 6 Apr 2006 21:57:29 +0300 (IDT) Date: Thu, 06 Apr 2006 19:07:00 -0000 Message-Id: From: Eli Zaretskii To: gdb@sources.redhat.com In-reply-to: <20060406133829.GI11610@brasko.net> (message from Bob Rossi on Thu, 6 Apr 2006 09:38:29 -0400) Subject: Re: text file formats Reply-to: Eli Zaretskii References: <20060405223122.GB11610@brasko.net> <20060405233938.GA11013@nevyn.them.org> <20060406001455.GC11610@brasko.net> <20060406011732.GA12814@nevyn.them.org> <20060406032702.GE11610@brasko.net> <20060406133829.GI11610@brasko.net> 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-04/txt/msg00077.txt.bz2 > Date: Thu, 6 Apr 2006 09:38:29 -0400 > From: Bob Rossi > Cc: gdb@sources.redhat.com > > The first is when I have a source file displayed, I need to make sure > that what the user see's as line N is what GDB/GCC think is line N. For > instance, 'b foo.c:N' must be the same line N that GDB/GCC think is line N. Then you must do _exactly_ what GDB does: support only native EOL formats. > The second case is when the user types 'b main'. > GDB will find the symbol and determine the line number. > (gdb) b main > Breakpoint 1 at 0x8048320: file main.c, line 4. > I need to make sure that line 4, is the same in GDB, as it is in CGDB. This only works in GDB if the source has native EOLs. You must do the same in CGDB, or else change GDB to support non-native formats, and make CGDB do the same.