From: Christopher Faylor <cgf@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFC] Try to enhanced backtrace on i386 machines.
Date: Mon, 03 Dec 2001 12:35:00 -0000 [thread overview]
Message-ID: <20011203203510.GB10437@redhat.com> (raw)
In-Reply-To: <4.2.0.58.20011203112721.01921430@ics.u-strasbg.fr>
On Mon, Dec 03, 2001 at 11:28:07AM +0100, Pierre Muller wrote:
>GCC for i386 does several optimization to allow correct pairing of
>instructions.
>
>This leads in particular to mix loading of constants into registers
>with usual prologue instructions.
>
>The major effect is that the backtrace shows some 'pseudo' trace
>levels, which are due to a failure to get the correct prologue. One of
>the nastiest effect of this is that if you use 'return' on that
>function, it sets a temporary breakpoint on a wrong location and you
>program continues without stopping when frame is left.
>
>I started to implement some code that tries to deal with that issue.
>Its far from perfect, but it gives already some result (when debugging
>GDB with itself compiled with -O2, it reduces the number of those false
>frame levels).
>
>This code might probably be used at several other position.
>
>All comments and suggestions welcome.
It would be nice to improve backtraces on x86. What would really be
wonderful is to do this with frame pointerless functions.
Regarding your implementation, I wonder if it would be better to define
the opcodes as constants in the opcodes directory and use the defines in
both the opcodes and gdb directories? I realize that it is more work
but it seems like we've already got most of the information in this
directory.
cgf
next prev parent reply other threads:[~2001-12-03 20:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-03 2:27 Pierre Muller
2001-12-03 12:35 ` Christopher Faylor [this message]
2001-12-04 7:34 ` Pierre Muller
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=20011203203510.GB10437@redhat.com \
--to=cgf@redhat.com \
--cc=gdb-patches@sources.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