From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Mark Kettenis <mark.kettenis@xs4all.nl>, gdb-patches@sourceware.org
Subject: Re: ping: [patch 1/2] Fix gdb.cp/gdb2495.exp regression with gcc-4.7 #5
Date: Mon, 11 Jun 2012 19:41:00 -0000 [thread overview]
Message-ID: <20120611194037.GA32003@host2.jankratochvil.net> (raw)
In-Reply-To: <20120611192459.GM2687@adacore.com>
On Mon, 11 Jun 2012 21:24:59 +0200, Joel Brobecker wrote:
> 1. Ignore the initial regression, and release with it
This is not good, this regresses a nice C++ fixup by Tom.
> 2. Revert the patch that caused the regression. I can't remember
> which patch that was, and whether it would "unsolve" an important
> issue.
The regression is due to binutils fix by Jakub Jelinek:
http://sourceware.org/bugzilla/show_bug.cgi?id=12570
There is nothing to revert. The original assumption _start has no unwind info
was just wrong. Moreover there was a bug that it relied upon the fact that
.plt has no unwind info. But after fixing it to make it really _start (and
not .plt) some archs (ppc IIRC) has unwind info even for _start.
> 3. Ignore the side-effect/regression caused by this fix, and fix
> it later
Yes, I find it a viable alternative.
> 4. Delay the release in order to implement setjmp handling.
I already tried to implement it once but somehow did not finish it. I do no
like much that even the longjmps tracking is not a perfect solution.
It would be best to find some other safe place where to put a breakpoint.
Maybe to override the address choosing in i386-linux-tdep.c and reuse return
address to _start? Therefore to put breakpoint at 0x7fffffffda58 (+ 7):
Dump of assembler code for function _start:
0x0000000000489560 <+0>: xor %ebp,%ebp
[...]
0x0000000000489584 <+36>: callq 0x488180 <__libc_start_main@plt>
=> 0x0000000000489589 <+41>: hlt
0x000000000048958a <+42>: xchg %ax,%ax
0x000000000048958c <+44>: nopl 0x0(%rax)
(gdb) x/gx 0x7fffffffda58
0x7fffffffda58: 0x0000000000489589
Thanks,
Jan
next prev parent reply other threads:[~2012-06-11 19:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-09 21:01 Jan Kratochvil
2012-03-26 19:04 ` ping: " Jan Kratochvil
2012-03-26 19:53 ` Mark Kettenis
2012-03-26 20:32 ` Jan Kratochvil
2012-03-26 21:45 ` Mark Kettenis
2012-03-27 8:15 ` Jan Kratochvil
2012-06-11 15:22 ` Joel Brobecker
2012-06-11 16:09 ` Jan Kratochvil
2012-06-11 19:25 ` Joel Brobecker
2012-06-11 19:41 ` Jan Kratochvil [this message]
2012-06-11 19:51 ` Jan Kratochvil
2012-06-13 15:01 ` Joel Brobecker
2012-06-13 15:03 ` 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=20120611194037.GA32003@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=mark.kettenis@xs4all.nl \
/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