This is the mail archive of the gdb-patches@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] | |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello all I noticed that the TUI signal handler isn't initialized anywhere. Here's a patch to fix it. I'm not sure if this is the correct file to add this, though. What do you think? Regards, - -- Carlos Eduardo Seo Software Engineer IBM Linux Technology Center -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG9G6Uqvq7Aov/qQARAoCxAJ9OlDthCDDQiviQUtLn8ssYBnSQGwCeJW5p MnQvOGlkG1PReK9L8nQQGMs= =FtxO -----END PGP SIGNATURE-----
2007-09-21 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
gdb/tui/tui.c (tui_initialize_readline): initialize
TUI's SIGWINCH signal handler.
Index: src/gdb/tui/tui.c
===================================================================
--- src.orig/gdb/tui/tui.c
+++ src/gdb/tui/tui.c
@@ -309,6 +309,11 @@ tui_initialize_readline (void)
int i;
Keymap tui_ctlx_keymap;
+ struct sigaction old_winch;
+ memset (&old_winch, 0, sizeof (old_winch));
+ old_winch.sa_handler = &tui_sigwinch_handler;
+ sigaction (SIGWINCH, &old_winch, NULL);
+
rl_initialize ();
rl_add_defun ("tui-switch-mode", tui_rl_switch_mode, -1);
Attachment:
tui-sighandler.diff.sig
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |