public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/13079] New: i386-linux needs to implement frame_align, dfp-test.exp fails with recent gccs
@ 2011-08-12 17:04 dje at google dot com
  2011-09-23 15:04 ` [Bug gdb/13079] " cvs-commit at gcc dot gnu.org
  2012-02-07 20:37 ` tromey at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: dje at google dot com @ 2011-08-12 17:04 UTC (permalink / raw)
  To: gdb-prs

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

             Bug #: 13079
           Summary: i386-linux needs to implement frame_align,
                    dfp-test.exp fails with recent gccs
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dje@google.com
    Classification: Unclassified


dfp-test.exp is failing with recent gccs, i386-linux.
This is because gcc now optimizes frame alignment of leaf functions,
which matters for functions that use sse.
[and this isn't linux specific of course]

$ gdb -nx testsuite/gdb.base/dfp-test
[...]
(gdb) b arg0_128
Breakpoint 1 at 0x8048541: file ../../../src/gdb/testsuite/gdb.base/dfp-test.c,
line 123.
(gdb) r
Starting program:
/g3/gnu/sourceware/pure-gdb/build/obj64/gdb/testsuite/gdb.base/dfp-test

Breakpoint 1, arg0_128 (arg0=0.1, arg1=1.0, arg2=2.0, arg3=3.0, arg4=4.0,
    arg5=5.0) at ../../../src/gdb/testsuite/gdb.base/dfp-test.c:123
123       return arg0;
(gdb) p/x $sp
$1 = 0xffffd468
(gdb) call arg0_128 (1.2dl, 2.2dl, 3.2dl, 4.2dl, 5.2dl, 6.2dl)

Breakpoint 1, arg0_128 (arg0=1.2, arg1=2.2, arg2=3.2, arg3=4.2, arg4=5.2,
    arg5=6.2) at ../../../src/gdb/testsuite/gdb.base/dfp-test.c:123
123       return arg0;
The program being debugged stopped while in a function called from GDB.
Evaluation of the expression containing the function
(arg0_128) will be abandoned.
When the function is done executing, GDB will silently stop.
(gdb) fin
Run till exit from #0  arg0_128 (arg0=1.2, arg1=2.2, arg2=3.2, arg3=4.2,
    arg4=5.2, arg5=6.2) at ../../../src/gdb/testsuite/gdb.base/dfp-test.c:123

Program received signal SIGSEGV, Segmentation fault.
0x08048544 in arg0_128 (arg0=1.2, arg1=2.2, arg2=3.2, arg3=4.2, arg4=5.2,
    arg5=6.2) at ../../../src/gdb/testsuite/gdb.base/dfp-test.c:123
123       return arg0;
(gdb) x/i $pc
=> 0x8048544 <arg0_128+6>:      movaps 0x18(%ebp),%xmm0
(gdb) p/x $ebp
$2 = 0xffffd3e0
(gdb) disas
Dump of assembler code for function arg0_128:
   0x0804853e <+0>:     push   %ebp
   0x0804853f <+1>:     mov    %esp,%ebp
   0x08048541 <+3>:     mov    0x8(%ebp),%eax
=> 0x08048544 <+6>:     movaps 0x18(%ebp),%xmm0
   0x08048548 <+10>:    movaps %xmm0,(%eax)
   0x0804854b <+13>:    mov    0x8(%ebp),%eax
   0x0804854e <+16>:    pop    %ebp
   0x0804854f <+17>:    ret    $0x4
End of assembler dump.
(gdb)

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

* [Bug gdb/13079] i386-linux needs to implement frame_align, dfp-test.exp fails with recent gccs
  2011-08-12 17:04 [Bug gdb/13079] New: i386-linux needs to implement frame_align, dfp-test.exp fails with recent gccs dje at google dot com
@ 2011-09-23 15:04 ` cvs-commit at gcc dot gnu.org
  2012-02-07 20:37 ` tromey at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2011-09-23 15:04 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2011-09-23 14:50:38 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    jsm28@sourceware.org    2011-09-23 14:50:31

Modified files:
    gdb            : ChangeLog i386-tdep.c 

Log message:
    PR gdb/13079
    * i386-tdep.c (i386_frame_align): New.
    (i386_gdbarch_init): Use i386_frame_align.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13359&r2=1.13360
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/i386-tdep.c.diff?cvsroot=src&r1=1.336&r2=1.337

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

* [Bug gdb/13079] i386-linux needs to implement frame_align, dfp-test.exp fails with recent gccs
  2011-08-12 17:04 [Bug gdb/13079] New: i386-linux needs to implement frame_align, dfp-test.exp fails with recent gccs dje at google dot com
  2011-09-23 15:04 ` [Bug gdb/13079] " cvs-commit at gcc dot gnu.org
@ 2012-02-07 20:37 ` tromey at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2012-02-07 20:37 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |tromey at redhat dot com
         Resolution|                            |FIXED
   Target Milestone|---                         |7.4

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2012-02-07 20:36:15 UTC ---
Fix committed a while ago.

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

end of thread, other threads:[~2012-02-07 20:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-12 17:04 [Bug gdb/13079] New: i386-linux needs to implement frame_align, dfp-test.exp fails with recent gccs dje at google dot com
2011-09-23 15:04 ` [Bug gdb/13079] " cvs-commit at gcc dot gnu.org
2012-02-07 20:37 ` tromey at redhat dot com

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