From: Doug Evans <dje@google.com>
To: Siva Chandra <sivachandra@google.com>
Cc: Eli Zaretskii <eliz@gnu.org>, gdb-patches@sourceware.org
Subject: Re: [RFC] - Exposing find_pc_line through Python API
Date: Fri, 11 May 2012 18:14:00 -0000 [thread overview]
Message-ID: <CADPb22SQ4zQ2vP+2kTSXT8FMaENZbuNTDNKmEhhpfiGA7ofRjg@mail.gmail.com> (raw)
In-Reply-To: <CAGyQ6gxQ=LbL5MS-xX2x4ifmpxZQTj3Jh1NkjKocGVtza8H_WA@mail.gmail.com>
On Fri, May 11, 2012 at 9:34 AM, Siva Chandra <sivachandra@google.com> wrote:
> 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
Thanks.
The patch is ok with me.
A question occurred to me, and I'm not suggesting it has to be
answered before the patch can go in.
In vliw architectures one pc value can be associated with multiple
lines (maybe even symtabs, depending on possible future symtab
implementations).
In this particular case I think we can wait until there's a pressing
need to address it.
I just wanted to throw this out there.
next prev parent reply other threads:[~2012-05-11 18:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-07 18:11 Siva Chandra
2012-05-07 19:36 ` Eli Zaretskii
2012-05-08 2:35 ` Siva Chandra
2012-05-09 7:35 ` Siva Chandra
2012-05-09 20:05 ` Eli Zaretskii
2012-05-10 21:16 ` Doug Evans
2012-05-11 16:35 ` Siva Chandra
2012-05-11 18:14 ` Doug Evans [this message]
2012-05-13 11:37 ` Siva Chandra
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=CADPb22SQ4zQ2vP+2kTSXT8FMaENZbuNTDNKmEhhpfiGA7ofRjg@mail.gmail.com \
--to=dje@google.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=sivachandra@google.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