This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug tui/21817] gdb session suspended when run in background
- From: "jim at realintent dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 25 Jul 2017 00:30:54 +0000
- Subject: [Bug tui/21817] gdb session suspended when run in background
- Auto-submitted: auto-generated
- References: <bug-21817-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21817
--- Comment #2 from Jim Foley <jim at realintent dot com> ---
More about this:
I've fixed this in a customized gdb build with this change in inflow.c:
----
static int
gdb_has_a_terminal (void)
{
// return initial_gdb_ttystate != NULL;
return (initial_gdb_ttystate != NULL) && (batch_flag == 0);
}
----
This fix works successfully for our purposes.
I've tried to create a reproducible testcase on a 'hello world' style binary
but
didn't succeed. It must be that something in my application contributes
to the reason gdb hangs.
--
You are receiving this mail because:
You are on the CC list for the bug.