This is the mail archive of the gdb@sourceware.org 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]

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


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