From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5170 invoked by alias); 23 May 2011 15:43:58 -0000 Received: (qmail 5142 invoked by uid 22791); 23 May 2011 15:43:57 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 May 2011 15:43:43 +0000 From: "qiyao at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tdep/12798] New: Failed to pass _Complex args in value X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tdep X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: qiyao at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 23 May 2011 15:43:00 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2011-q2/txt/msg00319.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=12798 Summary: Failed to pass _Complex args in value Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: tdep AssignedTo: unassigned@sourceware.org ReportedBy: qiyao@gcc.gnu.org Host: x86_64-linux Target: x86_64-linux Build: x86_64-linux Created attachment 5748 --> http://sourceware.org/bugzilla/attachment.cgi?id=5748 test case GDB doesn't pass _Complex args in value in a correct way. Here are the steps to reproduce it, $ gcc -g complex-value.c -o complex-value $ ./gdb ./complex-value (gdb) b main Breakpoint 1 at 0x4008b5: file /scratch/yao/complex-value.c, line 58. (gdb) run Starting program: /scratch/yao/gdb_cvs/build-x86_64/gdb/compllex-value Breakpoint 1, main () at /scratch/yao/complex-value.c:58 58 return 0; (gdb) p t_float_complex_values(fc1, fc2) During symbol reading, incomplete CFI data; unspecified registers (e.g., rax) at 0x4008b5. $1 = 0 // <-- wrong. 1 is expected here. (gdb) p t_double_complex_values(dc1, dc2) $2 = 0 // <-- wrong. 1 is expected here. (gdb) p t_long_double_complex_values(ldc1, ldc2) $3 = 1 // <-- correct. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.