From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10498 invoked by alias); 19 Dec 2001 15:21:18 -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 9539 invoked from network); 19 Dec 2001 15:20:00 -0000 Received: from unknown (HELO venus.wolf.it) (151.42.103.233) by sources.redhat.com with SMTP; 19 Dec 2001 15:20:00 -0000 Received: by venus.wolf.it (Postfix, from userid 1000) id 316998FBB; Wed, 19 Dec 2001 16:20:07 +0100 (CET) Date: Wed, 19 Dec 2001 07:21:00 -0000 From: Paolo Molaro To: Daniel Berlin Cc: Andrew Cagney , gdb@sources.redhat.com Subject: Re: large line number debugging support Message-ID: <20011219152007.GG959@lettere.unipd.it> References: <3C1BA64C.1060104@cygnus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.24i X-SW-Source: 2001-12/txt/msg00166.txt.bz2 On 12/15/01 Daniel Berlin wrote: > > How does dwarf2 go with this? ``gas -gdwarf2'' will select dwarf2 > > assembler debug info. > > DWARF2 can do line numbers as large as you like, the opcodes take leb128 > or sleb128, as opposed to some fixed size encoding. Uhm, still no luck: $ cat test-stabs.s .stabs "corlib.il",100,0,0,0 .stabs "Void:t(0,1)=(0,1)",128,0,0,0 .stabs "myfunc:F(0,1)",36,0,70000,0x0 .stabs "",36,0,0,204 $ as -gdwarf2 test-stabs.s -o test-stabs.o $ objdump -G test-stabs.o test-stabs.o: file format elf32-i386 Contents of .stab section: Symnum n_type n_othr n_desc n_value n_strx String -1 HdrSym 0 4 00000038 1 0 SO 0 0 00000000 14 corlib.il 1 LSYM 0 0 00000000 24 Void:t(0,1)=(0,1) 2 FUN 0 4464 00000000 42 myfunc:F(0,1) 3 FUN 0 0 000000cc 0 $ echo $((70000-4464)) 65536 It's still trucated at 65536. So, even if the information is saved in the file (from an hexdump it doesn't look so), it's not used correctly by objdump and gdb. My binutils version is: binutils 2.11.92.0.12.3-3 Maybe I'm just doing something silly? Thanks. lupus -- ----------------------------------------------------------------- lupus@debian.org debian/rules lupus@ximian.com Monkeys do it better