Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37661153
en ru br
Репозитории ALT
S:13.2.0.43.854f46b6377-alt2
5.1: 6.6-alt3
4.1: 6.6-alt3
4.0: 6.6-alt2
3.0: 6.3-alt2
www.altlinux.org/Changes

Группа :: Разработка/Отладчики
Пакет: gdb

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: gdb-6.3-terminal-fix-20050214.patch
Скачать


2005-02-14  Jeff Johnston <jjohnstn@redhat.com>
	* top.c (gdb_readline_wrapper): Ensure terminal is gdb's before calling
	readline.
Index: gdb-6.5/gdb/top.c
===================================================================
--- gdb-6.5.orig/gdb/top.c	2006-03-29 19:53:33.000000000 -0300
+++ gdb-6.5/gdb/top.c	2006-07-07 02:29:42.000000000 -0300
@@ -728,6 +728,14 @@ gdb_readline_wrapper (char *prompt)
       after_char_processing_hook = NULL;
     }
 
+  /* Before calling readline, ensure we have the terminal.  If we don't
+     have the terminal and call readline, we risk the possibility of
+     gdb being thrown into the background.  This problem occurs when
+     we attach to a background process on the same terminal the background
+     process was started from and then perform some action which requires
+     a page break prompt.  */
+  terminal_ours ();
+
   return readline (prompt);
 }
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin