Re: [PATCH] gdb, gdbsupport, gdbserver: add support for printf 't' length modifier

Tom Tromey
2026-01-15T19:43:19Z

>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:

Simon> I think the reason for plongest is more that LONGEST can vary from build
Simon> to build. We could otherwise have PRILONGEST / PRIULONGEST / etc
Simon> macros, just like there is PRIu64 & co.

We could have those but personally I think those PRI* things are
unreadably ugly.

As an aside, it's absurd for the gdb "printf" command to use these at
all. gdb already knows all the types, "%d" could easily handle any
integral type and "%td" is never truly necessary.

Tom