August 2011
Intermediate to advanced
552 pages
23h 48m
English
gdb supports debugging threaded programs. We have lots to say about threading issues in Chapter 20: Multithreading, but for now, here are some useful commands relating to threads.
Shows information about all the currently active threads. Here is something from a simple Cocoa program while the Page Setup dialog is active:
(gdb) info threads 3 process 128 thread 0x213 0x70978 in mach_msg_overwrite_trap() 2 process 128 thread 0x1f7 0x70978 in mach_msg_overwrite_trap() *1 process 128 thread 0x163 0x70978 in mach_msg_overwrite_trap() ...Read now
Unlock full access