Re: linux native async mode support

Daniel Jacobowitz
2008-03-22T01:25:59Z

On Sat, Mar 22, 2008 at 11:01:28AM +1200, Nick Roberts wrote:
> > > My original test file mi-async.exp (attached below) works with your patch
> > > when GDBFLAGS is toggled as above.
> >
> > Could you post a patch to add this? You can use -gdb-set to avoid
> > adjusting GDBFLAGS,
>
> I don't think so:
>
> maintenance set linux-async on
> ^^^^^^^^^^^

Whoops, I didn't think that one through. You're right.

> (gdb) start
> Breakpoint 1 at 0x804862c: file myprog.c, line 95.
> Starting program: /home/nickrob/myprog
> main (argc=1, argv=0xbfe3b904) at myprog.c:95
> 95 main (int argc, char **argv) {
> (gdb) maintenance set linux-async on
> Cannot change this setting while the inferior is running.

Right, gotta do it after gdb_start but before anything else.

> > and [isnative] && [istarget *-linux*] to limit
> > it to platforms with the new command for now.
>
> I will do this.

Thank you!

--
Daniel Jacobowitz
CodeSourcery