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/15216] New: f N should reset the default address forinfo line, even if there is no line info for that frame


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

             Bug #: 15216
           Summary: f N should reset the default address for info line,
                    even if there is no line info for that frame
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dje@google.com
    Classification: Unclassified


I was debugging python in gdb and didn't have debug info for python, did f 0,
then "i line" and thought it odd that "i line" was reporting the previous line
I was looking at.  "i line" works perfectly well if there is no line info:

(top-gdb) info line *$pc
No line number information available for address 0x7ffff6b32c20 <Py_Initialize>

I think that is what should be printed after I do "f N" and there is no line
info, rather than whatever line I happened to be previously looking at.

(top-gdb) info line *$pc
No line number information available for address 0x7ffff6b32c20 <Py_Initialize>
(top-gdb) up
#1  0x00000000004d51f9 in _initialize_python () at
../../src/gdb/python/python.c:1577
(top-gdb) info line
Line 1577 of "../../src/gdb/python/python.c" starts at address 0x4d51f4
<_initialize_python+452> and ends at 0x4d51f9 <_initialize_python+457>.
(top-gdb) f 0
#0  0x00007ffff6b32c20 in Py_Initialize () from /usr/lib/libpython2.7.so.1.0
(top-gdb) info line
Line 1577 of "../../src/gdb/python/python.c" starts at address 0x4d51f4
<_initialize_python+452> and ends at 0x4d51f9 <_initialize_python+457>.

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