This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Make the remote target always register a thread


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]