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 #4 from Pedro Alves <palves at redhat dot com> ---
Urgh, this is ncurses itself calling exit.  Reproducing outside of emacs:

$ gdb -q -nx \
  -ex "set env TERM=emacs" \
  -ex "b exit" \
  -ex "r" \
  -ex "bt" \
  --args ./gdb -ex "layout asm" 

...
Error opening terminal: emacs.

Breakpoint 1, __GI_exit (status=1) at exit.c:100
100       __run_exit_handlers (status, &__exit_funcs, true);
#0  __GI_exit (status=1) at exit.c:100
#1  0x000000324d00de43 in initscr () at ../../ncurses/base/lib_initscr.c:89
#2  0x00000000005040da in tui_enable () at ../../src/gdb/tui/tui.c:385
#3  0x00000000004fbfed in tui_layout_command (arg=0x7fffffffdf32 "asm",
from_tty=1) at ../../src/gdb/tui/tui-layout.c:609
#4  0x00000000004dcdfb in do_cfunc (c=0xd9c8c0, args=0x7fffffffdf32 "asm",
from_tty=1) at ../../src/gdb/cli/cli-decode.c:107
#5  0x00000000004dfe90 in cmd_func (cmd=0xd9c8c0, args=0x7fffffffdf32 "asm",
from_tty=1) at ../../src/gdb/cli/cli-decode.c:1882
#6  0x00000000006ea5d9 in execute_command (p=0x7fffffffdf34 "m", from_tty=1) at
../../src/gdb/top.c:467
#7  0x00000000005e53dc in catch_command_errors (command=0x6ea366
<execute_command>, arg=0x7fffffffdf2b "layout asm", from_tty=1,
mask=RETURN_MASK_ALL)
    at ../../src/gdb/exceptions.c:551
#8  0x00000000005e8d17 in captured_main (data=0x7fffffffda30) at
../../src/gdb/main.c:1043
#9  0x00000000005e5306 in catch_errors (func=0x5e7bff <captured_main>,
func_args=0x7fffffffda30, errstring=0x8ab1f4 "", mask=RETURN_MASK_ALL)
    at ../../src/gdb/exceptions.c:524
#10 0x00000000005e8dbb in gdb_main (args=0x7fffffffda30) at
../../src/gdb/main.c:1076
#11 0x000000000045b53a in main (argc=3, argv=0x7fffffffdb38) at
../../src/gdb/gdb.c:34
(gdb)

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