public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug python/27000] gdb.block_for_pc should accept a gdb.Value argument Date: Fri, 08 Jul 2022 20:28:53 +0000 [thread overview] Message-ID: <bug-27000-4717-6tQpX6ZojH@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-27000-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=27000 --- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tom Tromey <tromey@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d19ca0b35c9536210c5e8bd30504489b7439f51f commit d19ca0b35c9536210c5e8bd30504489b7439f51f Author: Tom Tromey <tom@tromey.com> Date: Sun Jun 5 07:42:12 2022 -0600 Accept gdb.Value in more Python APIs PR python/27000 points out that gdb.block_for_pc will accept a Python integer, but not a gdb.Value. This patch corrects this oversight. I looked at all uses of GDB_PY_LLU_ARG and fixed these up to use get_addr_from_python instead. I also looked at uses of GDB_PY_LL_ARG, but those seemed relatively unlikely to be useful with a gdb.Value, so I didn't change them. My thinking here is that a Value will typically come from inferior memory, and something like a line number is not too likely to be found this way. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=27000 -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2022-07-08 20:28 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-12-02 21:03 [Bug python/27000] New: " jwakely.gcc at gmail dot com 2020-12-02 21:18 ` [Bug python/27000] " jwakely.gcc at gmail dot com 2020-12-02 21:24 ` tromey at sourceware dot org 2022-06-04 16:59 ` tromey at sourceware dot org 2022-06-05 13:42 ` tromey at sourceware dot org 2022-07-08 20:28 ` cvs-commit at gcc dot gnu.org [this message] 2022-07-08 20:29 ` tromey at sourceware dot org
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=bug-27000-4717-6tQpX6ZojH@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /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: linkBe 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; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).