This is the mail archive of the gdb-prs@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]

[Bug gdb/21963] New: gdb can't work on winpty


https://sourceware.org/bugzilla/show_bug.cgi?id=21963

            Bug ID: 21963
           Summary: gdb can't work on winpty
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: mattn.jp at gmail dot com
  Target Milestone: ---

Hi.

On Windows, when type ^X^A gdb open tui mode. And it seems that gdb open
CONOUT$ without FILE_SHARE_WRITE mode.

https://github.com/bminor/binutils-gdb/blob/0749542484129e77a30f1089d6d671197be5035f/gdb/windows-nat.c#L2059-L2060

So when I try to run gdb with tui mode, winpty fail to open CONOUT$.

https://github.com/rprichard/winpty/blob/e7c63efbbdac5a3e4cf9434728ebfcc72b92a53b/src/agent/Win32ConsoleBuffer.cc#L39

I could reproduce with following operation.

1. open vim.exe or gvim.exe
2. :terminal on vim
3. start gdb
4. type ^X^A

I don't make sure but I guess add FILE_SHARE_WRITE into the mode will fix this
issue.

Regards.

Yasuhiro Matsumoto

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]