From: Phil Muldoon <pmuldoon@redhat.com>
To: Keith Seitz <keiths@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] python/19506 -- gdb.Breakpoint address location regression
Date: Wed, 27 Jan 2016 15:36:00 -0000 [thread overview]
Message-ID: <56A8E3F0.3080807@redhat.com> (raw)
In-Reply-To: <1453413926-24995-1-git-send-email-keiths@redhat.com>
On 21/01/16 22:05, Keith Seitz wrote:
> When the locations API was committed, it assumed that all valid > arguments to the gdb.Breakpoint command were a linespec (aside from > keywords describing various breakpoint properties). However, address > locations are a separate class of locations which were overlooked by my > patch. > > This patch introduces a new function analogous to the CLI function > string_to_event_location. This new function only handles address and > linespec locations. I have made no attempt to fully implement explicit > locations. > > This patch fixes python/19506: > > (gdb) python gdb.Breakpoint("*main") > Traceback (most recent call last): > File "<string>", line 1, in <module> > RuntimeError: Function "*main" not defined. > Error while executing Python code. > > Now: > > (gdb) python gdb.Breakpoint("*main") > Breakpoint 1 at 0x4005fb: file ../../../src/gdb/testsuite/gdb.python/py-breakpoint.c, line 32. > > gdb/ChangeLog > > * python/py-breakpoint.c (python_string_to_event_location): New > function. > (bppy_init): Use
python_string_to_event_location instead of > new_linespec_location. > > gdb/testsuite/gdb.python > > * gdb.python/py-breakpoint.exp (test_bkpt_address): New proc. > (toplevel): Call test_bkpt_address.
It looks fine to me, Keith, beyond the further musings of linespec
that follows earlier in the thread and you end up proceeding in this
direction.
Cheers
Phil
prev parent reply other threads:[~2016-01-27 15:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-21 22:05 Keith Seitz
2016-01-26 12:23 ` Joel Brobecker
2016-01-27 1:11 ` Keith Seitz
2016-02-01 3:33 ` Joel Brobecker
2016-02-01 20:26 ` Keith Seitz
2016-01-27 15:36 ` Phil Muldoon [this message]
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=56A8E3F0.3080807@redhat.com \
--to=pmuldoon@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=keiths@redhat.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