From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Live System User Newsgroups: gmane.emacs.bugs Subject: bug#29548: 25.2; How to DEBUG get-device-terminal Date: Wed, 06 Dec 2017 19:25:01 -0500 Message-ID: <87609jtmea.fsf@aol.com> References: <87d13v24zb.fsf@aol.com> <87k1y3iyj0.fsf@users.sourceforge.net> <87609j1yla.fsf@aol.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1512606376 13787 195.159.176.226 (7 Dec 2017 00:26:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2017 00:26:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 29548@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 07 01:26:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMk0x-0003S6-U6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Dec 2017 01:26:12 +0100 Original-Received: from localhost ([::1]:58408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMk13-00058T-GQ for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Dec 2017 19:26:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMk0s-00058I-Tl for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2017 19:26:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMk0o-0007kz-SV for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2017 19:26:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40956) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eMk0o-0007kH-Mo for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2017 19:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eMk0o-0003D4-1l for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2017 19:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Live System User Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Dec 2017 00:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29548 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 29548-submit@debbugs.gnu.org id=B29548.151260631412280 (code B ref 29548); Thu, 07 Dec 2017 00:26:02 +0000 Original-Received: (at 29548) by debbugs.gnu.org; 7 Dec 2017 00:25:14 +0000 Original-Received: from localhost ([127.0.0.1]:49637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMk01-0003C0-Nl for submit@debbugs.gnu.org; Wed, 06 Dec 2017 19:25:14 -0500 Original-Received: from omr-a018e.mx.aol.com ([204.29.186.64]:44731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMjzz-0003Bj-Su for 29548@debbugs.gnu.org; Wed, 06 Dec 2017 19:25:12 -0500 Original-Received: from mtaout-aah02.mx.aol.com (mtaout-aah02.mx.aol.com [172.27.1.142]) by omr-a018e.mx.aol.com (Outbound Mail Relay) with ESMTP id 906683800082; Wed, 6 Dec 2017 19:25:06 -0500 (EST) Original-Received: from localhost.localdomain (c-73-16-70-190.hsd1.ma.comcast.net [73.16.70.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-aah02.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 13A213800008A; Wed, 6 Dec 2017 19:25:03 -0500 (EST) In-Reply-To: (Noam Postavsky's message of "Wed, 6 Dec 2017 14:56:45 -0500") x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1512606306; bh=tcCgIiaKjI3DnOK+jDf9qH9pxAlf6NsE+ciDTQpY8E8=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=8byEzzwDqRB+Vgo0KuJZ5QMX54PejxVD075qdcZsJu2o2gPcSqh3UEtmdwjp+u85Q Y4uFsFrr/bNwlapZHHoD9rzoHcRyFXv0eul3hysgzKXkheq2gyC0ZOOMjMW3vS5kYs FgVnERtlg+hmtc1CH9C63RwL/1JG+PkybQ4kdHrA= x-aol-sid: 3039ac1b018e5a288a5f79b3 X-AOL-IP: 73.16.70.190 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140771 Archived-At: Noam Postavsky writes: > On Wed, Dec 6, 2017 at 1:49 PM, Live System User wrote: > >> Lisp Backtrace: >> "signal" (0x5e974a98) >> "error" (0x5e974c48) >> "get-device-terminal" (0x5e974e08) >> "frames-on-display-list" (0x5e974fc0) >> 0x8a6a38 PVEC_COMPILED >> "mapcar" (0x5e9753a8) >> "internal--before-save-selected-window" (0x5e9755b0) > > So this function is getting the terminal list by calling > list-terminals. Try printing them out in gdb, by entering the > following: > > define print_terminal_list > set $t = terminal_list > while $t > print *$t > set $t = $t->next_terminal > end > end > print_terminal_list > > The gdb command window should like this when you do that > > (gdb) define print_terminal_list > Type commands for definition of "print_terminal_list". > End with a line saying just "end". >>set $t = terminal_list >>while $t > >print *$t > >set $t = $t->next_terminal > >end >>end > (gdb) print_terminal_list > $7 = { > ...[printout of terminals follows] (gdb) define print_terminal_list Type commands for definition of "print_terminal_list". End with a line saying just "end". >set $t = terminal_list >while $t >print *$t >set $t = $t->next_terminal >end >end (gdb) print_terminal_list $1 = { header = { size = 4611686018561773572 }, param_alist = XIL(0x2bfe553), charset_list = XIL(0x102ec33), Vselection_alist = XIL(0), glyph_code_table = XIL(0), next_terminal = 0x363e3d8, id = 5, reference_count = 0, type = output_termcap, name = 0x0, kboard = 0x4c584e0, image_cache = 0x0, display_info = { tty = 0x4160c10, x = 0x4160c10, w32 = 0x4160c10, ns = 0x4160c10 }, terminal_coding = 0x572a020, keyboard_coding = 0x8594d30, ---Type to continue, or q to quit--- rif = 0x0, cursor_to_hook = 0x4b3aa0 , raw_cursor_to_hook = 0x4b39f0 , clear_to_end_hook = 0x4b1160 , clear_frame_hook = 0x4b1ce0 , clear_end_of_line_hook = 0x4b38b0 , ins_del_lines_hook = 0x4b0e50 , insert_glyphs_hook = 0x4b4820 , write_glyphs_hook = 0x4b4500 , delete_glyphs_hook = 0x4b3720 , ring_bell_hook = 0x4b0bb0 , toggle_invisible_pointer_hook = 0x0, reset_terminal_modes_hook = 0x4b3600 , set_terminal_modes_hook = 0x4b0d00 , update_begin_hook = 0x0, update_end_hook = 0x4b35a0 , set_terminal_window_hook = 0x4b0790 , mouse_position_hook = 0x0, frame_rehighlight_hook = 0x0, frame_raise_lower_hook = 0x0, fullscreen_hook = 0x0, menu_show_hook = 0x4b2ab0 , popup_dialog_hook = 0x0, ---Type to continue, or q to quit--- set_vertical_scroll_bar_hook = 0x0, set_horizontal_scroll_bar_hook = 0x0, condemn_scroll_bars_hook = 0x0, redeem_scroll_bar_hook = 0x0, judge_scroll_bars_hook = 0x0, read_socket_hook = 0x4f8cf0 , frame_up_to_date_hook = 0x0, delete_frame_hook = 0x4b0130 , delete_terminal_hook = 0x4aff70 } $2 = { header = { size = 4611686018561773572 }, param_alist = XIL(0x3635c03), charset_list = XIL(0), Vselection_alist = XIL(0), glyph_code_table = XIL(0), next_terminal = 0xc2b460, id = 4, reference_count = 2, type = output_x_window, name = 0x3b51a70 ":0", ---Type to continue, or q to quit--- kboard = 0x3e374f0, image_cache = 0x435b910, display_info = { tty = 0x3a31c00, x = 0x3a31c00, w32 = 0x3a31c00, ns = 0x3a31c00 }, terminal_coding = 0x3f2f200, keyboard_coding = 0x446f800, rif = 0x85a520 , cursor_to_hook = 0x0, raw_cursor_to_hook = 0x0, clear_to_end_hook = 0x0, clear_frame_hook = 0x4c2500 , clear_end_of_line_hook = 0x0, ins_del_lines_hook = 0x4c0cb0 , insert_glyphs_hook = 0x0, write_glyphs_hook = 0x0, delete_glyphs_hook = 0x4c0ca0 , ring_bell_hook = 0x4c4810 , toggle_invisible_pointer_hook = 0x4c0680 , reset_terminal_modes_hook = 0x0, ---Type to continue, or q to quit--- set_terminal_modes_hook = 0x0, update_begin_hook = 0x4c05c0 , update_end_hook = 0x4c05d0 , set_terminal_window_hook = 0x0, mouse_position_hook = 0x4c8f90 , frame_rehighlight_hook = 0x4c9f20 , frame_raise_lower_hook = 0x4c4630 , fullscreen_hook = 0x4ccfe0 , menu_show_hook = 0x46dd20 , popup_dialog_hook = 0x46e680 , set_vertical_scroll_bar_hook = 0x4c1f60 , set_horizontal_scroll_bar_hook = 0x4c19d0 , condemn_scroll_bars_hook = 0x4c0630 , redeem_scroll_bar_hook = 0x4c0ab0 , judge_scroll_bars_hook = 0x4c15f0 , read_socket_hook = 0x4c2380 , frame_up_to_date_hook = 0x4c4650 , delete_frame_hook = 0x4ce160 , delete_terminal_hook = 0x4c5ea0 } $3 = { header = { size = 4611686018561773572 ---Type to continue, or q to quit--- }, param_alist = XIL(0x13a3aa3), charset_list = XIL(0x102ec33), Vselection_alist = XIL(0), glyph_code_table = XIL(0), next_terminal = 0x0, id = 0, reference_count = 1, type = output_initial, name = 0xbf45e0 "initial_terminal", kboard = 0xc26e30, image_cache = 0x0, display_info = { tty = 0x0, x = 0x0, w32 = 0x0, ns = 0x0 }, terminal_coding = 0xc2dbf0, keyboard_coding = 0xc2d980, rif = 0x0, cursor_to_hook = 0x0, raw_cursor_to_hook = 0x0, ---Type to continue, or q to quit--- clear_to_end_hook = 0x0, clear_frame_hook = 0x0, clear_end_of_line_hook = 0x0, ins_del_lines_hook = 0x0, insert_glyphs_hook = 0x0, write_glyphs_hook = 0x0, delete_glyphs_hook = 0x0, ring_bell_hook = 0x0, toggle_invisible_pointer_hook = 0x0, reset_terminal_modes_hook = 0x0, set_terminal_modes_hook = 0x0, update_begin_hook = 0x0, update_end_hook = 0x0, set_terminal_window_hook = 0x0, mouse_position_hook = 0x0, frame_rehighlight_hook = 0x0, frame_raise_lower_hook = 0x0, fullscreen_hook = 0x0, menu_show_hook = 0x0, popup_dialog_hook = 0x0, set_vertical_scroll_bar_hook = 0x0, set_horizontal_scroll_bar_hook = 0x0, condemn_scroll_bars_hook = 0x0, ---Type to continue, or q to quit--- redeem_scroll_bar_hook = 0x0, judge_scroll_bars_hook = 0x0, read_socket_hook = 0x0, frame_up_to_date_hook = 0x0, delete_frame_hook = 0x4b6ea0 , delete_terminal_hook = 0x4b7690 } (gdb)