This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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 build/13944] New: ftell: text variable, no debug info


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

             Bug #: 13944
           Summary: ftell: text variable, no debug info
           Product: glibc
           Version: 2.14
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
        AssignedTo: unassigned@sourceware.org
        ReportedBy: giecrilj@stegny.2a.pl
                CC: carlos@systemhalted.org
    Classification: Unclassified


Steps to reproduce:

{ gdb true; }
run
p ftell
ptype ftell

Actual result:

{<text variable, no debug info>} 0x7ffff7ab3ce0 <_IO_ftell>
int ()

Expected result:

{long (FILE *)} 0x7ffff7ab3ce0 <_IO_ftell>
long (FILE *)

This bug confuses gdb a lot; if you have a file pointer f positioned at
0x400000000, gdb will print 0 for ftell (f).

Workaround: p _IO_ftell (f).

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