From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EC95F3858410; Sat, 9 Oct 2021 00:37:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC95F3858410 From: "sourceware at fastmail dot com" To: gdb-prs@sourceware.org Subject: [Bug tui/28437] New: `fs status` followed by `fs next` fails to switch focus on Mac Date: Sat, 09 Oct 2021 00:37:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tui X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: sourceware at fastmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2021 00:37:04 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28437 Bug ID: 28437 Summary: `fs status` followed by `fs next` fails to switch focus on Mac Product: gdb Version: 10.1 Status: UNCONFIRMED Severity: minor Priority: P2 Component: tui Assignee: unassigned at sourceware dot org Reporter: sourceware at fastmail dot com Target Milestone: --- GDB 10.2 installed from macports, NOT 10.1 (but I don't see it in the list) Switching focus in tui mode breaks. To repro: ``` $ gdb -tui ./baseq3/cpma/bin/a.out Reading symbols from ./baseq3/cpma/bin/a.out... Reading symbols from /Applications/ioquake3/baseq3/cpma/bin/a.out.dSYM/Contents/Resources/DWARF/= a.out... (gdb) fs status Focus set to status window. (gdb) fs next /opt/local/var/macports/build/_private_tmp_macports-ports_devel_gdb/gdb/wor= k/gdb-10.2/gdb/tui/tui-data.c:116: internal-error: struct tui_win_info *tui_next_win(struct tui_win_ info *): Assertion `cur_win->can_focus ()' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) y This is a bug, please report it. For instructions, see: . /opt/local/var/macports/build/_private_tmp_macports-ports_devel_gdb/gdb/wor= k/gdb-10.2/gdb/tui/tui-data.c:116: internal-error: struct tui_win_info *tui_next_win(struct tui_win_ info *): Assertion `cur_win->can_focus ()' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) yAbort trap: 6 (core dumped) [Exit 134 (ABRT)] ``` This works with whatever code is being debugged, I repro with a hello world= in C ADDITIONAL DETAILS GDB 10.2 installed from macports Mac OS X Big Sur 11.6 gcc 11.2.0_1 installed from macports ``` $ uname -a Darwin macbook 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64 i386 MacBookPro11,4 Darwin $ gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/opt/local/libexec/gcc/x86_64-apple-darwin20/11.2.0/l= to-wrapper Target: x86_64-apple-darwin20 Configured with: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_port= s_lang_gcc11/gcc11/work/gcc-11.2.0/configure --prefix=3D/opt/local --build=3Dx86_64-apple-darwin20 --enable-languages=3Dc,c++,objc,obj-c++,lto,fortran,jit --libdir=3D/opt/local/lib/gcc11 --includedir=3D/opt/local/include/gcc11 --infodir=3D/opt/local/share/info --mandir=3D/opt/local/share/man --datarootdir=3D/opt/local/share/gcc-11 --with-local-prefix=3D/opt/local --with-system-zlib --disable-nls --program-suffix=3D-mp-11 --with-gxx-include-dir=3D/opt/local/include/gcc11/c++/ --with-gmp=3D/opt/lo= cal --with-mpfr=3D/opt/local --with-mpc=3D/opt/local --with-isl=3D/opt/local --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-build-config=3Dbootstrap-debug --with-bugurl=3Dhttps://trac.macports.org/newticket --enable-host-shared --disable-tls --with-as=3D/opt/local/bin/as --with-ld=3D/opt/local/bin/ld --with-ar=3D/opt/local/bin/ar --with-pkgversion=3D'MacPorts gcc11 11.2.0_1' --with-sysroot=3D/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.2.0 (MacPorts gcc11 11.2.0_1) $ gdb (gdb) show config (gdb) show config This GDB was configured as follows: configure --host=3Dx86_64-apple-darwin20.6.0 --target=3Dx86_64-apple-darwin20.6.0 --with-auto-load-dir=3D:${prefix}/share/auto-load --with-auto-load-safe-path=3D:${prefix}/share/auto-load --with-expat --with-gdb-datadir=3D/opt/local/share/gdb (relocatable) --with-jit-reader-dir=3D/opt/local/lib/gdb (relocatable) --without-libunwind-ia64 --without-lzma --without-babeltrace --without-intel-pt --without-mpfr --without-xxhash =20=20=20=20=20=20=20=20=20=20=20=20 --with-python=3D/opt/local/Library/Frameworks/Python.framework/Versions/3.9 (relocatable) =20=20=20=20=20=20=20=20=20=20=20=20 --with-python-libdir=3D/opt/local/Library/Frameworks/Python.framework/Versi= ons/3.9/lib (relocatable) --without-debuginfod --without-guile --disable-source-highlight --with-separate-debug-dir=3D/opt/local/lib/debug (relocatable) ``` --=20 You are receiving this mail because: You are on the CC list for the bug.=