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]

Re: [patch] Allow to link with ncursesw


On 09/20/2017 10:22 PM, Pedro Alves wrote:
> On 09/20/2017 08:51 PM, Matthias Klose wrote:

>> Python itself doesn't link to a curses library, it uses the only which is used
>> for readline.
>>
> 
> And if readline doesn't use curses, what does Python do?

Hmm, maybe Python is not relevant here, because we have,
in gdb/python/py-gdb-readline.c:

 /* Initialize Python readline support.  */

 void
 gdbpy_initialize_gdb_readline (void)
 {
  /* Python's readline module conflicts with GDB's use of readline
     since readline is not reentrant.  Ideally, a reentrant wrapper to
     GDB's readline should be implemented to replace Python's readline
     and prevent conflicts.  For now, this file implements a
     sys.meta_path finder that simply fails to import the readline
     module.  */

That still leaves open the question about non-GNU/Linux OSs, though.

Thanks,
Pedro Alves


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