From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Extend gdb to filter registers Date: Sat, 18 Jan 2020 13:15:49 +0200 Message-ID: <838sm510d6.fsf@gnu.org> References: <878spmuerf.fsf@mail.linkov.net> <83wod3bx8i.fsf@gnu.org> <9f5ddaa5-0234-a17b-bdd7-81d70a0a50d6@gmx.at> <83FFF194-64CD-409E-8B7A-5A9DF91E79DE@gmail.com> <83v9pb314t.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="128779"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, juri@linkov.net, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 18 12:16:29 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ism5d-000XRJ-8j for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Jan 2020 12:16:29 +0100 Original-Received: from localhost ([::1]:39170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ism5c-0000R0-BH for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Jan 2020 06:16:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55756) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ism50-0008Qa-BU for emacs-devel@gnu.org; Sat, 18 Jan 2020 06:15:51 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ism4z-00040e-38; Sat, 18 Jan 2020 06:15:49 -0500 Original-Received: from [176.228.60.248] (port=1137 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ism4y-0005fh-Iy; Sat, 18 Jan 2020 06:15:48 -0500 In-reply-to: (message from Yuan Fu on Thu, 16 Jan 2020 10:04:00 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244330 Archived-At: > From: Yuan Fu > Date: Thu, 16 Jan 2020 10:04:00 -0500 > Cc: martin rudalics , Emacs developers , > Stefan Monnier , Juri Linkov > > a.c: > > int f1(int a) { > return a + 1; > } > > b.c: > > #include "a.c" > > int main() { > int b = f1(1); > int c = 0; > return b + c; > } > > Steps: > - M-x gdb > - b main > - r > - s (many times) > > And when you step into f1 which is in a.c, gdb opens another window to display it (again, if your screen is > large enough). I cannot reproduce this even if I maximize my Emacs frame before invoking "M-x gdb". I always get the source in the same window. I used your example. My screen is 1920x1080 pixels, if that's important. So I wonder what other factors could be at work here.