Make the remote target always register a thread

Daniel Jacobowitz drow@false.org
Fri Jun 27 14:58:00 GMT 2008


On Fri, Jun 27, 2008 at 12:58:08PM +0100, Pedro Alves wrote:
> It will take a while to make all targets consistent,
> so although I'd prefer to fix them all, practically speaking, the
> assertion should be removed for now, and perhaps leave a comment
> there so when we do have all targets consistent, the assert will be
> catching a real bug.
> 
> The fix seems to me to be a one or two liner,
> but, as I've said at gdb@, I don't know if we should output
> thread-id=0 or not output thread-id at all, or maybe even
> output thread-id=all, as if there are no threads in the list,
> this is the special case of there being only one "task" really,
> but the target is not registering it.
> 
> (OTOH, having an assert at least makes it easy to see
> which target needs to be changed.)

Let's just keep in mind that we shouldn't ship a release of GDB with
this problem...

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list