Bug 634108 - python: gdb.solib_address() can't be used
Summary: python: gdb.solib_address() can't be used
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-15 09:22 UTC by Paul Bolle
Modified: 2010-09-23 12:55 UTC (History)
2 users (show)

Fixed In Version: gdb-7.2-6.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-23 12:55:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Paul Bolle 2010-09-15 09:22:53 UTC
Description of problem:
gdb.solib_address can't be used

Version-Release number of selected component (if applicable):
gdb-7.2-4.fc14.i686

How reproducible:
Always

Steps to Reproduce:
1. gdb
2. python
3. print dir(gdb)
4. end
5. q
  
Actual results:
$ gdb
(gdb) python
>print dir(gdb)
>end
[[...], 'selected_thread', 'solib_address (Long) -> String.\nReturn the name of the shared library holding a given address, or None.', 'string_to_argv', [...]]
(gdb) q

Expected results:
gdb
(gdb) python
>print dir(gdb)
>end
[[...], 'selected_thread', 'solib_address', 'string_to_argv', [...]]
(gdb) q

Additional info:
0) The entry for solib_address in GdbMethods[] is clearly incorrect.

That entry can be traced back to gdb-archer.patch:
$ grep -rInsE solib_address SOURCES/gdb*
SOURCES/gdb-archer.patch:8874:+                lib = gdb.solib_address (pc)
SOURCES/gdb-archer.patch:10373:+/* Implementation of gdb.solib_address (Long) -> String.
SOURCES/gdb-archer.patch:10377:+gdbpy_solib_address (PyObject *self, PyObject *args)
SOURCES/gdb-archer.patch:10665:+  { "solib_address (Long) -> String.\n\

1) Also note that gdbpy_solib_address() is now unused.

2) This could be trivial to patch. However, current gdb master uses gdb.solib_name() and gdbpy_solib_name() so it is not clear to me how to proceed here.

Comment 1 Fedora Update System 2010-09-18 14:01:46 UTC
gdb-7.2-6.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/gdb-7.2-6.fc14

Comment 2 Fedora Update System 2010-09-23 12:55:49 UTC
gdb-7.2-6.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.