public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/30576] New: "Too few arguments in function call." when trying to print function return values bigger than 16 bytes
@ 2023-06-22 8:40 sourceware at cy dot md
0 siblings, 0 replies; only message in thread
From: sourceware at cy dot md @ 2023-06-22 8:40 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30576
Bug ID: 30576
Summary: "Too few arguments in function call." when trying to
print function return values bigger than 16 bytes
Product: gdb
Version: 13.1
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: d
Assignee: unassigned at sourceware dot org
Reporter: sourceware at cy dot md
CC: ibuclaw at gdcproject dot org
Target Milestone: ---
If an extern(C) function in a D program has a return value larger than 16
bytes, trying to call it and print its return value from gdb results in the
error message "Too few arguments in function call.".
Reproducer:
cat > bug.d <<EOF
extern(C) auto a() { return (ubyte[16]).init; }
extern(C) auto b() { return (ubyte[17]).init; }
void main(){}
EOF
dmd -g bug
gdb -ex start \
-ex 'echo === a() ===\n' \
-ex 'p a()' \
-ex 'echo === b() ===\n' \
-ex 'p b()' \
-ex 'stop' \
-ex 'quit' \
./bug
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-22 8:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-22 8:40 [Bug d/30576] New: "Too few arguments in function call." when trying to print function return values bigger than 16 bytes sourceware at cy dot md
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).