This is the mail archive of the gdb@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] |
The interesting thing about George's situation is that there's a lot of threads (basically, all but one of them) that we know in advance will be stuck in context switching code. One of the nice things about info threads is that it shows you the current frame for all your threads; but in this case, that's not really very interesting information.
If we could find out where those threads were _before_ they switched out, now, that would make for an interesting overview.
Also, I am not apposed to a macro solution. But, as far as I know the macros are a bit weak. For example, the info thread command lists the thread number, pid, and an info field (which in my case is the task name from the kernel task struct). So how would a macro keep this info intact and display it along with the "up" result on the same line? In my thoughts on this I have considered a maintaince request to the host which would return the pid and the info field, ....
I also wonder how to determine, when stepping through the threads, that that was the last one. As far as I know the top thread number is not available as a $var (but that would be nice for other macros as well).
Sorry, I'm lost here. Can you perhaphs sketch out how you'd expect GDB, the user, and the target to interact?
define do_threads thread apply all do_th_lines end
define do_th_lines while ($pc > $low_sched) && ($pc < $high_sched) up-silent end do-silent up end
It would appear that this has unwound into a couple of rather simple things: a) No new line capability on the "thread apply all" b) No new line on "info remote-process" c) Ability to do the up/down report without moving to a new frame.
-- George Anzinger george@mvista.com High-res-timers: http://sourceforge.net/projects/high-res-timers/ Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |