This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

pascal/2471: Wrong evaluation of functions with pascal calling convention


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]