From: Tom de Vries <tdevries@suse.de>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] [gdb/cli] Allow source highlighting to be interrupted
Date: Thu, 12 Oct 2023 16:52:21 +0200 [thread overview]
Message-ID: <e8f230f5-6459-4621-a46d-ff13a0a217ba@suse.de> (raw)
In-Reply-To: <abee98bf-fffa-41a7-8601-c584461e78f3@suse.de>
On 10/11/23 23:56, Tom de Vries wrote:
> On 10/11/23 19:02, Tom Tromey wrote:
>>>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
>>
>> Tom> Breakpoint 1, Solution::numOfSubarrays (this=0x7fffffffdbcf,
>> arr=...) at test.cpp:56
>> Tom> ^Cwarning: Couldn't highlight source file
>> /data/vries/gdb/test.cpp: Interrupted
>> Tom> 56 return (int) t;
>> Tom> (gdb)
>> Tom> ...
>>
>> Tom> RFC: is the warning a good idea, or overkill?
>>
>> I'm on the fence,
>
> Hmm, I just realized that the line can be (and in the setup I'm looking
> at actually is) highlighted, not by GNU source-hightlight but by python
> pygments, which makes the warning in the current form confusing.
>
>> though I guess if it can't be done it might be nice if
>> gdb kept track of this and just didn't try highlighting that file again.
>>
>
> Sounds doable.
>
I've submitted a patch series (
https://sourceware.org/pipermail/gdb-patches/2023-October/203179.html )
that:
- drops the warning, and
- adds the tracking of files for which highlighting fails.
Thanks,
- Tom
next prev parent reply other threads:[~2023-10-12 14:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-11 13:42 Tom de Vries
2023-10-11 17:02 ` Tom Tromey
2023-10-11 18:11 ` Tom de Vries
2023-10-13 12:25 ` Tom de Vries
2023-10-11 21:56 ` Tom de Vries
2023-10-12 14:52 ` Tom de Vries [this message]
2023-10-11 17:49 ` Konstantin Kharlamov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e8f230f5-6459-4621-a46d-ff13a0a217ba@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).