exp/2204: Calling inferior functions returns wrong type on amd64

foobum@gmail.com foobum@gmail.com
Wed Nov 22 23:08:00 GMT 2006


>Number:         2204
>Category:       exp
>Synopsis:       Calling inferior functions returns wrong type on amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 22 23:08:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     foobum@gmail.com
>Release:        6.4
>Organization:
>Environment:
Linux 2.6.16 on amd64, gcc 3.4.4, glibc 2.3.5
>Description:
On amd64 calling a function in the inferior that returns void * gives you back a signed 32 bit value in gdb. I was trying to "call malloc(102400)" and was getting back a truncated, negative integer rather than a valid address.
>How-To-Repeat:
call malloc(102400)
look at returned value
attempt to derefence returned value
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gdb-prs mailing list