This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Don't try to report resumed thread it the thread list is empty.
A Wednesday 09 July 2008 13:04:11, Vladimir Prus wrote:
> On Wednesday 09 July 2008 14:31:21 Pedro Alves wrote:
> > A Saturday 05 July 2008 18:58:29, Vladimir Prus wrote:
> > > I've checked in the below to make GDB not assert in MI mode on
> > > targets where single-threaded programs have zero threads in the
> > > GDB thread table.
> >
> > FYI, running the MI testsuite on a target that doesn't register
> > the main thread in ST programs,
>
> For the record, which target did you test on?
arm-elf with target sim. I've checked in the patch to make it
always have a thread, but it's just a matter of commenting out
the add_thread_silent call to get the old behaviour.
> I'm not sure which way we want to make it consistent. Outputiing
> "thread-id" with a "I don't exist" value of thread id seems a little bit
> distasteful. I guess I can modify regexp to make thread-id optional.
I meant either output -thread-id="0" everywhere, or don't output -thread=id
at all, nowhere.
--
Pedro Alves