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 exp/13907] New: RFE: Resolve static pointers in pretty printer


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

             Bug #: 13907
           Summary: RFE: Resolve static pointers in pretty printer
           Product: gdb
           Version: 7.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: exp
        AssignedTo: unassigned@sourceware.org
        ReportedBy: avi@redhat.com
    Classification: Unclassified


When gdb prints out a function pointer, it looks it up in the symbol table and
prints the function name:

  $5 = {read = 0x55555567f85f <pic_ioport_read>, ...

However, it doesn't do the same for data pointers:

  $3 = {ops = 0x555555b6ba60, ...
  (gdb) p &pic_base_ioport_ops 
  $6 = (const MemoryRegionOps *) 0x555555b6ba60

It would be nice if $3 read as

  $3 = {ops = 0x555555b6ba60 <&pic_base_ioport_ops>, ...

-- 
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]