[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extend gdb to filter registers

From: martin rudalics
Subject: Re: Extend gdb to filter registers
Date: Sat, 18 Jan 2020 22:43:46 +0100

>>   > gdb-mi.el has gdb-display-buffer, which makes the window dedicated.
>>   > It also has some code in gdb-display-source-buffer.  Neither of those
>>   > uses display-buffer, AFAICT.  So where do the split thresholds come
>>   > into play in the scenario mentioned?
>> Here
>> (defun gdb-display-buffer (buf)
>>     "Show buffer BUF, and make that window dedicated."
>>     (let ((window (display-buffer buf)))
>>                    ^^^^^^^^^^^^^^^^^^
>>       (set-window-dedicated-p window t)
>>       window))
> This function isn't called when gdb-mi.el displays a source file in
> its window.

Above you said that "Neither of those uses display-buffer".  Now
'gdb-display-source-buffer' is called exclusively (within gdb-mi.el) by
'gdb-goto-breakpoint' which has

                     (window (or (gdb-display-source-buffer buffer)
                                 (display-buffer buffer))))

so if 'gdb-display-source-buffer' fails, 'display-buffer' is called.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]