From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29960 invoked by alias); 26 Jun 2009 06:38:19 -0000 Received: (qmail 29948 invoked by uid 22791); 26 Jun 2009 06:38:19 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp.nokia.com (HELO mgw-mx03.nokia.com) (192.100.122.230) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 26 Jun 2009 06:38:12 +0000 Received: from vaebh105.NOE.Nokia.com (vaebh105.europe.nokia.com [10.160.244.31]) by mgw-mx03.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n5Q6c24x026634 for ; Fri, 26 Jun 2009 09:38:04 +0300 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by vaebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 26 Jun 2009 09:37:39 +0300 Received: from mgw-da01.ext.nokia.com ([147.243.128.24]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Fri, 26 Jun 2009 09:37:38 +0300 Received: from gar.localnet (bettdhcp167194.europe.nokia.com [172.25.167.194]) by mgw-da01.ext.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n5Q6bX9q009469 for ; Fri, 26 Jun 2009 09:37:34 +0300 From: =?iso-8859-1?q?Andr=E9_P=F6nitz?= To: gdb@sourceware.org Subject: Re: Learn function name by its address Date: Fri, 26 Jun 2009 06:38:00 -0000 User-Agent: KMail/1.11.2 (Linux/2.6.28-11-generic; KDE/4.2.2; i686; ; ) References: <8763ekb9ql.fsf@sphinx.net.ru> <8ac60eac0906250853y3f70e3b1y2bf97674b1e83d7b@mail.gmail.com> In-Reply-To: <8ac60eac0906250853y3f70e3b1y2bf97674b1e83d7b@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906260838.31341.andre.poenitz@nokia.com> X-Nokia-AV: Clean 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: 2009-06/txt/msg00245.txt.bz2 On Thursday 25 June 2009 17:53:33 Paul Pluzhnikov wrote: > On Thu, Jun 25, 2009 at 8:42 AM, Dmitry Dzhus wrote: > > > What way of finding out function name by address would you suggest? > > From "info gdb": > > The `-symbol-info-symbol' Command > --------------------------------- > > Synopsis > ........ > > -symbol-info-symbol ADDR > > Describe what symbol is at location ADDR. Looks like the wonders of MI's wishful thinking strike again: apoenitz@gar:/tmp$ ~/gdb/fsf/src/gdb/gdb -i mi ./x ~"GNU gdb (GDB) 6.8.50.20090622-cvs\n" ~"Copyright (C) 2009 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later \n" ~"This is free software: you are free to change and redistribute it.\n" ~"There is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\n" ~"and \"show warranty\" for details.\n" ~"This GDB was configured as \"i686-pc-linux-gnu\".\n" ~"For bug reporting instructions, please see:\n" ~"...\n" (gdb) b main &"b main\n" ~"Breakpoint 1 at 0x805c72d: file x.cpp, line 475.\n" ^done (gdb) -symbol-info-symbol 0x805c72d ^error,msg="Undefined mi command: symbol-info-symbol (missing implementation)" (gdb) Same with 6.8.50.20090626-cvs. I don't have anything more recent. Regards, Andre'