This is the mail archive of the gdb-patches@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]

Re: [RFC] - Exposing find_pc_line through Python API


On Fri, May 11, 2012 at 2:45 AM, Doug Evans <dje@google.com> wrote:
> I think we need to specify what the result is if there is no sal for
> the specified pc.
> ...
> "actual" can be deleted now.

I have addressed these two comments.  The patch is attached.

2012-05-11  Siva Chandra Reddy  <sivachandra@google.com>

        Add a new function gdb.find_pc_line to the Python API.
        * NEWS (Python Scripting): Add entry about the new function.
        * python/python.c (gdbpy_find_pc_line): New function which
        implements gdb.find_pc_line.
        (GdbMethods): Add entry for the new function.

        doc/
        * gdb.texinfo (Basic Python): Add description about the function
        gdb.find_pc_line

        testsuite/
        * gdb.python/python.c: Add a new breakpoint comment.
        * gdb.python/python.exp: Add tests to test gdb.find_pc_line.

Thanks,
Siva Chandra

Attachment: pc_line_patch_v3.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]