Michael Schnell wrote:
> >I'm not sure if gdbserver is working with pthreads on non-mmu at all,
> >because the threads are in the same address space. 
> I don't see this problem right now. The threads are in the same address 
> space with and without MMU, so this should not make a difference.

It was poorly phrased.

Without MMU, everything is in the same address space, including
different processes.  To distinguish state, each process is either
post-linked (relocated) when it is started, or a dedicated CPU
register points to process/thread-specific state.

Since this is done quite differently with/without MMU, GDB needs
specific code for each one to debug threads without an MMU (and even
processes, but that's already done).

To complicate further, some no-MMU architectures have old-style
pthreads (Linuxthreads) and new-style pthreads (NPTL aka TLS), as well
as non-PIC and PIC ABIs, and all combinations use dedicated CPU
registers to access thread/process state in different ways.

-- Jamie
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to