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] |
Hello, I wrote this small patch that fixes a very annoying bug I hit often in gdb. To get the annoyance, it only requires to run "edit" in the gdb cli to launch an in-terminal editor, and then resize the terminal. Easy to happen on a tiling wm. Then both gdb and the editor read the terminal keys. Mess. I found that the readline code takes out the SIGWINCH handler that has SA_RESTART; then the edit-cmd calls 'waitpid()' careless, and as there is no restart of syscalls, waitpid() unblocks and goes back to the gdb prompt. But only SIGWINCH happened. This patch attached fixes the situation for me. Thank you, Lluís.
Attachment:
gdb-edit-sigwinch.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |