Subject: bug#29548: 25.2; How to DEBUG get-device-terminal

From: Noam Postavsky <[email-masked]>
Date: Wed, 6 Dec 2017 14:56:45 -0500

On Wed, Dec 6, 2017 at 1:49 PM, Live System User <[email-masked]> 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]