From: Eli Zaretskii <eliz@gnu.org>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v3] Add more methods to gdb.Progspace
Date: Fri, 14 Sep 2018 05:57:00 -0000 [thread overview]
Message-ID: <83va78k4ee.fsf@gnu.org> (raw)
In-Reply-To: <20180913221627.13772-1-tom@tromey.com> (message from Tom Tromey on Thu, 13 Sep 2018 16:16:27 -0600)
> From: Tom Tromey <tom@tromey.com>
> Cc: Tom Tromey <tom@tromey.com>
> Date: Thu, 13 Sep 2018 16:16:27 -0600
>
> There are a number of global functions in the gdb Python module which
> really should be methods on Progspace. This patch adds new methods to
> Progspace and then redefines these globals in terms of these new
> methods.
>
> This version has been rebased on the related changes that Simon
> recently put in.
>
> Built and regtested on x86-64 Fedora 28.
>
> gdb/ChangeLog
> 2018-09-12 Tom Tromey <tom@tromey.com>
>
> * python/lib/gdb/__init__.py (current_progspace, objfiles)
> (solib_name, block_for_pc, find_pc_line): New functions.
> (execute_unwinders): Update.
> * python/py-block.c (gdbpy_block_for_pc): Remove.
> * python/py-inferior.c (infpy_get_progspace): New function.
> (inferior_object_getset) <progspace>: Add.
> * python/py-progspace.c (pspy_objfiles): Rewrite.
> (pspy_solib_name, pspy_block_for_pc)
> (pspy_find_pc_line, pspy_is_valid): New functions.
> (progspace_object_methods): Add entries for solib_name,
> block_for_pc, find_pc_line, is_valid.
> * python/python-internal.h (gdbpy_block_for_pc)
> (build_objfiles_list): Don't declare.
> * python/python.c: Don't include solib.h.
> (gdbpy_solib_name, gdbpy_find_pc_line)
> (gdbpy_get_current_progspace, build_objfiles_list)
> (gdbpy_objfiles): Remove.
> (GdbMethods) <current_progspace, objfiles, block_for_pc,
> solib_name, find_pc_line>: Remove entries.
>
> gdb/doc/ChangeLog
> 2018-09-13 Tom Tromey <tom@tromey.com>
>
> * python.texi (Basic Python): Update docs for find_pc_line,
> solib_name.
> (Progspaces In Python): Update docs for current_progspace.
> Document block_for_pc, find_pc_line, is_valid, nsolib_name.
> Move method documentation before example.
OK for the gdb.texinfo part.
Thanks.
next prev parent reply other threads:[~2018-09-14 5:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-13 22:17 Tom Tromey
2018-09-14 5:57 ` Eli Zaretskii [this message]
2018-09-16 3:10 ` Simon Marchi
2018-09-16 12:49 ` Tom Tromey
2018-09-16 13:01 ` Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83va78k4ee.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox