This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb output problems when run in shell (bash or ksh)
- From: Andreas Schwab <schwab at suse dot de>
- To: Klaus Zeitler <kzeitler at lucent dot com>
- Cc: gdb at sources dot redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Tue, 02 Aug 2005 13:51:05 +0200
- Subject: Re: gdb output problems when run in shell (bash or ksh)
- References: <q5gfytsww07.fsf@lucent.com>
Klaus Zeitler <kzeitler@lucent.com> writes:
> I'm trying to debug a program with more than 100 threads under Solaris 5.8,
> that generates lots of output. When I run the program under gdb in bash,
> the first few threads are started, then gdb suspends itself and I need to
> call 'fg' to resume execution, i.e. the whole thing looks like e.g.:
Does this patch help?
2005-08-02 Andreas Schwab <schwab@suse.de>
* sol-thread.c (sol_thread_wait): Call target_terminal_ours before
printing output.
--- gdb/sol-thread.c.~1.50.~ 2005-06-27 10:03:40.000000000 +0200
+++ gdb/sol-thread.c 2005-08-02 13:46:35.000000000 +0200
@@ -463,6 +463,7 @@ sol_thread_wait (ptid_t ptid, struct tar
&& !ptid_equal (rtnval, save_ptid)
&& !in_thread_list (rtnval))
{
+ target_terminal_ours ();
printf_filtered ("[New %s]\n", target_pid_to_str (rtnval));
add_thread (rtnval);
}
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."