public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug rust/24082] call of a function field does not work properly [not found] <bug-24082-4717@http.sourceware.org/bugzilla/> @ 2022-01-25 1:35 ` tromey at sourceware dot org 2022-02-06 20:23 ` cvs-commit at gcc dot gnu.org 2022-02-06 21:05 ` tromey at sourceware dot org 2 siblings, 0 replies; 3+ messages in thread From: tromey at sourceware dot org @ 2022-01-25 1:35 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=24082 Tom Tromey <tromey at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at sourceware dot org |tromey at sourceware dot org --- Comment #1 from Tom Tromey <tromey at sourceware dot org> --- https://sourceware.org/pipermail/gdb-patches/2022-January/185412.html -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug rust/24082] call of a function field does not work properly [not found] <bug-24082-4717@http.sourceware.org/bugzilla/> 2022-01-25 1:35 ` [Bug rust/24082] call of a function field does not work properly tromey at sourceware dot org @ 2022-02-06 20:23 ` cvs-commit at gcc dot gnu.org 2022-02-06 21:05 ` tromey at sourceware dot org 2 siblings, 0 replies; 3+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2022-02-06 20:23 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=24082 --- Comment #2 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=c1f5e54825e4ac2d64b267578fd87409e0ea901c commit c1f5e54825e4ac2d64b267578fd87409e0ea901c Author: Tom Tromey <tom@tromey.com> Date: Mon Jan 24 18:02:38 2022 -0700 Fix Rust parser bug with function fields In Rust, 'obj.f()' is a method call -- but '(obj.f)()' is a call of a function-valued field 'f' in 'obj'. The Rust parser in gdb currently gets this wrong. This is PR rust/24082. The expression and Rust parser rewrites made this simple to fix -- simply wrapping a parenthesized expression in a new operation handles it. This patch has a slight hack because I didn't want to introduce a new exp_opcode enumeration constant just for this. IMO this doesn't matter, since we should work toward removing dependencies on these opcodes anyway; but let me know what you think of this. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=24082 -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug rust/24082] call of a function field does not work properly [not found] <bug-24082-4717@http.sourceware.org/bugzilla/> 2022-01-25 1:35 ` [Bug rust/24082] call of a function field does not work properly tromey at sourceware dot org 2022-02-06 20:23 ` cvs-commit at gcc dot gnu.org @ 2022-02-06 21:05 ` tromey at sourceware dot org 2 siblings, 0 replies; 3+ messages in thread From: tromey at sourceware dot org @ 2022-02-06 21:05 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=24082 Tom Tromey <tromey at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |12.1 Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #3 from Tom Tromey <tromey at sourceware dot org> --- Fixed. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-06 21:05 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-24082-4717@http.sourceware.org/bugzilla/> 2022-01-25 1:35 ` [Bug rust/24082] call of a function field does not work properly tromey at sourceware dot org 2022-02-06 20:23 ` cvs-commit at gcc dot gnu.org 2022-02-06 21:05 ` tromey at sourceware dot org
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).