From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 94448394FC1F; Mon, 12 Apr 2021 13:38:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94448394FC1F From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/27681] FAIL: gdb.base/help.exp: apropos \(print[^[ bsiedf\".-]\) (timeout) Date: Mon, 12 Apr 2021 13:38:54 +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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW 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: 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 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: Mon, 12 Apr 2021 13:38:54 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27681 --- Comment #25 from Tom de Vries --- I tried to look a bit into the history. Timeline: - 1989-01-31 gdb-3.1 commit of binutils-gdb.git adds regex.c. Looks like gnu regex.c, has copyright 1985. - 1992-11-08: Initial revision commit of gnulib.git adds regex.c copied from GNU regex 0.11. Copyright goes back to 1985. - 1993-04-03=20 GNU regex 0.12 is released, final release - 1995-05-18 Glibc imports GNU regex, presumably from gnulib. - 1996-05-14 Last update regex.c from gnulib to glibc - 1997-07-26 Gnulib updates regex.c from glibc - 2000-04-03 gdb grows option to use regex from glibc - 2001-07-11 libiberty imports regex.c from gdb https://gcc.gnu.org/pipermail/gcc-patches/2001-May/050292.html - 2001-09-01 Gdb starts using libiberty regex implementation. https://sourceware.org/pipermail/gdb-patches/2001-September/010733.html - 2003-01-02 gdb switches to use regex from glibc by default, provided it's version 2. https://sourceware.org/pipermail/gdb-patches/2003-January/023377.html (In reply to Tom Tromey from comment #24) > I think there are a few routes forward: >=20 > 1. Change the code to conform to POSIX. Fine by me. >=20 I'd prefer it to avoid this rewrite. It just means you'd have to add functionality somewhere that is already contained in gnu regex. Sounds like duplication of work to me. > 2. Change the code to always use libiberty. This requires understanding > why the alternative was ever made possible. >=20 I miss the option of using gnulib. We currently don't import that module, b= ut we could. The commit that introduced the possibility in gdb to use glibc, had the rationale that glibc was where gnu regex was then maintained. AFAICT, the commit that changed the default to glibc assumed that that chan= ge was already in place, but undone somehow. I didn't find any evidence in the source for this, so I'm not sure if there ever was an actual decision taken there. --=20 You are receiving this mail because: You are on the CC list for the bug.=