public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tdep/12797] New: GDB is unable to do inf-call of return type _Complex on armv7l-unknown-linux-gnueabi
@ 2011-05-23 14:30 qiyao at gcc dot gnu.org
  2011-12-21 21:13 ` [Bug tdep/12797] " cvs-commit at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: qiyao at gcc dot gnu.org @ 2011-05-23 14:30 UTC (permalink / raw)
  To: gdb-prs

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

           Summary: GDB is unable to do inf-call of return type _Complex
                    on armv7l-unknown-linux-gnueabi
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tdep
        AssignedTo: unassigned@sourceware.org
        ReportedBy: qiyao@gcc.gnu.org
              Host: armv7l-unknown-linux-gnueabi
            Target: armv7l-unknown-linux-gnueabi
             Build: armv7l-unknown-linux-gnueabi


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

inferior gets SEGV when gdb does inf-call of returning _Complex
{float|double|long double}.

$ gcc -marm -g ~/complex-ret.c -o complex-ret
$ ./gdb ./complex-ret
(gdb) b main
Breakpoint 1 at 0x8368: file /home/yao/complex-ret.c, line 9.
(gdb) run
Starting program: /home/yao/gdb/gdb-fsf-git/build/gdb/complex-ret

Breakpoint 1, main () at /home/yao/complex-ret.c:9
9         return 0;
(gdb) p return_double_complex (dc)
During symbol reading, incomplete CFI data; unspecified registers (e.g., r0) at
0x8368.

Program received signal SIGSEGV, Segmentation fault.
0x000083d0 in return_double_complex (dc=4 + 1.146232298351692e-321 * I) at
/home/yao/complex-ret.c:21
21        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_float_complex (fc)

Program received signal SIGSEGV, Segmentation fault.
0x00008398 in return_float_complex (fc=2 + 0 * I) at /home/yao/complex-ret.c:15
15        return fc;
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_float_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.
0x0000840c in return_long_double_complex (ldc=6 + 4.2991634724961358e-311 * I)
at /home/yao/complex-ret.c:27
27        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] 5+ messages in thread

* [Bug tdep/12797] GDB is unable to do inf-call of return type _Complex on armv7l-unknown-linux-gnueabi
  2011-05-23 14:30 [Bug tdep/12797] New: GDB is unable to do inf-call of return type _Complex on armv7l-unknown-linux-gnueabi qiyao at gcc dot gnu.org
@ 2011-12-21 21:13 ` cvs-commit at gcc dot gnu.org
  2011-12-21 21:17 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2011-12-21 21:13 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2011-12-21 21:13:23 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    uweigand@sourceware.org    2011-12-21 21:13:16

Modified files:
    gdb            : ChangeLog arm-tdep.c 
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.base: callfuncs.exp 

Log message:
    gdb/
    PR tdep/12797
    * arm-tdep.c (arm_return_value): Handle complex types.

    gdb/testsuite/
    PR tdep/12797
    * gdb.base/callfuncs.exp: Remove KFAIL.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13657&r2=1.13658
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/arm-tdep.c.diff?cvsroot=src&r1=1.354&r2=1.355
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2996&r2=1.2997
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/callfuncs.exp.diff?cvsroot=src&r1=1.46&r2=1.47

-- 
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] 5+ messages in thread

* [Bug tdep/12797] GDB is unable to do inf-call of return type _Complex on armv7l-unknown-linux-gnueabi
  2011-05-23 14:30 [Bug tdep/12797] New: GDB is unable to do inf-call of return type _Complex on armv7l-unknown-linux-gnueabi qiyao at gcc dot gnu.org
  2011-12-21 21:13 ` [Bug tdep/12797] " cvs-commit at gcc dot gnu.org
@ 2011-12-21 21:17 ` cvs-commit at gcc dot gnu.org
  2011-12-21 21:30 ` uweigand at gcc dot gnu.org
  2011-12-21 21:31 ` uweigand at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2011-12-21 21:17 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2011-12-21 21:16:16 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Branch:     gdb_7_4-branch
Changes by:    uweigand@sourceware.org    2011-12-21 21:16:13

Modified files:
    gdb            : ChangeLog arm-tdep.c 
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.base: callfuncs.exp 

Log message:
    gdb/
    PR tdep/12797
    * arm-tdep.c (arm_return_value): Handle complex types.

    gdb/testsuite/
    PR tdep/12797
    * gdb.base/callfuncs.exp: Remove KFAIL.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_4-branch&r1=1.13614.2.18&r2=1.13614.2.19
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/arm-tdep.c.diff?cvsroot=src&only_with_tag=gdb_7_4-branch&r1=1.354&r2=1.354.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_4-branch&r1=1.2978.2.2&r2=1.2978.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/callfuncs.exp.diff?cvsroot=src&only_with_tag=gdb_7_4-branch&r1=1.46&r2=1.46.2.1

-- 
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] 5+ messages in thread

* [Bug tdep/12797] GDB is unable to do inf-call of return type _Complex on armv7l-unknown-linux-gnueabi
  2011-05-23 14:30 [Bug tdep/12797] New: GDB is unable to do inf-call of return type _Complex on armv7l-unknown-linux-gnueabi qiyao at gcc dot gnu.org
  2011-12-21 21:13 ` [Bug tdep/12797] " cvs-commit at gcc dot gnu.org
  2011-12-21 21:17 ` cvs-commit at gcc dot gnu.org
@ 2011-12-21 21:30 ` uweigand at gcc dot gnu.org
  2011-12-21 21:31 ` uweigand at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: uweigand at gcc dot gnu.org @ 2011-12-21 21:30 UTC (permalink / raw)
  To: gdb-prs

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

Ulrich Weigand <uweigand at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |uweigand at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #3 from Ulrich Weigand <uweigand at gcc dot gnu.org> 2011-12-21 21:29:51 UTC ---
Fixed.

-- 
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] 5+ messages in thread

* [Bug tdep/12797] GDB is unable to do inf-call of return type _Complex on armv7l-unknown-linux-gnueabi
  2011-05-23 14:30 [Bug tdep/12797] New: GDB is unable to do inf-call of return type _Complex on armv7l-unknown-linux-gnueabi qiyao at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-12-21 21:30 ` uweigand at gcc dot gnu.org
@ 2011-12-21 21:31 ` uweigand at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: uweigand at gcc dot gnu.org @ 2011-12-21 21:31 UTC (permalink / raw)
  To: gdb-prs

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

Ulrich Weigand <uweigand at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at sourceware    |uweigand at gcc dot gnu.org
                   |dot org                     |

-- 
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] 5+ messages in thread

end of thread, other threads:[~2011-12-21 21:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-23 14:30 [Bug tdep/12797] New: GDB is unable to do inf-call of return type _Complex on armv7l-unknown-linux-gnueabi qiyao at gcc dot gnu.org
2011-12-21 21:13 ` [Bug tdep/12797] " cvs-commit at gcc dot gnu.org
2011-12-21 21:17 ` cvs-commit at gcc dot gnu.org
2011-12-21 21:30 ` uweigand at gcc dot gnu.org
2011-12-21 21:31 ` uweigand at gcc dot gnu.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).