This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
symtab/1539: Invalid cast when calling a function with struct args on 32-bit SPARC
- From: kettenis at gnu dot org
- To: gdb-gnats at sources dot redhat dot com
- Date: 31 Jan 2004 13:41:52 -0000
- Subject: symtab/1539: Invalid cast when calling a function with struct args on 32-bit SPARC
- Reply-to: kettenis at gnu dot org
>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: