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

[Bug tui/21817] gdb session suspended when run in background


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.

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