This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
exp/2204: Calling inferior functions returns wrong type on amd64
- From: foobum at gmail dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 22 Nov 2006 23:01:05 -0000
- Subject: exp/2204: Calling inferior functions returns wrong type on amd64
- Reply-to: foobum at gmail dot com
>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: