This is the mail archive of the gdb-prs@sources.redhat.com 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]

symtab/1539: Invalid cast when calling a function with struct args on 32-bit SPARC


>Number:         1539
>Category:       symtab
>Synopsis:       Invalid cast when calling a function with struct args on 32-bit SPARC
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 31 13:48:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Mark Kettenis <kettenis@gnu.org>
>Release:        6.0
>Organization:
>Environment:
sparc-*-*
>Description:
SPARC passes structure arguments by reference.  For stabs, the debug information does convey this information in a rather peculiar way, which we deal with by changing the type of the argument to pointer-to-struct.  This isn't right of course, since it has all sorts of side effects.  One of these side-effects is that passing such an argument to another function doesn't work; GDB prints:

"Invalid cast"
>How-To-Repeat:
Run the testsuite:

FAIL: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list (pattern 1)
>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]