Re: wh command without argument to gdb in Emacs shell buffer == utter confusion

2014-10-29 Thread Pedro Alves
On 10/29/2014 05:10 AM, ishikawa wrote:
 $ env | grep TERM
 TERM=dumb
 TERMCAP=

Right, we can reproduce this on the terminal with just:

 $ TERM=dumb gdb -q -nx
 (gdb) wh

I'm working on a fix that will make GDB error out instead
of hanging, like:

 $ TERM=dumb gdb -q -nx
 (gdb) wh
 Cannot enable the TUI: terminal doesn't support cursor addressing.
 (gdb)

Thanks,
Pedro Alves


___
bug-gdb mailing list
bug-gdb@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gdb


Re: wh command without argument to gdb in Emacs shell buffer == utter confusion

2014-10-29 Thread ISHIKAWA,chiaki
Dear Pedro Alves,

 On 10/29/2014 05:10 AM, ishikawa wrote:
 $ env | grep TERM
 TERM=dumb
 TERMCAP=
 
 Right, we can reproduce this on the terminal with just:
 
  $ TERM=dumb gdb -q -nx
  (gdb) wh
 
 I'm working on a fix that will make GDB error out instead
 of hanging, like:
 
  $ TERM=dumb gdb -q -nx
  (gdb) wh
  Cannot enable the TUI: terminal doesn't support cursor addressing.
  (gdb)
 
 Thanks,
 Pedro Alves

Thank you very much for your debugging effort.

After learning about TUI, I thought disabling this feature
based on the terminal capability would be one way to handle this issue.
So your patch would be very much appreciated.

Still being puzzled why I didn't realize this TUI feature for such a
long time. It is not clear when TUI is enabled in Debian Package.
It is possible it was not enabled even in the current release and only
enabled in Jessie (experimental and the would be mainline release in the
next release cycle).

Thank you again.

Best Regards,
Chiaki Ishikawa




___
bug-gdb mailing list
bug-gdb@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gdb


Re: wh command without argument to gdb in Emacs shell buffer == utter confusion

2014-10-29 Thread Pedro Alves
On 10/29/2014 02:41 PM, ISHIKAWA,chiaki wrote:

 Thank you very much for your debugging effort.

No problem.  I use the TUI myself every day.

FYI, the bug is fixed on mainline now:

  https://sourceware.org/ml/gdb-patches/2014-10/msg00798.html

 Still being puzzled why I didn't realize this TUI feature for such a
 long time. It is not clear when TUI is enabled in Debian Package.
 It is possible it was not enabled even in the current release and only
 enabled in Jessie (experimental and the would be mainline release in the
 next release cycle).

No idea here.  The TUI has been in GDB for ages.

Thanks,
Pedro Alves


___
bug-gdb mailing list
bug-gdb@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gdb