This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
multithreaded application gdb start script
- From: Nenad Vukicevic <nenad at intrepid dot com>
- To: gdb at sourceware dot org
- Date: Sat, 26 Dec 2009 18:36:18 -0800
- Subject: multithreaded application gdb start script
I have an application that forks few processes and was wondering if gdb
script like the
one bellow is possible:
set pagination off
set target-async on
set non-stop on
set detach-on-fork off
b MPIR_i_am_starter
r
set MPIR_being_debugged=1
c&
[delay for all threads to start]
interrupt -a
thread apply all set MPIR_debug_gate=0
I am using the latest head version of gdb with multiprocessing support.
Thanks,
Nenad