From: Richard Henderson <rth@twiddle.net>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] Use the GDB JIT debugging interface
Date: Mon, 19 Mar 2012 13:48:09 -0700 [thread overview]
Message-ID: <4F679B89.4000002@twiddle.net> (raw)
In-Reply-To: <CAFEAcA80Tq5f0ZYNh2=2MutvvR10or_Lh=3QN=jyNwB-8TjPtQ@mail.gmail.com>
On 03/19/12 13:08, Peter Maydell wrote:
> In system mode I get a backtrace like this:
>
> (gdb) bt
> #0 helper_set_cp15 (env=0x80b41500, insn=3993505559, val=0) at
> /home/pm215/src/qemu/qemu/target-arm/helper.c:1455
> #1 0x0101983d in ?? ()
>
> ...is it possible to put in a useful string to replace that '??'
> in line #1?
I'm not sure. Maybe, with some more effort.
GDB seems to be ignoring the elf-level symbol table, but reading
the dwarf info. So it would be possible to add a minimal debug_info
section as well. "Minimal" is irritatingly large though...
> Any chance of some comments describing (a) what the limited debug
> info does and what this does/doesn't support? [for instance it
> doesn't seem to support doing a gdb backtrace while you're inside
> the code_gen_prologue code] and (b) what the cpu-specific tcg backend
> code needs to do/provide to support this?
Putting this in tcg.c, perhaps? Sure.
You're right that I don't try to handle code_gen_prologue.
Getting that right is more difficult. Of course, I doubt
we need to auto-generate the prologue code *at all*. Some
statically generated assembler would do just as well, at
which point we *could* add .cfi directives to handle that code.
All the cpu-specific tcg backend needs to do is provide the
contents of a .debug_frame section that describes the steady-
state frame established by the prologue. Since the entire
code_gen_buffer uses this same frame, the unwind is fixed for
the entire buffer.
r~
prev parent reply other threads:[~2012-03-19 20:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-19 19:25 [Qemu-devel] [PATCH v2] Use the GDB JIT debugging interface Richard Henderson
2012-03-19 19:25 ` [Qemu-devel] [PATCH] tcg: " Richard Henderson
2012-03-24 16:11 ` Blue Swirl
2012-03-24 17:04 ` Peter Maydell
2012-03-19 20:08 ` [Qemu-devel] [PATCH v2] " Peter Maydell
2012-03-19 20:48 ` Richard Henderson [this message]
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=4F679B89.4000002@twiddle.net \
--to=rth@twiddle.net \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).