[PATCH][gdb] Fix s390x -m31 build

Tom Tromey tom@tromey.com
Fri Jun 21 16:05:00 GMT 2019


>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:

Tom> Fix this by changing the length modifier from 'z' to the ptrdiff_t length
Tom> modifier 't', and change the conversion specifier from 'u' to the more
Tom> appropriate 'd'.

gdb probably shouldn't be using 'z' anyway.  IIRC it causes problems on
Windows.

How portable is %td?  I do not know.  Maybe check the gnulib manual and
see what they have to say about it?  Anyway, this is my main concern
with this patch.

The standard gdb approach here is to use plongest / pulongest in
conjunction with %s.  That avoids any problems.

thanks,
Tom



More information about the Gdb-patches mailing list