Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "André Pönitz" <andre.poenitz@nokia.com>
To: gdb@sourceware.org
Subject: Re: Learn function name by its address
Date: Fri, 26 Jun 2009 06:38:00 -0000	[thread overview]
Message-ID: <200906260838.31341.andre.poenitz@nokia.com> (raw)
In-Reply-To: <8ac60eac0906250853y3f70e3b1y2bf97674b1e83d7b@mail.gmail.com>

On Thursday 25 June 2009 17:53:33 Paul Pluzhnikov wrote:
> On Thu, Jun 25, 2009 at 8:42 AM, Dmitry Dzhus<dima@sphinx.net.ru> 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 <http://gnu.org/licenses/gpl.html>\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"
~"<http://www.gnu.org/software/gdb/bugs/>...\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'


  parent reply	other threads:[~2009-06-26  6:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-25 15:43 Dmitry Dzhus
2009-06-25 15:53 ` Paul Pluzhnikov
2009-06-25 18:27   ` Michael Snyder
2009-06-25 18:36   ` Dmitry Dzhus
2009-06-25 19:14     ` Paul Pluzhnikov
2009-06-26 11:30     ` Nick Roberts
2009-06-26 16:07       ` Dmitry Dzhus
2009-06-26  6:38   ` André Pönitz [this message]
2009-06-26  7:05     ` Paul Pluzhnikov
2009-06-26 17:26       ` Tom Tromey
2009-06-26 17:35         ` Paul Pluzhnikov
2009-06-26 18:06           ` Tom Tromey
2009-06-26 18:50             ` Michael Snyder
2009-06-26 18:54               ` Paul Pluzhnikov
2009-06-26 19:19               ` Tom Tromey
2009-06-26 22:41                 ` Joel Brobecker
2009-06-27  9:40               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200906260838.31341.andre.poenitz@nokia.com \
    --to=andre.poenitz@nokia.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox