From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 2C5B73858C52 for ; Thu, 28 Sep 2023 14:00:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2C5B73858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695909652; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fDRK7sZVfhWRH3K+plhIltRZoIdA9kjNMM1Cyk8reA4=; b=hT1KZ5HSXcXE3IQYKht3NY3lEBHE8fyTcZ7Fgio5scG/uYPtgGrs5bMMwtAxXar/0YKmBc OqfXIP9+HPbpdsho4HL0eROOjqAaorfMSpJguRCsAh7QyH9MBdkM7xPbrf6cm+Y2gze3LO KIX2ieg9f6uYFAqyyLmaVxn5QnFzvWg= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-266-MsXFBydrMG6oIRjKaCh8Bg-1; Thu, 28 Sep 2023 10:00:51 -0400 X-MC-Unique: MsXFBydrMG6oIRjKaCh8Bg-1 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-65b1c33bf59so109589686d6.3 for ; Thu, 28 Sep 2023 07:00:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695909651; x=1696514451; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fDRK7sZVfhWRH3K+plhIltRZoIdA9kjNMM1Cyk8reA4=; b=mla8Z6BY0RnAgi3mSGq51MjuMGBYGItp8oaAYz6vJVEPeSwYfYxYrRKxsTXay7N13t BspCWph205vMbsYn8jOlbo/LGx3B4i5AiypjZc+QAloirTnPIp6ZSPbXr7OfzvQyW4AV TY+f27sKUJnKvFCP9U3FKZew9hsgO1m5rXqtidDyyriDC9U/A0osZziu14+5h1iLJdlJ efsh+K9wK7qmD0tEor1KjCbnEazoye117EWNWj0mteb3+uTAcMzbA2lZNBLTwFolk/Rd 7Wf3GQrTNK8qhZlMhf1SzBDf79n4WghL4n/IR94uIeMmyyyntCxiI/av7iLmTGf3kMx4 HwKg== X-Gm-Message-State: AOJu0YzMfsS3HVL/xud1JG11tzQRNqLJZykEa+uJMmTJrXyUL4HUDE6G wh9qbr4Z0Hw4IQhBdn8/TW1IIt23RRaEa9mr5in52P3ja/a5I+8Yd1D+F+IOl4ZO76WwTgIU0xm kMZtcUC+5rmHg1wXMKWr8Vg38Y78fv6olLe681qCzOxEH54L9KVpGv8Y05egx3YKGt+d740flhc k4+6283A== X-Received: by 2002:a0c:f4cf:0:b0:64f:7fe6:bf1d with SMTP id o15-20020a0cf4cf000000b0064f7fe6bf1dmr1250806qvm.12.1695909650810; Thu, 28 Sep 2023 07:00:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZJegnA7+SeQSSw+KsIlXHddQJb6/zbtqhfuFmg0m/Trr8pFx5WeLVwDcII7ywjOOOgJgpKw== X-Received: by 2002:a0c:f4cf:0:b0:64f:7fe6:bf1d with SMTP id o15-20020a0cf4cf000000b0064f7fe6bf1dmr1250767qvm.12.1695909650372; Thu, 28 Sep 2023 07:00:50 -0700 (PDT) Received: from localhost ([31.111.84.209]) by smtp.gmail.com with ESMTPSA id q17-20020a0ce211000000b0065655bb349csm2427421qvl.141.2023.09.28.07.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 07:00:50 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCHv2 1/5] gdb: some additional filename styling Date: Thu, 28 Sep 2023 15:00:40 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Fix up another couple of places where we can apply filename styling. --- gdb/source.c | 3 ++- gdb/symfile.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gdb/source.c b/gdb/source.c index 9c701e866a6..5bdd729be8b 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -594,7 +594,8 @@ add_path (const char *dirname, char **which_path, int parse_separators) print_sys_errmsg (name, save_errno); } else if ((st.st_mode & S_IFMT) != S_IFDIR) - warning (_("%s is not a directory."), name); + warning (_("%ps is not a directory."), + styled_string (file_name_style.style (), name)); } append: diff --git a/gdb/symfile.c b/gdb/symfile.c index 76b5e1b8fe7..19cf9c911f9 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -2482,8 +2482,9 @@ reread_symbols (int from_tty) if (res != 0) { /* FIXME, should use print_sys_errmsg but it's not filtered. */ - gdb_printf (_("`%s' has disappeared; keeping its symbols.\n"), - objfile_name (objfile)); + gdb_printf (_("`%ps' has disappeared; keeping its symbols.\n"), + styled_string (file_name_style.style (), + objfile_name (objfile))); continue; } new_modtime = new_statbuf.st_mtime; -- 2.25.4