This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug rust/21483] Rust expression evaluation can be really expensive
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 11 May 2017 20:34:00 +0000
- Subject: [Bug rust/21483] Rust expression evaluation can be really expensive
- Auto-submitted: auto-generated
- References: <bug-21483-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21483
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
Assignee|unassigned at sourceware dot org |tromey at sourceware dot org
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I think the problem is here:
/* Field access in structs and untagged unions works like C. */
*pos = pc;
result = evaluate_subexp_standard (expect_type, exp, pos, noside);
This re-evaluates the particular subexpression again.
This means an explosion when the LHS itself does this.
--
You are receiving this mail because:
You are on the CC list for the bug.