From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25378 invoked by alias); 18 Jul 2008 03:02:38 -0000 Received: (qmail 25369 invoked by uid 22791); 18 Jul 2008 03:02:37 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 18 Jul 2008 03:02:20 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id CB7EC3BD3C; Thu, 17 Jul 2008 20:02:17 -0700 (PDT) Subject: Re: gdb command for listing assembly labels From: Michael Snyder To: Jiju George T Cc: gdb@sources.redhat.com In-Reply-To: <003001c8e750$253920c0$390aa8c0@ashmicro.ashling.com> References: <003001c8e750$253920c0$390aa8c0@ashmicro.ashling.com> Content-Type: text/plain Date: Fri, 18 Jul 2008 03:02:00 -0000 Message-Id: <1216350137.3549.380.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-7.fc7) Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-07/txt/msg00201.txt.bz2 On Wed, 2008-07-16 at 15:27 +0100, Jiju George T wrote: > Hi, > > I am using gdb based on 6.8 version cross compiled for mips-linux to debug > a MIPS Linux kernel. I would like know is there any command in gdb to list > all the assembly labels? > > I tried "info function" which lists C like functions and "info variables" > which lists the global variables. I could n't find any command which lists > all labels in assembly files. No, but if you do either of the above (info functions or info variables), gdb should separate the functions (or variables) into two lists -- those that have source level debug info, and those that don't. Your assembly labels should be among the later list. Unfortunately, they'll be mixed together with high-level symbols from source files compiled without "-g", but maybe this will be some help.