This is the mail archive of the
mailing list for the GDB project.
Re: [patch] solib-display.exp: displays for local variables automatically disabled
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
For the globals, the parse would succeed.
Is it normal to have d->exp->gdbarch != get_current_arch() after restart?
2010/11/8 Jan Kratochvil <firstname.lastname@example.org>:
- 隐藏引用文字 -
> 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?