From: Richard Smith <richard@ex-parrot.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb@sourceware.org
Subject: Re: Backtraces broken on i386 by unorthodox encoding of push %ebp
Date: Sat, 30 Mar 2013 21:03:00 -0000 [thread overview]
Message-ID: <alpine.LRH.2.02.1303302037420.2445@sphinx.mythic-beasts.com> (raw)
In-Reply-To: <20130330195008.GA11994@host2.jankratochvil.net>
Jan Kratochvil wrote:
> You should always provide unwind information and then it is irrelevant which
> instructions and/or which their coding you use.
Yes, you're right, I could quite easily. But a design
criterion for this project is that it is easy for
third-parties to produce backtraces from production code
(i.e. once debugging information has been stripped).
I think on balance, I should just fix the prologue to use
the one-byte push instruction. (My reluctance to do that
was because the in question code is just-in-time compiled
code produced by a lightweight compiler/assembler that says
resident in memory. I'm not keen to change the assembler
component from the upstream version as the change to fix it
looks more intrusive than you might imagine.)
Joel Brobecker wrote:
> But if he cannot get the unwind information with the
> binary, it might indeed be easy enough to improve the
> prologue analyzer for x86. On x86_64, on the other hand,
> we made the conscious design decision to rely more on
> unwind info, so it's a little more questionable whether
> we'd want to do that for this target.
>
> The thing I wanted to add to Richard is that there is a
> very high chance that the only way to get this fixed in
> GDB is by submitting a patch himself (to gdb-patches).
I'll certainly take a look at it to see if it's as
straightforward as it seems.
However, I expect the same problem will arise on x86_64, and
I can understand not wanting to complicate unnecessarily its
prologue analyzer.
Richard
next prev parent reply other threads:[~2013-03-30 21:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-30 19:13 Richard Smith
2013-03-30 19:50 ` Jan Kratochvil
2013-03-30 20:07 ` Joel Brobecker
2013-03-30 21:03 ` Richard Smith [this message]
2013-03-30 23:53 ` Mike Frysinger
2013-03-31 5:48 ` 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=alpine.LRH.2.02.1303302037420.2445@sphinx.mythic-beasts.com \
--to=richard@ex-parrot.com \
--cc=gdb@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