This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH,v2] Make language setting tests more robust


On 02/06/2017 06:22 PM, Luis Machado wrote:
> On 02/06/2017 12:08 PM, Pedro Alves wrote:
>> On 02/06/2017 06:04 PM, Luis Machado wrote:
>>
>>> That returns language_asm for me. Supposedly because gdb has seen asm
>>> from glibc and then sticked with it when it reached the test program's
>>> main. And the program has no debug info.
>>
>> No, I don't think that is why.  What sticks is "current_language", not
>> the frame's language.
> 
> True. gdb is still seeing asm for the frame with main though. But that
> sounds like an expected outcome.

Why?  Where is GDB retrieving that from?  Did you step through
get_frame_language?

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]