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

Pedro Alves
2017-02-06T18:24:20Z

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