public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Source highlight non utf-8 characters using Python
@ 2022-01-07 14:23 Andrew Burgess
  2022-01-07 14:23 ` [PATCH 1/4] gdb: new 'maint flush source-cache' command Andrew Burgess
                   ` (4 more replies)
  0 siblings, 5 replies; 36+ messages in thread
From: Andrew Burgess @ 2022-01-07 14:23 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

This addresses an issue reported here:

  https://sourceware.org/pipermail/gdb/2021-November/049799.html

A problem using the Python Pygments library to highlight source code
containing non utf-8 characters.

All feedback welcome.

Thanks,
Andrew


---

Andrew Burgess (4):
  gdb: new 'maint flush source-cache' command
  gdb: erase items from the source_cache::m_offset_cache
  gdb: add 'maint set/show gnu-source-highlight enabled' command
  gdb/python: handle non utf-8 characters when source highlighting

 gdb/NEWS                                      | 11 +++
 gdb/doc/gdb.texinfo                           | 24 +++++
 gdb/python/python.c                           | 56 ++++++++---
 gdb/source-cache.c                            | 93 ++++++++++++++++++-
 gdb/testsuite/gdb.base/cached-source-file.exp | 38 ++++++++
 gdb/testsuite/gdb.python/py-source-styling.c  | 29 ++++++
 .../gdb.python/py-source-styling.exp          | 64 +++++++++++++
 7 files changed, 299 insertions(+), 16 deletions(-)
 create mode 100644 gdb/testsuite/gdb.python/py-source-styling.c
 create mode 100644 gdb/testsuite/gdb.python/py-source-styling.exp

-- 
2.25.4


^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2022-01-26 23:13 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07 14:23 [PATCH 0/4] Source highlight non utf-8 characters using Python Andrew Burgess
2022-01-07 14:23 ` [PATCH 1/4] gdb: new 'maint flush source-cache' command Andrew Burgess
2022-01-07 14:49   ` Eli Zaretskii
2022-01-11 12:13     ` Andrew Burgess
2022-01-11 13:31       ` Eli Zaretskii
2022-01-12 11:38         ` Andrew Burgess
2022-01-10 15:18   ` Tom Tromey
2022-01-07 14:23 ` [PATCH 2/4] gdb: erase items from the source_cache::m_offset_cache Andrew Burgess
2022-01-10 15:24   ` Tom Tromey
2022-01-11 12:17     ` Andrew Burgess
2022-01-11 14:54       ` Tom Tromey
2022-01-12 11:38         ` Andrew Burgess
2022-01-07 14:23 ` [PATCH 3/4] gdb: add 'maint set/show gnu-source-highlight enabled' command Andrew Burgess
2022-01-07 14:53   ` Eli Zaretskii
2022-01-11 13:07     ` Andrew Burgess
2022-01-11 13:34       ` Eli Zaretskii
2022-01-12 11:37         ` Andrew Burgess
2022-01-10 15:58   ` Tom Tromey
2022-01-07 14:23 ` [PATCH 4/4] gdb/python: handle non utf-8 characters when source highlighting Andrew Burgess
2022-01-10  3:27   ` Simon Marchi
2022-01-10 10:41     ` Andrew Burgess
2022-01-10 15:32       ` Simon Marchi
2022-01-11 13:10         ` Andrew Burgess
2022-01-11 19:24   ` Tom Tromey
2022-01-11 19:42     ` Patrick Monnerat
2022-01-12 14:30 ` [PATCHv2 0/2] Source highlight non utf-8 characters using Python Andrew Burgess
2022-01-12 14:30   ` [PATCHv2 1/2] gdb/python: add gdb.host_charset function Andrew Burgess
2022-01-12 15:02     ` Eli Zaretskii
2022-01-12 15:23     ` Tom Tromey
2022-01-12 16:05     ` Andrew Burgess
2022-01-12 14:30   ` [PATCHv2 2/2] gdb/python: handle non utf-8 characters when source highlighting Andrew Burgess
2022-01-12 15:32     ` Tom Tromey
2022-01-12 15:59       ` Andrew Burgess
2022-01-19 17:44         ` Andrew Burgess
2022-01-21 16:59         ` Simon Marchi
2022-01-26 23:13           ` Andrew Burgess

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).