Wednesday 15 June 2011

multithreading - How to list backtraces of all threads non-interactively (without needing to press ENTER key)? -


I am in GDB session in an attempt to debug a core dump with more than 200 threads.

When I apply the thread to all BT GBD, I have to enter the key repeatedly for more threads. Can I specify in my order to do this without pressing its annoying ?

Thanks for any information.

Edit: Here is a sample output:

  (gdb) thread applies to all BT thread 409 (thread 7505): # 0x00007ffff1d6961c ?? () # 1 in 0x0000000000000000 ?? () ... ... ... ... ... & lt; 20 Some Backtraces & gt; ... ... ... ... Thread 390 (Thread 10529): # 0x00007ffff1d6961c ?? () # 1 in 0x0000001300000000 ?? () # 2 0x00007fffe860bd50 ?? () # 3 0x00007fffe8464690 ?? () # 4 in 0x0000000000000014 ?? () --- Type & lt; Return & gt; To continue, or q & lt; Return & gt; To leave ---    

Disable Pager by using:

  Set height 0    

No comments:

Post a Comment