public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/12783] New: GDB is unable to do inf-call of return type _Complex
@ 2011-05-19  3:16 qiyao at gcc dot gnu.org
  2011-05-31 19:45 ` [Bug gdb/12783] " jan.kratochvil at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: qiyao at gcc dot gnu.org @ 2011-05-19  3:16 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12783

           Summary: GDB is unable to do inf-call of return type _Complex
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: qiyao@gcc.gnu.org


Created attachment 5737
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5737
test case

GDB is unable to do inf-call of return type double _Complex and long double
_Complex.  GDB works well with float _Complex.  Test case complex.c is
attached.

$ gcc -g complex.c -o complex
$ ./gdb complex
(gdb) b main
Breakpoint 1 at 0x80483b7: file complex.c, line 10.
(gdb) run
Starting program: /home/yao/SourceCode/gnu/gdb/build/gdb/complex 

Breakpoint 1, main () at complex.c:10
10      return 0;
(gdb) p return_float_complex (fc)
During symbol reading, incomplete CFI data; unspecified registers (e.g., eax)
at 0x80483b7.
$1 = 1 + 2 * I

[As we can see, gdb works well with float _Complex.]

(gdb) p return_double_complex (dc)

Program received signal SIGSEGV, Segmentation fault.
0x080483f7 in return_double_complex (
    dc=5.3075798043064489e-315 + -1.9970629217568785 * I) at complex.c:22
22      return dc;
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(return_double_complex) will be abandoned.
When the function is done executing, GDB will silently stop.
(gdb) p return_long_double_complex (ldc)

Program received signal SIGSEGV, Segmentation fault.
0x08048413 in return_long_double_complex (
    ldc=2.5653355435634077134800790907094601e-4937 +
2.565355113579378750652245853337455e-4937 * I) at complex.c:28
28      return ldc;
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(return_long_double_complex) will be abandoned.
When the function is done executing, GDB will silently stop.

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/12783] GDB is unable to do inf-call of return type _Complex
  2011-05-19  3:16 [Bug gdb/12783] New: GDB is unable to do inf-call of return type _Complex qiyao at gcc dot gnu.org
@ 2011-05-31 19:45 ` jan.kratochvil at redhat dot com
  2012-10-24 14:56 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-05-31 19:45 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12783

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat
                   |                            |dot com

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/12783] GDB is unable to do inf-call of return type _Complex
  2011-05-19  3:16 [Bug gdb/12783] New: GDB is unable to do inf-call of return type _Complex qiyao at gcc dot gnu.org
  2011-05-31 19:45 ` [Bug gdb/12783] " jan.kratochvil at redhat dot com
@ 2012-10-24 14:56 ` cvs-commit at gcc dot gnu.org
  2012-10-24 14:59 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-10-24 14:56 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12783

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-10-24 14:56:07 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    kettenis@sourceware.org    2012-10-24 14:56:02

Modified files:
    gdb            : ChangeLog i386-tdep.c 

Log message:
    PR gdb/12783
    * i386-tdep.c (i386_return_value): Handle complex double and long
    double.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14752&r2=1.14753
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/i386-tdep.c.diff?cvsroot=src&r1=1.358&r2=1.359

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/12783] GDB is unable to do inf-call of return type _Complex
  2011-05-19  3:16 [Bug gdb/12783] New: GDB is unable to do inf-call of return type _Complex qiyao at gcc dot gnu.org
  2011-05-31 19:45 ` [Bug gdb/12783] " jan.kratochvil at redhat dot com
  2012-10-24 14:56 ` cvs-commit at gcc dot gnu.org
@ 2012-10-24 14:59 ` cvs-commit at gcc dot gnu.org
  2012-10-25  8:01 ` cvs-commit at gcc dot gnu.org
  2012-10-25  8:12 ` kettenis at gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-10-24 14:59 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12783

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-10-24 14:59:27 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    kettenis@sourceware.org    2012-10-24 14:59:24

Modified files:
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.base: callfuncs.exp 

Log message:
    * gdb.base/callfuncs.exp: PR gdb/12783 is now fixed.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3424&r2=1.3425
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/callfuncs.exp.diff?cvsroot=src&r1=1.55&r2=1.56

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/12783] GDB is unable to do inf-call of return type _Complex
  2011-05-19  3:16 [Bug gdb/12783] New: GDB is unable to do inf-call of return type _Complex qiyao at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-10-24 14:59 ` cvs-commit at gcc dot gnu.org
@ 2012-10-25  8:01 ` cvs-commit at gcc dot gnu.org
  2012-10-25  8:12 ` kettenis at gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-10-25  8:01 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12783

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-10-25 08:01:02 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    kettenis@sourceware.org    2012-10-25 08:00:58

Modified files:
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.base: varargs.exp 

Log message:
    * gdb.base/callfuncs.exp: PR gdb/12783 is now fixed.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3428&r2=1.3429
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/varargs.exp.diff?cvsroot=src&r1=1.19&r2=1.20

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/12783] GDB is unable to do inf-call of return type _Complex
  2011-05-19  3:16 [Bug gdb/12783] New: GDB is unable to do inf-call of return type _Complex qiyao at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-10-25  8:01 ` cvs-commit at gcc dot gnu.org
@ 2012-10-25  8:12 ` kettenis at gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: kettenis at gnu dot org @ 2012-10-25  8:12 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12783

Mark Kettenis <kettenis at gnu dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |kettenis at gnu dot org
         Resolution|                            |FIXED

--- Comment #4 from Mark Kettenis <kettenis at gnu dot org> 2012-10-25 08:12:50 UTC ---
Fixed by patch.

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-10-25  8:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-19  3:16 [Bug gdb/12783] New: GDB is unable to do inf-call of return type _Complex qiyao at gcc dot gnu.org
2011-05-31 19:45 ` [Bug gdb/12783] " jan.kratochvil at redhat dot com
2012-10-24 14:56 ` cvs-commit at gcc dot gnu.org
2012-10-24 14:59 ` cvs-commit at gcc dot gnu.org
2012-10-25  8:01 ` cvs-commit at gcc dot gnu.org
2012-10-25  8:12 ` kettenis at gnu dot org

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).