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] solib-display.exp: displays for local variables automatically disabled


Hi, Jan.

I'm using GDB 7.2, GCC 4.4.2, on an ARM similar arch.

I found that after the restart,
d->exp != NULL &&  d->exp->gdbarch != get_current_arch()
was asserted, which resulted in that d->exp was assigned NULL and parsed again.

For the local variables, because of out of scope, the parse was
failed, which resulted in d->enanble_p is assigned ZERO before the
warning.
For the globals, the parse would succeed.

Is it normal to have d->exp->gdbarch != get_current_arch() after restart?

Thanks,
Pan Xingxing


2010/11/8 Jan Kratochvil <jan.kratochvil@redhat.com>:
- 隐藏引用文字 -
> On Mon, 08 Nov 2010 14:19:18 +0100, Xingxing Pan wrote:
>> FAIL: gdb.base/solib-display.exp: NO: continue
>> FAIL: gdb.base/solib-display.exp: IN: continue
>> FAIL: gdb.base/solib-display.exp: SEP: continue
>
> But it PASSes for me on FSF GDB HEAD and x86_64-fedora14-linux-gnu.
>
>
>> warning: Unable to display "a_static": No symbol "a_static" in current context.
>
> This means `d->exp == NULL' in do_one_display.  But the expression should be
> valid, inferior has been just restarted, not reloaded.
>
>
> Do you have info on your system to make the problem reproducible for me?
>
>
> Thanks,
> Jan
>


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