Discussion:
[Bug python/16243] New: python objfiles API oddity
tromey at redhat dot com
2013-11-25 19:16:21 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=16243

Bug ID: 16243
Summary: python objfiles API oddity
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: tromey at redhat dot com

The documentation for gdb.objfiles should mention that
the objfiles returned are actually from the current
program space.

Also I think there should maybe be a method on gdb.Progspace to
return that program space's objfiles.
--
You are receiving this mail because:
You are on the CC list for the bug.
pmuldoon at redhat dot com
2014-02-26 08:59:04 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=16243

Phil Muldoon <pmuldoon at redhat dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |pmuldoon at redhat dot com
Assignee|unassigned at sourceware dot org |pmuldoon at redhat dot com

--- Comment #1 from Phil Muldoon <pmuldoon at redhat dot com> ---
Looking at py-progspace.c, pspy_get_filename assumes only one (or no) object
file can be associated with a program space.

Maybe there was a typo in your comment "program space's objfiles"?

I can easily add a function to return a gdb.Objfile object, but I wanted to
check first to make sure there was not an additional bug here.
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at redhat dot com
2014-02-26 19:57:21 UTC
Permalink
http://sourceware.org/bugzilla/show_bug.cgi?id=16243

--- Comment #2 from Tom Tromey <tromey at redhat dot com> ---
The original bug is referring to the "gdb.objfiles" method.
It actually returns just the objfiles in the current program space.

I have most of this PR (not the doc bits) on a branch.
I'll try to clean it up.
--
You are receiving this mail because:
You are on the CC list for the bug.
pmuldoon at redhat dot com
2014-02-26 20:49:10 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=16243

Phil Muldoon <pmuldoon at redhat dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|pmuldoon at redhat dot com |tromey at redhat dot com

--- Comment #3 from Phil Muldoon <pmuldoon at redhat dot com> ---
Okay thanks. Assigning to you for when you get some time to do the docs and
push.
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-09-15 00:54:29 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=16243

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
Assignee|tromey at redhat dot com |tromey at sourceware dot org

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
I had sent the patch ages ago, but I rebased & resent it again this week.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...