| Message ID | 20260822-no-backquotes-in-strings-v1-0-0b035ad036a3@tromey.com |
|---|---|
| Headers |
Return-Path: <gdb-patches-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 320C24BA902C for <patchwork@sourceware.org>; Sat, 22 Aug 2026 20:30:52 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from omta38.uswest2.a.cloudfilter.net (omta38.uswest2.a.cloudfilter.net [35.89.44.37]) by sourceware.org (Postfix) with ESMTPS id D745D4BA9017 for <gdb-patches@sourceware.org>; Sat, 22 Aug 2026 20:30:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D745D4BA9017 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D745D4BA9017 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=35.89.44.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787430608; cv=none; b=ncbc5EHyrNsG95bO3huUMufO6akGHbQGhb7wzaQ2wnpjQgBE/DqV0HRlZS7K80gJ/n1U5eLjcVHK72GbPvi/ryuepYkmV+Ei73yBCn7sFeaJ9ewJRFsPjXDIG7hBYxgvIjPG5hFFvFjIoVrwO/Xk6hYdhgbLmLwwby2vE5C/Yjg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787430608; c=relaxed/simple; bh=rabuVzAUQhchRroZeOITjDB6hSaOqUFa+OBQq5df+xw=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=oKPsXSstswXBcO5mjhnOa3RPSYVg6HujBgfj/GDZEtD70JcOM7bIwFAELgWvs7uw28IOC7Qiu+QnXU7aOhXhVO4Y4CeB5nGiVUg1ctwI3/mc85j33/LRYUogzrCw2VR4FtVtTk8N0MRdhganPizGpcm8vDlPWyAdbpxhQlvG2Mk= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=fPO+Pdrk reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D745D4BA9017 Authentication-Results: sourceware.org; dkim=policy reason="signing key too small" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=fPO+Pdrk Received: from eig-obgw-5003b.ext.cloudfilter.net ([10.0.29.155]) by cmsmtp with ESMTPS id xqkMwUQhjv0ndxsLuwiehb; Sat, 22 Aug 2026 20:30:06 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id xsLtwCxfZLswYxsLtwDzwA; Sat, 22 Aug 2026 20:30:06 +0000 X-Authority-Analysis: v=2.4 cv=U9uSDfru c=1 sm=1 tr=0 ts=6a8a06ce a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=ItBw4LHWJt0A:10 a=CCpqsmhAAAAA:8 a=zstS-IiYAAAA:8 a=Hs6KFEbRVFvj23YNhX4A:9 a=QEXdDO2ut3YA:10 a=ul9cdbp4aOFLsgKbc677:22 a=4G6NA9xxw8l3yy4pmD5M:22 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Cc:To:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Subject:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=qvE2n5AF/GDQVGGr1tpFjHY/JXQllLlUjh0zohZQDUI=; b=fPO+Pdrk+xx6dBlwsu3cT0SX7Y YLg7K94BincgNGsHu5GrphemNKz7tRwpkkab/BUuqs/OgjJyYRGiDEfO1VSboLBpdXmYz1CDszGfB IHoeIjx3eGqK1+7KN5NwfpVqB; Received: from 97-122-117-2.hlrn.qwest.net ([97.122.117.2]:35668 helo=[192.168.122.1]) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.5) (envelope-from <tom@tromey.com>) id 1wxsLt-00000002Mju-0bvA; Sat, 22 Aug 2026 14:30:05 -0600 From: Tom Tromey <tom@tromey.com> Subject: [PATCH 0/5] Remove `...' and related forms of quoting from gdb Date: Sat, 22 Aug 2026 14:30:02 -0600 Message-Id: <20260822-no-backquotes-in-strings-v1-0-0b035ad036a3@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAMoGimoC/x3MMQ7CMAxA0atUnrFIAy2IqyCGJJjUQjjUDgip6 t0JjG/4fwEjZTI4dQsovdm4SEO/6SBNQTIhX5vBOz+6o/coBWNI9/lVKhmyoFVlyYbjMPSHvXd xF3to+VPpxp//+nxpjsEIowZJ029YlDPL9hGsksK6fgGiD+K7igAAAA== X-Change-ID: 20260822-no-backquotes-in-strings-65517420b3b1 To: gdb-patches@sourceware.org Cc: Tom Tromey <tom@tromey.com> X-Mailer: b4 0.14.3 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.117.2 X-Source-L: No X-Exim-ID: 1wxsLt-00000002Mju-0bvA X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-117-2.hlrn.qwest.net ([192.168.122.1]) [97.122.117.2]:35668 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfKvoKcRk/zK90vnhKpPX1XRcagmjLAHq99hyTH35LyRbCww6LcDP804wsqPIMV6rF7ky9rn5VIrIkD8POC5T9DyWPUMOcfA+n6uOGeXd5Ml0WGaN1Gxb BJtKaJ18Z74Q0XoH30m1ZTVpuuj2XQ5IFUjqNCbsqEzp+TJguSglLWxvv2M8tYcPk/IxvXPB2RSWPRaoIwIcUlgEIMCEhNIGcnI= X-Spam-Status: No, score=-3001.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, TXREP, T_SPF_PERMERROR shortcircuit=no autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
Remove `...' and related forms of quoting from gdb
|
|
Message
Tom Tromey
Aug. 22, 2026, 8:30 p.m. UTC
As part of my ongoing quoting-regularization quest
(https://sourceware.org/bugzilla/show_bug.cgi?id=34044), this changes
gdb and gdbserver to avoid `...' `...`, and ``...'' when quoting
output, preferring double quotes instead.
I wrote this by writing a short script using Pygments to find all
strings in the source using the back-quote character; then fixing all
the relevant ones.
I've also fixed up the test suite, though there are probably tests I
have missed, since I did this primarily by looking at regressions.
(The only exception being s390-multiarch.exp, which I found while
searching for a particular string.)
I think it would also be good to tackle '...' quoting, but I haven't
attempted that yet.
Regression tested on x86-64 Fedora 40.
Signed-off-by: Tom Tromey <tom@tromey.com>
---
Tom Tromey (5):
Change `...'-style quoting in gdbsupport
Change `...'-style quoting in gdbserver
Fix weird quoting in stap-probe.c
Change `...'-style quoting in gdb
Fix styling in a few messages
gdb/aarch64-linux-tdep.c | 2 +-
gdb/ada-lang.c | 19 ++++-----
gdb/ada-lex.l | 6 +--
gdb/alpha-tdep.c | 2 +-
gdb/arch-utils.c | 2 +-
gdb/arm-linux-tdep.c | 2 +-
gdb/async-event.c | 14 +++----
gdb/auto-load.c | 6 +--
gdb/ax-gdb.c | 46 +++++++++++-----------
gdb/breakpoint.c | 12 +++---
gdb/build-id.c | 4 +-
gdb/c-exp.y | 6 +--
gdb/c-lang.c | 2 +-
gdb/charset.c | 26 ++++++------
gdb/cli/cli-cmds.c | 4 +-
gdb/cli/cli-option.c | 2 +-
gdb/cli/cli-script.c | 10 ++---
gdb/corefile.c | 4 +-
gdb/corelow.c | 10 ++---
gdb/cp-namespace.c | 2 +-
gdb/d-exp.y | 2 +-
gdb/darwin-nat.c | 4 +-
gdb/dtrace-probe.c | 2 +-
gdb/dwarf2/expr.c | 2 +-
gdb/dwarf2/index-write.c | 10 ++---
gdb/dwarf2/line-header.c | 4 +-
gdb/dwarf2/loc.c | 8 ++--
gdb/dwarf2/macro.c | 12 +++---
gdb/eval.c | 6 +--
gdb/exec.c | 6 +--
gdb/filesystem.c | 14 +++----
gdb/findvar.c | 10 ++---
gdb/gdb-demangle.c | 2 +-
gdb/gnu-nat.c | 10 ++---
gdb/gnu-v3-abi.c | 4 +-
gdb/go-exp.y | 4 +-
gdb/go32-nat.c | 8 ++--
gdb/guile/guile.c | 2 +-
gdb/i386-fbsd-tdep.c | 4 +-
gdb/i386-linux-tdep.c | 4 +-
gdb/i386-tdep.c | 6 +--
gdb/ia64-tdep.c | 6 +--
gdb/infcmd.c | 12 +++---
gdb/infrun.c | 2 +-
gdb/interps.c | 2 +-
gdb/language.c | 2 +-
gdb/m2-lang.c | 2 +-
gdb/machoread.c | 8 ++--
gdb/macrocmd.c | 20 +++++-----
gdb/macroexp.c | 4 +-
gdb/macroscope.c | 2 +-
gdb/macrotab.c | 6 +--
gdb/main.c | 10 ++---
gdb/maint.c | 2 +-
gdb/mi/mi-main.c | 2 +-
gdb/mips-tdep.c | 4 +-
gdb/objfiles.c | 4 +-
gdb/p-exp.y | 2 +-
gdb/parse.c | 4 +-
gdb/ppc-linux-tdep.c | 2 +-
gdb/printcmd.c | 6 +--
gdb/probe.c | 6 +--
gdb/python/py-breakpoint.c | 26 ++++++------
gdb/python/py-finishbreakpoint.c | 4 +-
gdb/python/py-infthread.c | 4 +-
gdb/python/python.c | 12 +++---
gdb/remote-fileio.c | 2 +-
gdb/remote.c | 14 +++----
gdb/riscv-tdep.c | 2 +-
gdb/solib-aix.c | 2 +-
gdb/solib-darwin.c | 2 +-
gdb/solib-rocm.c | 12 +++---
gdb/solib.c | 12 +++---
gdb/source.c | 6 +--
gdb/stack.c | 6 +--
gdb/stap-probe.c | 38 +++++++++---------
gdb/symfile.c | 28 ++++++-------
gdb/symtab.c | 18 ++++-----
gdb/target.c | 14 +++----
gdb/testsuite/gdb.ada/bp_c_mixed_case.exp | 4 +-
gdb/testsuite/gdb.ada/catch_ex.exp | 4 +-
gdb/testsuite/gdb.ada/catch_ex_std.exp | 2 +-
gdb/testsuite/gdb.ada/excep_handle.exp | 6 +--
gdb/testsuite/gdb.ada/limited-length.exp | 2 +-
gdb/testsuite/gdb.ada/literals.exp | 2 +-
gdb/testsuite/gdb.ada/mi_catch_ex.exp | 2 +-
gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp | 2 +-
gdb/testsuite/gdb.ada/mi_ex_cond.exp | 4 +-
.../gdb.arch/amd64-stap-optional-prefix.exp | 4 +-
gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp | 2 +-
gdb/testsuite/gdb.arch/s390-multiarch.exp | 2 +-
gdb/testsuite/gdb.base/attach.exp | 6 +--
gdb/testsuite/gdb.base/break-unload-file.exp | 2 +-
gdb/testsuite/gdb.base/cached-source-file.exp | 2 +-
gdb/testsuite/gdb.base/define.exp | 4 +-
gdb/testsuite/gdb.base/exprs.exp | 4 +-
gdb/testsuite/gdb.base/gdb-index-err.exp | 8 ++--
gdb/testsuite/gdb.base/help.exp | 4 +-
gdb/testsuite/gdb.base/info-macros.exp | 4 +-
gdb/testsuite/gdb.base/jump-inline.exp | 2 +-
gdb/testsuite/gdb.base/jump.exp | 4 +-
gdb/testsuite/gdb.base/macscp.exp | 20 +++++-----
gdb/testsuite/gdb.base/maint-info-sections.exp | 4 +-
gdb/testsuite/gdb.base/new-ui.exp | 2 +-
gdb/testsuite/gdb.base/options.exp | 4 +-
gdb/testsuite/gdb.base/settings.exp | 4 +-
gdb/testsuite/gdb.base/subst.exp | 28 ++++++-------
gdb/testsuite/gdb.base/tls-nothreads.exp | 4 +-
gdb/testsuite/gdb.base/watch_thread_num.exp | 2 +-
gdb/testsuite/gdb.base/watchpoint.exp | 20 +++++-----
gdb/testsuite/gdb.cp/maint.exp | 2 +-
gdb/testsuite/gdb.cp/namespace-enum.exp | 2 +-
gdb/testsuite/gdb.cp/overload.exp | 2 +-
gdb/testsuite/gdb.dlang/expression.exp | 2 +-
gdb/testsuite/gdb.dwarf2/macro-complaints.exp | 10 ++---
gdb/testsuite/gdb.server/bkpt-other-inferior.exp | 2 +-
gdb/testsuite/gdb.server/no-thread-db.exp | 2 +-
gdb/testsuite/gdb.server/server-exec-info.exp | 2 +-
gdb/testsuite/gdb.server/target-exec-file.exp | 2 +-
gdb/testsuite/gdb.threads/gcore-stale-thread.exp | 2 +-
gdb/testsuite/gdb.trace/actions.exp | 2 +-
gdb/testsuite/lib/gdb.exp | 2 +-
gdb/thread.c | 4 +-
gdb/tracefile-tfile.c | 2 +-
gdb/tracefile.c | 2 +-
gdb/tracepoint.c | 10 ++---
gdb/tui/tui-win.c | 2 +-
gdb/tui/tui-winsource.c | 8 ++--
gdb/utils.c | 8 ++--
gdb/valarith.c | 2 +-
gdb/valops.c | 10 ++---
gdb/value.c | 2 +-
gdb/windows-nat.c | 5 ++-
gdb/xml-syscall.c | 8 +++-
gdb/z80-tdep.c | 10 ++---
gdbserver/thread-db.cc | 4 +-
gdbserver/tracepoint.cc | 12 +++---
gdbsupport/agent.cc | 2 +-
gdbsupport/event-loop.cc | 4 +-
gdbsupport/format.cc | 4 +-
140 files changed, 458 insertions(+), 452 deletions(-)
---
base-commit: d2102b0d6a95ba3b37204976fb3f6ebd935822fb
change-id: 20260822-no-backquotes-in-strings-65517420b3b1
Best regards,