This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
pascal/2471: Wrong evaluation of functions with pascal calling convention
- From: _tom_ at centrum dot cz
- To: gdb-gnats at sources dot redhat dot com
- Date: 23 Jun 2008 13:08:31 -0000
- Subject: pascal/2471: Wrong evaluation of functions with pascal calling convention
- Reply-to: _tom_ at centrum dot cz
>Number: 2471
>Category: pascal
>Synopsis: Wrong evaluation of functions with pascal calling convention
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Jun 23 13:18:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: _tom_@centrum.cz
>Release: GNU gdb 6.6
>Organization:
>Environment:
Windows XP
"i686-pc-mingw32"
>Description:
GDB evaluates function with pascal calling convention (http://en.wikipedia.org/wiki/X86_calling_conventions#pascal) wrongly. I think the problem is in opposite stack filling order.
>How-To-Repeat:
Run gdb with integers program from gdb pascal test suite.
e.g. sum(1, 1) returns 8
e.g. sub(1, 1) returns 2
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: