This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Missing test cases for jit-reader interface
- From: Andy Wingo <wingo at igalia dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>
- Cc: gdb-patches at sourceware dot org, jan dot kratochvil at redhat dot com, sanjoyd at sourceware dot org
- Date: Thu, 26 Feb 2015 10:02:40 +0100
- Subject: Re: Missing test cases for jit-reader interface
- Authentication-results: sourceware.org; auth=none
- References: <87oaolx6xy dot fsf at igalia dot com> <87k2z8ydq4 dot fsf at igalia dot com> <86y4nmvvme dot fsf at gmail dot com> <87egpeufib dot fsf at igalia dot com> <54EE4EFD dot 3060406 at gmail dot com>
On Wed 25 Feb 2015 23:38, Yao Qi <qiyaoltc@gmail.com> writes:
>>>> >> +if { ![isnative] } {
>>>> >> + return -1
>>>> >> +}
>>> >
>>> > and remove it too.
>> Does it not need to be this way? If you are debugging from a big-endian
>> host, you will read the addresses wrong from the inferior, as the
>> jit-reader .so reads the values directly. (Seems to me anyway.)
>>
>
> My understanding is that jitreader accesses inferior through GDB, no?
Yes, but it does so through a straw, so to speak -- the only interface
it has is "read these bytes of memory", nothing about pointer sizes,
endianness, etc. And as an exception, the symfile itself is pre-copied
into the address space of the .so, but without any kind of conversion.
Andy