This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug symtab/13590] always display addresses in "info var" output


https://sourceware.org/bugzilla/show_bug.cgi?id=13590

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com

--- Comment #3 from Pedro Alves <palves at redhat dot com> ---
> (gdb) p &foo.c::foo       <<< is there a syntax for that?
> A syntax error in expression, near `::foo'.

yes there is, it's:

  (gdb) p 'foo.c'::foo
  $1 = 0

"watch 'foo.c'::foo", "disassemble 'foo.c'::function" etc. works too. 
Basically, everywhere gdb accepts an expression.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]