Re: [PATCH][gdb] Fix s390x -m31 build

Tom Tromey
2019-06-21T16:05:43Z

>>>>> "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