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 python/13722] New: lookup_global_symbol does not seem to work


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

             Bug #: 13722
           Summary: lookup_global_symbol does not seem to work
           Product: gdb
           Version: 7.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: gabenbecca@gmail.com
    Classification: Unclassified


When a corefile is generated and I attempt post-mortem debugging:

e.g. gdb ./foo foo.core.15180

info address works (e.g.):
(gdb) info address main

Symbol "main" is at 0x4145f0 in a file compiled without debugging.

but python api searching for the same symbol does not work:


(gdb) python print gdb.lookup_global_symbol("main")
None

other variations where I pass in different domains yeild the same results 

(gdb) gdb.lookup_global_symbol("main",gdb.gdb.SYMBOL_FUNCTIONS_DOMAIN)
None

Not sure what information I can provide?
> gdb --version
GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>

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