[Bug rust/21483] Rust expression evaluation can be really expensive

tromey at sourceware dot org sourceware-bugzilla@sourceware.org
Fri May 12 02:04:00 GMT 2017


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.

More information about the Gdb-prs mailing list