public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/32413] New: Refactor ada_language::printstr to use generic code
@ 2024-12-03 20:00 tromey at sourceware dot org
  2024-12-12 14:45 ` [Bug ada/32413] " tromey at sourceware dot org
  0 siblings, 1 reply; 2+ messages in thread
From: tromey at sourceware dot org @ 2024-12-03 20:00 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=32413

            Bug ID: 32413
           Summary: Refactor ada_language::printstr to use generic code
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ada
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
  Target Milestone: ---

I have a patch I'll be sending soon that changes
ada_language::printstr to special-case UTF-8.
This was needed for the VSS pretty-printers
(see https://github.com/AdaCore/VSS).

Ada should probably respect the encoding in other
cases, though.  And ideally Ada string-printing
would be redone to follow the generic code.

One problem here is that the Ada code in gdb doesn't
really try to define the runtime character sets --
it just assumes they are a superset of ASCII.
So perhaps we'd need to add settings for the "Ada
wide charset" and "Ada wide-wide charset".

Reusing generic_printstr for all Ada string printing
might also be good.  This could be based on this
series that I never got around to rewriting:

https://inbox.sourceware.org/gdb-patches/20220217220547.3874030-1-tom@tromey.com/

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug ada/32413] Refactor ada_language::printstr to use generic code
  2024-12-03 20:00 [Bug ada/32413] New: Refactor ada_language::printstr to use generic code tromey at sourceware dot org
@ 2024-12-12 14:45 ` tromey at sourceware dot org
  0 siblings, 0 replies; 2+ messages in thread
From: tromey at sourceware dot org @ 2024-12-12 14:45 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=32413

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://sourceware.org/bugz
                   |                            |illa/show_bug.cgi?id=20164

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2024-12-12 14:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-03 20:00 [Bug ada/32413] New: Refactor ada_language::printstr to use generic code tromey at sourceware dot org
2024-12-12 14:45 ` [Bug ada/32413] " tromey at sourceware dot org

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