Re: How to set default value of yquery and nquery

Hui Zhu
2010-02-24T06:08:22Z

Thanks Tom.

Hui

On Wed, Feb 24, 2010 at 01:13, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> ">" == Hui Zhu <teawater@gmail.com> writes:
>
>>> A people want set a lot of command with .gdbinit,
>>> He want set a breakpoint to a solib before load it.
>>> He just got:
>>> Function "www2" not defined.
>>> Make breakpoint pending on future shared library load? (y or [n])
>>> [answered N; input not from terminal]
>
>>> We can handle this issue with load solib before set breakpoint.  But
>>> does GDB have some ways to set default value with input not from
>>> terminal?
>
> In this particular case you can also use "set breakpoint pending".
>
> I don't think there is a general facility for answering queries from a
> script.
>
> Tom
>