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] |
I tried to move gdb into a distinct group with "setpgid(gdb_pid, 0)", right after spawning it with "g_spawn_async_with_pipes".Whay does this signal come to parent process and can I avoid this somehow?This is a bit of a guess, since I don't remember all the details, but I think it might be a question of process group. To implement the interrupt, many targets simply send a SIGINT signal to the inferior process group. If you spawned GDB within the same process group as GDB, and both GDB and the program being debugged share the same process group as well, the interrupt will cause SIGINT to be received by your IDE as well. So, try spawning GDB in its own process group.
^done (gdb) &"Quit\n" =thread-exited, ..... =thread-group-exited,.... *stopped,reason="exited-normally"
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |