From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15370 invoked by alias); 17 Feb 2004 15:43:41 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 15362 invoked from network); 17 Feb 2004 15:43:40 -0000 Received: from unknown (HELO lakemtao04.cox.net) (68.1.17.241) by sources.redhat.com with SMTP; 17 Feb 2004 15:43:40 -0000 Received: from white ([68.9.64.121]) by lakemtao04.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040217154340.FGIN19895.lakemtao04.cox.net@white> for ; Tue, 17 Feb 2004 10:43:40 -0500 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1At7Nr-0001Vv-00 for ; Tue, 17 Feb 2004 10:43:39 -0500 Date: Tue, 17 Feb 2004 15:43:00 -0000 From: Bob Rossi To: gdb-patches@sources.redhat.com Subject: -symbol-list-lines doco update Message-ID: <20040217154339.GA5684@white> Mail-Followup-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i X-SW-Source: 2004-02/txt/msg00468.txt.bz2 This documents several of the special case's that -symbol-list-lines outputs. 2004-02-17 Bob Rossi * gdb.texinfo (-symbol-list-lines): Add info about the special case's that this command outputs. Index: gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.195 diff -w -u -r1.195 gdb.texinfo --- gdb.texinfo 17 Feb 2004 14:54:32 -0000 1.195 +++ gdb.texinfo 17 Feb 2004 15:35:21 -0000 @@ -17463,6 +17465,17 @@ addresses for the given source filename. The entries are sorted in ascending PC order. +There are two interesting points to be mentioned here. + +- The line number can be returned as "0". The line number "0" means +end-of-sequence. For example, PCs greater than 0x8048406 that +don't have a new starting line do not belong to this line number table. + +- Also, entries can be duplicated when returned. This means the front end +must be capable of receiving several PC/line entries with the same value. +Duplicated line numbers are emitted by the compiler to mark, mostly, +the ends of prologues. Sometimes the prologue is zero-sized. + @subsubheading @value{GDBN} Command There is no corresponding @value{GDBN} command. @@ -17471,7 +17484,21 @@ @smallexample (@value{GDBP}) -symbol-list-lines basics.c -^done,lines=[@{pc="0x08048554",line="7"@},@{pc="0x0804855a",line="8"@}] +^done,lines=[ +@{pc="0x080483e0",line="7"@},@{pc="0x080483e6",line="8"@}, +@{pc="0x080483ed",line="9"@},@{pc="0x080483f4",line="12"@}, +@{pc="0x08048400",line="13"@},@{pc="0x08048404",line="14"@}, +@{pc="0x08048404",line="14"@},@{pc="0x08048406",line="0"@}, +@{pc="0x08048408",line="16"@},@{pc="0x0804840e",line="17"@}, +@{pc="0x08048413",line="18"@},@{pc="0x08048415",line="0"@}, +@{pc="0x08048418",line="21"@},@{pc="0x0804841e",line="22"@}, +@{pc="0x0804842d",line="23"@},@{pc="0x0804842f",line="0"@}, +@{pc="0x08048430",line="26"@},@{pc="0x08048436",line="27"@}, +@{pc="0x08048449",line="28"@},@{pc="0x0804844b",line="0"@}, +@{pc="0x0804844c",line="31"@},@{pc="0x08048452",line="32"@}, +@{pc="0x0804846d",line="33"@},@{pc="0x08048488",line="35"@}, +@{pc="0x08048498",line="37"@},@{pc="0x0804849c",line="38"@}, +@{pc="0x0804849c",line="38"@},@{pc="0x080484a2",line="0"@}] (@value{GDBP}) @end smallexample