From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: jan.kratochvil@redhat.com (Jan Kratochvil)
Cc: brobecker@adacore.com (Joel Brobecker), gdb-patches@sourceware.org
Subject: Regression on PowerPC (Re: [patch] Fix gdb.cp/gdb2495.exp regression with gcc-4.7 #3)
Date: Tue, 03 Jan 2012 14:45:00 -0000 [thread overview]
Message-ID: <201201031444.q03Eir77009359@d06av02.portsmouth.uk.ibm.com> (raw)
In-Reply-To: <20120102025758.GA20654@host2.jankratochvil.net> from "Jan Kratochvil" at Jan 02, 2012 03:57:58 AM
Jan Kratochvil wrote:
> On Mon, 02 Jan 2012 03:45:32 +0100, Joel Brobecker wrote:
> > and maybe this one. For yours, there's been enough
> > scrutiny I think that it can go in I think that it can go in already.
>
> Checked in:
> http://sourceware.org/ml/gdb-cvs/2012-01/msg00013.html
> Checked in 7.4:
> http://sourceware.org/ml/gdb-cvs/2012-01/msg00014.html
This seems to have caused
FAIL: gdb.cp/gdb2495.exp: Call a function that raises an exception without a handler. (timeout)
FAIL: gdb.cp/gdb2495.exp: bt after returning from a popped frame (timeout)
FAIL: gdb.cp/gdb2495.exp: info breakpoints (timeout)
FAIL: gdb.cp/gdb2495.exp: (timeout) set unwind-on-terminating-exception off
FAIL: gdb.cp/gdb2495.exp: Turn off unwind on terminating exception flag (timeout)
FAIL: gdb.cp/gdb2495.exp: Call a function that raises an exception with unwinding off.. (timeout)
ERROR: Delete all breakpoints in delete_breakpoints (timeout)
UNRESOLVED: gdb.cp/gdb2495.exp: setting breakpoint at main (timeout)
on powerpc-linux and powerpc64-linux.
I think the problem is that your statement as of here:
"_start at least on GNU/Linux does not have .eh_frame FDE for itself."
(http://sourceware.org/ml/gdb-patches/2011-12/msg00873.html)
is actually not true on PowerPC (at least on my RHEL5 system):
[uweigand@cellntc3 ~]$ readelf -wf /usr/lib64/crt1.o
The section .eh_frame contains:
00000000 00000010 00000000 CIE
Version: 1
Augmentation: "zR"
Code alignment factor: 4
Data alignment factor: -8
Return address column: 65
Augmentation data: 1b
DW_CFA_def_cfa: r1 ofs 0
00000014 00000010 00000018 FDE cie=00000000 pc=00000000..00000024
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
When the unwinder runs into this FDE and assumes it is valid for the
dummy frame, it goes into an endless loop ...
Switching to the ON_STACK method fixes this for me. But I'm not sure
if there are other platforms beside PowerPC that have the same problem ...
Maybe we ought to default to ON_STACK (at least on Linux?)?
Note that it's a bit annoying that we need to provide a push_dummy_code
routine in order to be able to use ON_STACK. Maybe there should be a
default implementation based on gdbarch_inner_than/gdbarch_frame_align_p
and the breakpoint length?
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
next prev parent reply other threads:[~2012-01-03 14:45 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-22 20:49 [patch] Fix gdb.cp/gdb2495.exp regression with gcc-4.7 Jan Kratochvil
2011-12-27 6:23 ` Joel Brobecker
2011-12-28 16:30 ` Jan Kratochvil
2011-12-28 18:47 ` [patch] Fix gdb.cp/gdb2495.exp regression with gcc-4.7 #2 Jan Kratochvil
2011-12-28 20:40 ` Mark Kettenis
2011-12-30 2:45 ` [patch] Fix gdb.cp/gdb2495.exp regression with gcc-4.7 #3 Jan Kratochvil
2011-12-30 8:46 ` Joel Brobecker
2011-12-30 11:11 ` Mark Kettenis
2011-12-30 14:16 ` Jan Kratochvil
2011-12-31 2:56 ` Peter Schauer
2011-12-30 11:25 ` Jan Kratochvil
2012-01-01 22:22 ` Jan Kratochvil
2012-01-02 2:45 ` Joel Brobecker
2012-01-02 2:58 ` Jan Kratochvil
2012-01-03 14:45 ` Ulrich Weigand [this message]
2012-01-03 15:52 ` Regression on PowerPC (Re: [patch] Fix gdb.cp/gdb2495.exp regression with gcc-4.7 #3) Joel Brobecker
2012-01-04 14:01 ` [revert] " Jan Kratochvil
2012-01-04 14:09 ` Joel Brobecker
2012-03-08 23:24 ` [patch] Fix gdb.cp/gdb2495.exp regression with gcc-4.7 #4 [Re: [revert] Regression on PowerPC] Jan Kratochvil
2012-03-09 7:22 ` cancel: " Jan Kratochvil
2012-01-02 14:10 ` [patch] Fix gdb.cp/gdb2495.exp regression with gcc-4.7 Pedro Alves
2012-01-02 14:20 ` Jan Kratochvil
2012-01-02 14:44 ` Pedro Alves
2012-01-02 14:53 ` Jan Kratochvil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201201031444.q03Eir77009359@d06av02.portsmouth.uk.ibm.com \
--to=uweigand@de.ibm.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox