Re: [PATCH] printcmd.c (ui_printf): make internalvar string can be printf and eval when inferior cannot alloc memory

Hui Zhu
2011-08-18T02:54:03Z

On Wed, Aug 17, 2011 at 22:38, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> ">" == Hui Zhu <teawater@gmail.com> writes:
>
>>> I don't know howto input a  wide-string to GDB command line.
>>> Could you help me with that and let me write a separate patch special
>>> for wide-string case?
>
> I think you can't make one directly without an inferior, but you can
> make an array of integers using the {...} syntax.  Then, I think, you
> can print this using "%ls".
>
>>> +            if ((VALUE_LVAL (val_args[i]) == lval_internalvar
>>> +             || VALUE_LVAL (val_args[i]) == not_lval)
>
> This test seems odd to me.  Why does the lvalue-ness of the value
> matter?

I don't understand your means, could you do some explain?

Thanks,
Hui

>
> Tom
>