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 tui/16138] layout asm when run from emacs exits gdb complaining "Error opening terminal: emacs"


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

--- Comment #8 from Pedro Alves <palves at redhat dot com> ---
Yes, I think we can assume that.  The initscr call is in tui_enable.  This is
the function that initializes curses the first time TUI is enabled, so it's
guaranteed that all TUI commands will end up calling it.  Here's the "refresh"
backtrace.

(top-gdb) bt
#0  tui_enable () at ../../src/gdb/tui/tui.c:372
#1  0x0000000000501c72 in tui_refresh_all_command (arg=0x0, from_tty=1) at
../../src/gdb/tui/tui-win.c:986
#2  0x00000000004dd78f in do_cfunc (c=0xdb7ed0, args=0x0, from_tty=1) at
../../src/gdb/cli/cli-decode.c:107
#3  0x00000000004e0824 in cmd_func (cmd=0xdb7ed0, args=0x0, from_tty=1) at
../../src/gdb/cli/cli-decode.c:1882
#4  0x00000000006ed521 in execute_command (p=0xcc06c7 "", from_tty=1) at
../../src/gdb/top.c:468
#5  0x00000000005f27a7 in command_handler (command=0xcc06c0 "refresh") at
../../src/gdb/event-top.c:435
(...)

-- 
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]