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] New: always display addresses in "info var"output


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

             Bug #: 13590
           Summary: always display addresses in "info var" output
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dje@google.com
    Classification: Unclassified


"info var foo" doesn't always display the variable's address.
IWBN if it did.

foo.c:

struct foo
{
  int x;
};

struct foo bar;

int
main ()
{
  return 0;
}

With debug info:

(gdb) info var bar
All variables matching regular expression "bar":

File 4902939.c:
struct foo bar;

Without debug info:

(gdb) info var bar
All variables matching regular expression "bar":

Non-debugging symbols:
0x00000000004019c8  bar

[I realize why it currently works this way.
The point is to print the address.]

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]