From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8EF9B385480B; Mon, 20 Mar 2023 11:11:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8EF9B385480B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679310708; bh=HAeORJb9SNAehIhYvTuT9UELrm1x6FzEVkp0mtSbl44=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jdKMNELDmBKmZsquJrbFxa+I+F5Y1zRpOIJikqJKvKwTO3N1ZSAYwO853jUym0J7m 3eQh3r7nONOcFgynzr7r2yM1aFBg9pUhc0Air6jRXeeUap4Bqu82twhfV8ycI43yQG rf79a8EUDxH8DCclDjy+QBwAKAxS8C0gxL14x8qg= From: "czgf2v at 163 dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/30242] gdb weird one specific command with specific input not valid to run Date: Mon, 20 Mar 2023 11:11:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: czgf2v at 163 dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 14.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30242 --- Comment #6 from czgf2v --- I tried building gdb from source --------------------------- $ git clone git://sourceware.org/git/binutils-gdb.git $ sudo apt install -y texinfo bison flex # inspired by https://bugzilla.redhat.com/show_bug.cgi?id=3D1526617#c5 $ cd binutils-gdb/;./configure --disable-binutils --disable-ld --disable-go= ld --disable-gas --disable-sim --disable-gprof;make;make install # the version may be same with daily build of ubuntu-support-team ppa versi= on code because both has '14.0.50' $ /usr/local/bin/gdb --version GNU gdb (GDB) 14.0.50.20230320-git --------------------------- then if I directly pass command when invoking gdb, 'shell cat ~/.gdb-color-pipe' with 'thread=E2=80=98 command emit syntax highlighted li= ne, the bug temporarily disappeared. But then type 'thread', the info still fails to em= it. --------------------------- $ gcc -gdwarf-5 -g3 -ggdb3 basic.c -o basic;/usr/bin/gdb -q -nx -nh ./basic= -ex 'source ./colors_RAttab_test.gdb' -ex "br 11" -ex "start" -ex "backtrace" -= ex "thread" .... +++shell cat ~/.gdb-color-pipe | sed -r "s_([^<])(\b([a-zA-Z0-9_]+::)?[a-zA-Z0-9_\.@]+)( ?)\(_\1$(tput setaf 6)$(tp= ut bold)\2$(tput sgr0)\4(_g" | sed -r "s_([a-zA-Z0-9_#]*)=3D_$(tput se= taf 2)$(tput bold)\1$(tput sgr0)=3D_g" | sed -r "s_^(#[0-9]*)_$(tput se= taf 1)$(tput bold)\1$(tput sgr0)_" | --Type for more, q to quit, c= to continue without paging-- sed -r "s_^([ \*]) ([0-9]+)_$(tput bold)$(tput setaf 6)\1 $(tput setaf 1)\2$(tput sgr0)_" | sed -r "s_(\.*[/A-Za-z0-9\+_\.\-]*):([0-9]+)\$_$(tput setaf 4)\1$(tput sgr0):$(tput setaf 3)\2$(tput sgr0)_" [Current thread is 1 (Thread 0x7ffff7d58740 (LWP 123960))] ++do-generic-colors .... (gdb) thread +++shell cat ~/.gdb-color-pipe | sed -r "s_([^<])(\b([a-zA-Z0-9_]+::)?[a-zA-Z0-9_\.@]+)( ?)\(_\1$(tput setaf 6)$(tp= ut bold)\2$(tput sgr0)\4(_g" | sed -r "s_([a-zA-Z0-9_#]*)=3D_$(tput se= taf 2)$(tput bold)\1$(tput sgr0)=3D_g" | sed -r "s_^(#[0-9]*)_$(tput se= taf 1)$(tput bold)\1$(tput sgr0)_" | sed -r "s_^([ \*]) ([0-9]+)_$(tput bold)$(tput setaf 6)\1 $(tput setaf 1)\2$(tput sgr0)_" | sed -r "s_(\.*[/A-Za-z0-9\+_\.\-]*):([0-9]+)\$_$(tput setaf 4)\1$(tput sgr0):$(tput setaf 3)\2$(tput sgr0)_" ++cleanup-color-pipe .... --------------------------- the possible bug shown in above comment still happens when run 'thread' aft= er the gdb prompt. A little weird --=20 You are receiving this mail because: You are on the CC list for the bug.=