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]

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


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


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