From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14447 invoked by alias); 12 Nov 2013 09:49:43 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 14420 invoked by uid 48); 12 Nov 2013 09:49:42 -0000 From: "palves at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug tui/16138] layout asm when run from emacs exits gdb complaining "Error opening terminal: emacs" Date: Tue, 12 Nov 2013 09:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tui X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: palves at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q4/txt/msg00291.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16138 --- Comment #4 from Pedro Alves --- 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 , 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 , 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.