This is the mail archive of the gdb-patches@sources.redhat.com 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: Re-initializing a list after the control returns to gdb...


A more higher level question. What exactly is the story behind ada-task*. I glanced at the code and it looked very like a clone of the existing thread code.


Not quite: What happens is that the GNAT runtime maintains an array
of Ada_Task_Control_Block. The ada-tasks module reads this array
to build the list of tasks, and display the status information for
each task. We then try to use the thread module to do the task
switching.

So let me get my head round this, the target stack should look like:


ada-tasks
threads
lwp
proc/ptrace

or possibly the ada-tasks sits more beside the thread code?

Andrew


(We realize the code is a bit horrible, that's why we are trying to
clean it up a bit. The question I asked was in fact for one of these
cleanups. I can send my latest WIP version if yo are interested in
the current state of this file).

No, I just know it needs that cleanup.


Andrew



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