qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Translation block identification.


From: Rafael Kioji
Subject: Re: [Qemu-devel] Translation block identification.
Date: Tue, 1 May 2018 18:47:13 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

Solved. The reason I was not able to get the symbols is because logging has to be enabled, otherwise the symbols are not loaded. In "elfload.c" there is the condition:

if (qemu_log_enabled()) {
    load_symbols(ehdr, image_fd, load_bias);
}

Thanks!

Kind regards,
Rafael

On 5/1/2018 6:28 PM, Peter Maydell wrote:
On 1 May 2018 at 11:20, Rafael Kioji <address@hidden> wrote:
This logging flag prints what I want. But I really wanted is to get this
info inside the QEMU source code. Why am I not able to lookup the symbols in
the translator.c file the way I showed?
The -d in_asm logging is just using lookup_symbol() (eg for arm
I think it's in arm_tr_disas_log() that that particular logging
is done), so if it works when it's called by the existing QEMU code
but not in your modification then it sounds like there's an
error in your modification somewhere.

thanks
-- PMM




reply via email to

[Prev in Thread] Current Thread [Next in Thread]