This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/16809] interrupt -a
- From: "dilyan.palauzov at aegee dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 13 Jul 2014 21:58:16 +0000
- Subject: [Bug gdb/16809] interrupt -a
- Auto-submitted: auto-generated
- References: <bug-16809-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16809
--- Comment #2 from dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee dot org> ---
I use gdb-7.7.1 and the changes from
https://sourceware.org/ml/gdb-patches/2014-07/msg00304.html were already
applied.
In 7.7.1 I applied only the patch from gdb/infcmd.c on
interrupt_target_command(), because there is no interrupt_command(). I cannot
link gdb:
infcmd.o: In function `wait_thread_stopped':
gdb-7.7.1/gdb/infcmd.c:2818: undefined reference to `print_stop_event'
infcmd.o: In function `interrupt_target_command':
gdb-7.7.1/gdb/infcmd.c:2921: undefined reference to `prepare_execution_command'
Please provide patch toward gdb771.
Sample program, that leads to the described error:
#include <iostream>
#include <unistd.h>
#include <thread>
void f() {
std::cout << "A" << std::endl;
sleep (10);
std::cout << "Z" << std::endl;
}
int main() {
std::thread t1 { f }; std::thread t2 { f };
std::thread t3 { f }; std::thread t4 { f };
std::thread t5 { f }; std::thread t6 { f };
std::thread t7 { f }; std::thread t8 { f };
std::thread t9 { f }; std::thread t10 { f };
std::thread t11 { f }; std::thread t12 { f };
sleep (15);
t1.join(); t2.join(); t3.join(); t4.join(); t5.join(); t6.join();
t7.join(); t8.join(); t9.join(); t10.join(); t11.join(); t12.join();
}
--
You are receiving this mail because:
You are on the CC list for the bug.