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 am currently working on a front-end for gdb on windows, and trying to use the new-ui command passing as tty name the name of a named pipe without luck. Then I decided to dig into it so I cloned gdb's repo and started debugging. After some investigation I found out that the problem was that the function new_ui_command in top.c opens the same tty three times (for stdin, sdout and stderr). With windows named pipes the second and third calls to open fail. I then patched the function to open the file only once and pass the same stream for stdin stdout and stderr and that made it work. I don't know the implication of my patch on other operating systems or what would be the way to make it specific to windows. Can you please advise on the best way to make this patch portable. You will find in the attachments my patch so far. Best regards
Attachment:
0001-First-fix-for-using-named-pipes-on-windows.patch
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |