From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22275 invoked by alias); 20 Mar 2014 13:38:26 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 22251 invoked by uid 48); 20 Mar 2014 13:38:25 -0000 From: "toma.bilius at enea dot com" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/16729] New: wrong tracepoint bytedcode doumentation for rot Date: Thu, 20 Mar 2014 13:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Version: 7.7 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: toma.bilius at enea dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q1/txt/msg00420.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16729 Bug ID: 16729 Summary: wrong tracepoint bytedcode doumentation for rot Product: gdb Version: 7.7 Status: NEW Severity: normal Priority: P2 Component: breakpoints Assignee: unassigned at sourceware dot org Reporter: toma.bilius at enea dot com The description for rot function from https://sourceware.org/gdb/onlinedocs/gdb/Bytecode-Descriptions.html specifies that rot should do the rotation a b c -> c b a. However, in the implementation (gdb_eval_agent_expr) the rotation is a b c -> c a b Here is the code that does this: case gdb_agent_op_rot: { ULONGEST tem = stack[sp - 1]; stack[sp - 1] = stack[sp - 2]; stack[sp - 2] = top; top = tem; } break; -- You are receiving this mail because: You are on the CC list for the bug.