[lldb-dev] [Bug 51954] New: GUI: curses mode not interactive Windows (PDCursesMod)

via lldb-dev lldb-dev at lists.llvm.org
Fri Sep 24 04:03:45 PDT 2021


            Bug ID: 51954
           Summary: GUI: curses mode not interactive Windows (PDCursesMod)
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: steve at advance-software.com
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

Building with curses on windows (pdcursesmod)
This : https://github.com/Bill-Gray/PDCursesMod

... because PDCureses was erroring out for me, tried other, seems better.

One build issue :


define_key not defined. that's a ncurses extension. have a dummy in there for
now so it will link as follows :

// pdcurses doesn't implement define_key so we stub for the time being.
int define_key(const char *definition, int keycode)
return ERR ; // not implemented.

Filed as issue here : 

That builds & runs. Can type gui to enter gui mode but its not interactive.

Should be. Perhaps due to stubbed define_key. Don't know. Don't personally have
time to take this further at the moment, but was a request issue was filed.

Need something like this to build with PDCursesMod

set CURSES_LIB=%CURSES_ROOT%\wincon\pdcurses.lib

-DLLVM_ENABLE_PROJECTS="clang;lldb" -B build -G Ninja

Also if you build PDCursesMod as DLL, you'll need to patch #include as follows.

#define PDC_DLL_BUILD 1
#include "curses.h"

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20210924/891609c6/attachment.html>

More information about the lldb-dev mailing list