This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/16729] New: wrong tracepoint bytedcode doumentation for rot
- From: "toma.bilius at enea dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 20 Mar 2014 13:38:24 +0000
- Subject: [Bug breakpoints/16729] New: wrong tracepoint bytedcode doumentation for rot
- Auto-submitted: auto-generated
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.